core: ZHA error after update 2022.04
The problem
After update to 2022.04 ZHA state is: “Failed to set up”
Log deatil: Logger: homeassistant.config_entries Source: deps/lib/python3.9/site-packages/zhaquirks/centralite/init.py:11 First occurred: 23:39:14 (1 occurrences) Last logged: 23:39:14
Error setting up entry socket://192.168.1.128:8888 for zha
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 335, in async_setup
result = await component.async_setup_entry(hass, self)
File “/usr/src/homeassistant/homeassistant/components/zha/init.py”, line 99, in async_setup_entry
setup_quirks(config)
File “/config/deps/lib/python3.9/site-packages/zhaquirks/init.py”, line 394, in setup
importlib.import_module(modname)
File “/usr/local/lib/python3.9/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “<frozen importlib._bootstrap>”, line 1030, in _gcd_import
File “<frozen importlib._bootstrap>”, line 1007, in _find_and_load
File “<frozen importlib._bootstrap>”, line 986, in _find_and_load_unlocked
File “<frozen importlib._bootstrap>”, line 680, in _load_unlocked
File “<frozen importlib._bootstrap_external>”, line 850, in exec_module
File “<frozen importlib._bootstrap>”, line 228, in _call_with_frames_removed
File “/config/deps/lib/python3.9/site-packages/zhaquirks/centralite/init.py”, line 11, in <module>
class CentraLiteAccelCluster(CustomCluster):
File “/usr/local/lib/python3.9/site-packages/zigpy/zcl/init.py”, line 91, in init_subclass
raise TypeError(
TypeError: manufacturer_attributes is deprecated. Copy the parent class’s attributes dictionary and update it with your manufacturer-specific attributes. Make sure to specify that it is manufacturer-specific through the appropriate constructor or tuple!
What version of Home Assistant Core has the issue?
2022.04
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
ZHA Zigbee Home Automation
Link to integration documentation on our website
https://www.home-assistant.io/integrations/zha/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
The problem is with Sonoff Zigbee Bridge with Tasmota 11.0.0 (192.168.1.128)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 63 (16 by maintainers)
Remove /config/deps/lib/
I just got killed by my wife yesterday evening. So it won’t hurt anymore today 😆
I updated to 2022.4.1 but my problems still exist. Most devices are offline/not available. After a while some of them are available and network is very unresponsive or not working at all 😕
Some various ZHA fixes released with 2022.4.1, including a bump of quirks.
I will test it tomorrow: https://www.home-assistant.io/blog/2022/04/06/release-20224/#release-202241---april-7
I also had problem with Zigbee using ZHA and Conbee. After update to 2022.4 lost some actions and everything was working strange but not totally gone. After restore to 2022.3.8 all was fine again. Lights and remotes are IKEA using “Awesome HA Blueprints”. /Kent
@dmulcahey It’s all well and good saying we are on our own, but I’ve been forced into this situation to get my curtain motors working. I raised a support request back in February but it would appear this hasn’t been looked at, at least it hasn’t even been commented on!
https://github.com/zigpy/zha-device-handlers/issues/1399
What else are we supposed to do?
It would also make life much easier if there was some documentation on custom quirks, at least I haven’t found any explanation. Rummaging through various threads I managed to get the custom quirk working back in Feb so I could use my curtains, this update broke that.
I have managed to get them working again by downloading the latest 0.0.71 quirks and editing those to create a new custom ts601 file. This has sorted out my issues once again with a custom quirk but it would be nice if standard support for the device was sorted out so we don’t have to resort to custom quirks and end up “on our own” again in a future release.
If it helps others I’ve created a text file in my custom quirks folder with some notes for next time as follows:-
When adding a custom quirk, you also want to update the information here:
(This maps the open, close, stop to the correct buttons)
(For some other device, TUYA_COVER_INVERTED_BY_DEFAULT also needs to be updated (This is needed for my curtain motor)
Note: Also edit the ts0601_cover.py file and change the following line (13): from zhaquirks.tuya import ( to from . import (
Deleting config/deps/lib together with changing zha-quirks to latest version did the trick for me
when you use custom local files they aren’t updated when we make core changes to ZHA. In this release we had some significant changes to the type system and how we define commands and attributes. We did our best to make sure everything was working (we missed a couple smallish things). Anyone who has custom quirks / custom dependencies would have to ensure they made the same changes. Honestly we probably should have stuck something in the release notes but this situation isn’t one we thought about ahead of time.
I forgot to mention I rebooted the host system afterwards. I don’t know if it makes any difference.
Wife is home soon, I’ll restore version 2022.3.8 and await for the developers to sort it out. 😆
Unfortunately, for some reason I can’t restore my backup either!
@pbvdven See this issue https://github.com/home-assistant/core/issues/69375
Hi, I had similar issue with custom quirk for “Aqara H1 Wireless Remote Double Rocker (Version WRS-R02)” and I got it working by simply changing “manufacturer_attributes” to “attributes” in “AqaraRemoteManuSpecificCluster” class and adding “zhaquirks” before “.xiaomi” in
from .xiaomi import ( LUMI, BasicCluster, XiaomiAqaraE1Cluster, XiaomiCustomDevice, )Both changes were made in my “aqara_h1_remote.py” file in /config/custom_zha_quirks/ Hope this will help some of you.My folder /config/deps is empty and ZHA is not working after update to 2022.04. All entities are flagt as unavailable and the log is full of errors.
When reverting back to 2022.3.8 ZHA is working instantly without any problems 😕
that’s so weird could not find it with either vs code or file editor but I did find and delete it in the terminal and now I’m good 😃 thanks @vdlr26 for asking the question and @Adminiuga for the answer.