Replies: 9 comments 1 reply
-
Problem with dependencies after installing custom libs.If you is installing custom libs with pip and updating your ha installation, its not deleting your custom installed libs and can making problems with dependencies is being broken and you system is not working well. If you is using docker and have pip installed packages they is stored locally in You can also deleting packages little more selective one by one and leaving that you dont like deleting. This method is also working if you is having testing radio-libs and installing them with pip or copy them to the /config/deps for getting them overriding the libs that HA is having in its container. If you have installing packages by modding zha/manifest.json method from the first posting its normally being over written then you is updating HA container and then you is back to standard installed HA with OK dependencies. |
Beta Was this translation helpful? Give feedback.
-
New method adding local quirks in HAFor getting the local quirk folder to working add this in HA config: zha:
custom_quirks_path: /config/custom_zha_quirks/ Making one folder with the name Warning: ZHA is not loading if not finding configured folder or the quirk is having fatal fault.If its being loaded you see the local quirk have path the device property is short and is only the name and not the full path like Then you have making changes you need deleting the All local quirk is using the (in HA) installed quirk heritage so if you is doing one new quirk The priority for matching quirks is first local quirk and then ZHA builtin. In one quirk is the first (earlier device class in the code) is matched then the system is loading it and do not trying more device classes (its being used for TS004F for special devices in the beginning and general deceives without "extras" is at the end if the quirk). For getting important information from the system and the device pleas adding little more debut logging then testing new quirks. Instruction for setting debug logging: #693 (comment). Also then the quirk is merged in (Z)HA you shall deleting the "temporary quirk" for not getting problem in the future then the local quirks is not being deleted then updating the HA container and you is not getting updates for it and can getting broken in the future. Pleas making one PR if you have making one working quirk for your device so other user can using there devices in ZHA.Instruction for making PRs: #693 (comment) |
Beta Was this translation helpful? Give feedback.
-
Jeedom's zigpy-based zigbee pluginYou juste have to past it in this folder: (For the moment untested !!) |
Beta Was this translation helpful? Give feedback.
-
Editing files in Home Assistant OSOS and supervised is blocking installing portainer as addon so the user cant connecting to the HA container. |
Beta Was this translation helpful? Give feedback.
-
In Home Assistant Core 2022.5.4 i see there is vi in the container, out of the box. |
Beta Was this translation helpful? Give feedback.
-
Btw, I wrote this initial troubleshooting guide for the official ZHA integration on how to add custom ZHA quirks locally that was rejected: home-assistant/home-assistant.io#23884 That initial guide did however not cover how to map/define storage volumes with Docker-Compose f using Home Assistant core in a Docker container but there it should be noted that the existing ZHA integration documentation does mention Docker Compose under troubleshooting: https://www.home-assistant.io/integrations/zha#cant-connect-to-usb-device-and-using-docker https://www.home-assistant.io/integrations/zha#docker-compose Anyway, here is a copy of my guide for beginners: home-assistant/home-assistant.io#23884 Manually add and use a not yet merged custom ZHA quirkIf you have bought a non-standard Zigbee device that is not yet supported by ZHA but someone have written a ZHA "quirk" module (ZHA Device Handler/Zigbee Converter) that not get been merged into a "ZHA Device Handlers"" library release then you can add that manually as a custom ZHA quirk to your Home Assistant instance, (using something like File Editor or Samba share add-ons in Home Assistant).
|
Beta Was this translation helpful? Give feedback.
-
Adding new / updating quirks in Zigpy / ZHA GitHub.Then you have getting one local quirk working OK in your system is best making one PR for adding it in the main ZHA so other user can getting there device working well in there system and if ZHA is doing changes the maintainers is fixing the quirk so its working in the future. Making changes in GitHub repos:Go to the file you like changing and click on the edit symbol and GitHub is making one local copy of the repro in your Git. Then all is done make one the pull request for getting it uploaded to the main repor so it can being merged after reviue of the maintainers. Look on the ESPHome guide for editing ESPHome docks that is good illustrated instruction. GitHub is making many test of the code syntax and if getting problems read the errors its normally is giving clues what is not OK and also other users and devs can helping getting it OK. Large thanks for contributing and making our system better and better and getting more functionality in the future !! |
Beta Was this translation helpful? Give feedback.
-
Debug logging for getting information from the system and devices.Setting up instruction for ZHA components https://www.home-assistant.io/integrations/zha/#debug-logging. One good start is putting in: logger:
default: info
logs:
homeassistant.core: info
homeassistant.components.zha: debug
bellows.zigbee.application: debug
bellows.ezsp: info
zigpy: info
zigpy_deconz.zigbee.application: info
zigpy_deconz.api: info
zigpy_xbee.zigbee.application: info
zigpy_xbee.api: info
zigpy_zigate: info
zigpy_znp: info
zhaquirks: debug
custom_zha_quirks: debug If need more debug setting is the devs saying what is need being sett for getting it working OK. After have finished the debug is best practice putting the standard setting back for not spamming the log more then needed for normal operation. |
Beta Was this translation helpful? Give feedback.
-
With HA core, I had to use
|
Beta Was this translation helpful? Give feedback.
-
The guide on the main page it working very well but i always having problem then doing editing one file in the docker container.
For real beginners: The filesystem in one docker container can normally NOT being assessed from the host system then its isolated form the host system and must being done thru one terminal in the docker container and instructed above.
Then im no real unix person (the first Linux was around 0.95 with X-windows was optional to install with some extra floppy disks but i'm not being 110% hooked on it and moved on by skipping Windows 9X and landed in OS/2 but im not complete lost in that world) and the HA container is really stripped and no disent editor is installed (what i have finding at least) and VI is not my friend.
In Linux CLI i normally using nano that is not super but OK for my level.
I have trying installing different text editors with pip but was not finding any that i like until testing suplemon that is pretty easy to understand without much knowledge.
Install it from the docker container command prompt with
pip install suplemon
and then open one file with command like this:suplemon /usr/local/lib/python3.10/site-packages/zhaquirks/tuya/valve.py
Installing with pip:
Editing HAs configuration.yaml:
suplemon /config/configuration.yam
Copy and paste with mouse is supported as scrolling with mouse and commands is showing in the underline for easy getting started for beginners / low end users like my.
Question: Do you knowing some other better or easier text editor for using in HA container for editing files and how to installing it in the container ?
Pleas writing your experience of it so other users can getting on the train and easy start editing there files (then needed and not too much).
Also if some editors have support for our friends black and company and python formatting for helping doing the coding working OK.
To edit other files in ZHA / zigpy suit is found under:
One more good thing if trying one updated package before HA have released it is editing the ZHAs manifest.json with:
suplemon /usr/src/homeassistant/homeassistant/components/zha/manifest.json
And editing the component version you like to using and restarting HA and its being installed.
Warning it can being that some components is not compatible with other versions then the devs have making changes that is needed in to being adopted in more than one package and is being broken if having the same patch levels of them (example API changes between radio and main zigpy packages both need having the same level of patches or ZHA is broken).
One good / bad thing its the installed editor is gone then updating the container so must reinstalling in if need doing new changes to files after HA / ZHA updates.
Beta Was this translation helpful? Give feedback.
All reactions