ZHA / deconz

Good morning everyone,
after the summer months of inactivity I have updated the HomeAssistant system and related addons and now I have the following version:
Home Assistant 2022.9.7
After the updates the various sensors were no longer present and the message came out, still present:
Entity not available
I uninstalled and reinstalled deCONZ but by itself it does not detect the sensors and switches because I assume ZHA (Zigbee Home Automation) is missing: I uninstalled ZHA which was detecting an error and now I can no longer install it.
When I try to enter the path to deConz with a Conbee 2 Dreseden… (that is: /dev/ttyAMA0) it gives me error, even if in deConz I enable the connexion.
How can I solve it?
A downgrade to previous versions where the problem was not present?
Help…
Thank you

You can’t use zha and deconz at the same time. It’s either just zha or its a combination of the deConz addon and integration

Ok I install a new Homeassistant, then only daConz but it’s not able to detect any device…

Logger: homeassistant.components.deconz
Source: components/deconz/gateway.py:349
Integration: deCONZ (documentation, issues)
First occurred: 11:04:35 AM (668 occurrences)
Last logged: 6:24:32 PM

Error connecting to deCONZ gateway at 172.30.33.0

The problem was that deCONZ gateway is at 172.30.33.2. So in “/config/.storage/core.config_entries” with Studio Code, I found the part that handles “domain deconz” and changed:
“host”: “172.30.33.o”, to “host”: “172.30.33.2”
I finally get no errors in deCONZ but sensor are still unavailable.

Hi,
after several attempts, including installation on new SD card of Home Assistant, deCONZ does not work.
It does not detect Xiomi Aqara temperature sensors and Ikea switches, so the only solution is to replace the Conbee II with another zigbee gateway. What do you recommend?

Its probably better if you can give the integration the host address rather than the docker address because the host will stay the same on restarts where as there is no telling what address deconz will get in docker

I tried during configuration, but I cannot and don’t know at the moment how and where to give the host address.

is it the add-on? you should get a specific set up flow for the add-on when you install it, then you will get the proper address for deconz as well, if that doesn’t work the add-on uses “core-deconz” as address

For the hardware, make sure zha is not using the usb stick so you can pass it to the add-on

in the addon I cannot change the default set up that is /dev/ttyAMA0
installing integration I can use core-decoz but still not working.
Here log from addon:

17:54:43:786 failed to reconnect to network try=8
17:54:48:787 failed to reconnect to network try=9
17:54:49:341 dev /dev/ttyAMA0
17:54:49:387 dev /dev/ttyAMA0
17:54:50:287 Skip idle timer callback, too early: elapsed 892 msec
17:54:52:663 device state timeout (handled)
17:54:52:742 void zmMaster::handleStateIdle(zmMaster::MasterEvent) not connected goto OFF state
17:54:53:786 failed to reconnect to network try=10
17:54:58:787 reconnect network failed, try later
17:54:59:287 start reconnect to network
17:55:04:538 failed to reconnect to network try=1
17:55:07:340 dev /dev/ttyAMA0
17:55:07:386 dev /dev/ttyAMA0

Can I disable the deConz integration, install ZHA, do some testing and then restore everything as before?

I have bought some Chinese ZigBee smart plugs and they do not work with a conbee 1 with deConz, but they do work with ZHA and a Sonoff ZigBee stick.

So I don’t know if the issue is the Conbee or deConz…

It could be a simple device support issue with deconz

1 Like

Disclaimer; I use ZHA and not the deCONZ/Phoscon application. I guess that it should work but pretty sure that even if you do a backup in deCONZ/Phoscon application before and restore that backup afterwards in deCONZ/Phoscon application (after you are done with the testing) then you would still at least have to re-join/re-pair each and every device in deCONZ/Phoscon application, however, I think when you restore the backup you should at least not lose any configuration. Anyway that is how backup and restore works in ZHA so just assuming that it works the same in in the deCONZ/Phoscon application.

If you only have the first ConBee and not the newer ConBee II then might be a good time to buy a new Zigbee Coordinator USB adapter regardless and do some testing with that in a separate installation.

1 Like

Not possible to install ZHA: failed usb

1 Like

If you are using Home Assistant in a virtual machine and/or in a Docker/Podman container then know that failed setups are usually due to ZHA/zigpy not being able to connect via the serial connection to the Zigbee Coordinator, which is normally likely due to either failed USB pass-through to VM or faulty Docker/Podman container device mapping, meaning user setup error in making sure the underlying environment pass along the USB and/or serial port to Home Assistant or deCONZ, see example → https://www.home-assistant.io/integrations/zha#cant-connect-to-usb-device-and-using-docker

I’m Using HAOS

Yeah but where and how have you installed HAOS? Try to provide as much info as you can. Help us help you.

HAOS on Raspberry Pi 4

It might be consuing note that you should not be using both the ZHA integration and the deCONZ intergration at the same time with just one adapter. If you are using ZHA then you should however be selecting deconz ad the radio during the installation of the ZHA integration (again that is without installing the deCONZ integration).

Note that the deCONZ integration should only ever be installed if you have chosen to run the stand-alone deCONZ/Phoscon application and then first installeed that seperatly before installing the integration for it as it is a two part deal. Unlike ZHA which is only the ZHA integration.

Anyway, if using ZHA then check under HAOS settings if it sees the ConBee dongle. Settings → System → Hardware → Overflow-menu ("…" dot-dot-dot) → All hardware

There is should list for example “ttyUSB0” and/or “ttyUSB1” for tty subsystem with an ID for the device path.

It is that long ID for the device path of the USB device that you want to use for ZHA device path.

Before and some months ago everything was working fine with deconz + zha and also deconz integration… after haos upgrade Conbee 2 and deCONZ started to have problem.
After that hystorical reminder I tried to install only ZHA after deCONZ but it’s not possible. I also do not find any ttyUSB0 and/or ttyUSB1.

Firstly, seems that your Home Assistant OS installation and/or your Raspberry Pi hardware can not see your ConBee adapter. Maybe your Raspberry Pi hardware is not getting enough power? Also try updating firmware on the ConBee using a different computer, and then maybe try using a USB extension cable or a powered USB 2.0 hub if there are problems with power. Regardless you always want to use a USB 2.0 port or a USB 2.0 hub for any Zigbee adpater since USB 3.0 ports/hub are infamously known for causing serious radio interference with Zigbee signals.

Secondly, we are still telling you that you empirically can for sure not use the ZHA integration and the deCONZ integration at the same time with a single ConBee adapter. So either you used the ZHA integration with it or you used the deCONZ integration (with deCONZ/Phoscon application installed somewhere as the deCONZ integration does not work without it).

Note there that deCONZ/Phoscon gateway software is not the same as the deCONZ integration and you would need both to use deCONZ, read https://phoscon.de/en/conbee2/software and https://www.home-assistant.io/integrations/deconz/ (you can kind of compare using deCONZ/Phoscon gateway software in combination with the integration as having a physical Philips Hue Bridge and use it in combination with the Phillips Hue integration).

You are perhaps confusing it with you using the deconz radio adapter in ZHA (which is just a configuration in ZHA and not the same as the deCONZ integration). Note that if you are using the deCONZ integration then you would need to have deCONZ or Phoscon application installed somewhere and then that is actually what is connected to the ConBee adapter and not deCONZ integration as that is only the code that integrate that application into Home Assistant.

Hi all,
sorry for the delay.
Now I finally found out that the problem was just the Conbee II not being recognized by any device on different operating systems (windows and ubuntu).
I ordered and configured a Sonoff Zigbee Gateway Dongle and all sensors and switches were configured correctly.
Thanks for the support!