Troubles trying to get ZHA working

Ok, strange because I’m pretty sure it should not be running. How did you check if it’s running?

Ubuntu GUI, task manager

No idea… but if if worked when Deconz was running, did you try to start it?

I can run Deconz in Ubuntu and it sees the Conbee2 and two devices I had added in HA, but since HA failed to load ZHA at boot, I would then have to restart HA again to test.

Oddly, after starting Deconz in Ubuntu, this time HA notified me of an available integration, this didn’t happen before despite me adding the devices :man_shrugging:

Is this the normal requirement for ZHA to work when running HA on top of Ubuntu?

EDIT: it wont let me add the integration because it wants the gateway unlocked…

I think two things get mixed up now because HA discovered Deconz and you want to use ZHA. You can not use them both at the same time.

yeah… I guess I could try using deconz instead of ZHA, but ZHA seemed to be better in terms of compatible devices when I was reading forum posts

I’m using Deconz (this docker image) not installed on the OS. Never tried ZHA as all my devices are supported (Hue, Ikea, Xiaomi). I think the main difference is Deconz is closed source so you depend on Dresden elektronik to add new devices.
An advantage (for me) of using Deconz is that I use Deconz for basic light on/off. If for some reason HA stops working I can atleast still switch on/off the lights.

I’ll give it a try since a HA restart just now didn’t help, got the same error.

EDIT: installed the Deconz add-on and integration but it doesn’t detect the already linked devices I had added back with the ZHA integration, nor can it detect them if I try to add them again via deconz. I think i need to go back to trying to get ZHA working

If using Deconz, you should not have ZHA integration active. The error is from ZHA, you can not have both active at the same time.

You are trying 3 things at the same time, Deconz on Ubuntu, ZHA and the Deconz addon. Focus on one and uninstall the others.

No, I’m not trying 3 things at once. I only had one installed / configured at a time and restarted HA in-between each attempt.

The thing is, I have 2 devices which are now linked to the Conbee2 and can be seen if I start deCONZ in Ubuntu, but deCONZ in HA will not see or detect them

So deconz running in Ubuntu works and shows the devices, correct? Remove the integration, addon and ZHA and add it manually to your config;

deconz:
  host: your.ip
  port: 8443

But I don’t want to use deCONZ since for some reason the two devices I have linked to the Conbee2 don’t seem to work with deCONZ in HA. I can get deCONZ working in HA, thats not the issue, the issue is getting ZHA to work because I want those two devices to work which only seem to work with ZHA, not deCONZ. If I could get those two devices working in deCONZ then I’d be happy with that…

Can you tell us the make and model of the devices? Are they on the list of supported devices from deconz? If so they should work. Maybe there is something going on between deconz on Ubuntu and HA that causes that. Maybe they work just fine when using the deconz addon in HA. That way you don’t have to go through the hassle of using zha.

They are Tuya door and window switches, not on the deCONZ compatible list. That was why I wanted to go with ZHA, which did work for a little while… until I restarted HA

Ok, clear. I would uninstall deconz as you can not have both deconz and ZHA connect to the Conbee. I think this is what could have happend when you restarted HA, deconz connected to the Conbee which made it impossible for ZHA to connect to it.

As I said before, I was trying only one at a time. Currently I have neither of them installed, but as soon as I install ZHA it starts spitting out the errors.

EDIT: Further info- after removing deCONZ in HA and Ubuntu, and ZHA from HA (so nothing zigbee installed) I can then install ZHA successfully and HA shows the Conbee2 and two paired devices, but all 3 are shown as unavailable. Which makes me think there is some sort of issue with the Conbee2 being accessed from Ubuntu?

ZHA integration:

Conbee2: (not much shown here)
image

door/window sensor:
image

Don’t get me wrong, just trying to help you figure out the problem but you have posted some conflicting information:

:roll_eyes:

Back to the current issue. Anything in the log? Did you try this

Using the path rather than ID lets me connect/setup ZHA (suggesting that HA can see the Conbee2) but then when going into the integration, the Conbee2 and two paired devices show up but are all ‘unavailable’, which is no different from when I add ZHA by ID. So they both give the same non working result :expressionless:

Did you remove modemmanager?

So far this appears to have fixed it, thank you! I’ll try a few restarts / reboots and make sure it keeps working, if so I’ll come back and mark this as solved.