ebaauw / homebridge-deconz

Homebridge plugin for deCONZ
Apache License 2.0
138 stars 7 forks source link

UI API does not show any gateways #134

Closed KoljaV closed 1 year ago

KoljaV commented 1 year ago

Hi,

There is a bridge shown in the UI. However the API does not show any Gateway. Is there someone who knows what I am doing wrong?

BR, Kolja

2A2A2466-1BA9-4452-B6FC-E1A313CCBC9C B7E1FC70-9899-4BCB-BFB8-308FDBD9F3D2

ebaauw commented 1 year ago

The screenshot shows the Homebridge child bridge, as configured by the Homebridge UI in config.json. This has nothing to do the deCONZ gateway as seen by Homebridge deCONZ.

On new installations, Homebridge deCONZ won't show the gateway until either:

KoljaV commented 1 year ago

Hi, thanks for the clarification! I guess that the API key was obtained. But somehow no devices are exposed, although one zigbee switch is connected via the deconz App.

1073BF04-0732-4608-9D7D-5C34D3AB5CE3

ebaauw commented 1 year ago

I guess not, or Homebridge deCONZ would have created an accessory for the gateway to persist the API key.

KoljaV commented 1 year ago

Thanks for your help! That is much appreciated! Yes, you are right. There is no gateway accessory. Thus, I also cannot reinitiate the creation of the API key, right? I reinstalled the deconz plugin and this is the output:

image

There is no API Key request in the logs, right? How can I trigger the API Key Request if I have no gateway accessory.

ebaauw commented 1 year ago

Check the log: Homebridge deCONZ tries to obtain the API key on startup. After a couple of minutes it gives up and exposes the gateway accessory based on the limited info it provides unauthenticated.

Double-checked: even when not yet exposed to HomeKit, the gateway is accessible through the configuration API. Are you sure Homebridge deCONZ has found your deCONZ gateway?

KoljaV commented 1 year ago

Thanks again for your help! It seems that the plugin is not correctly connected to the decent gateway at all. After configuring it manually (no auto discover), I get the following log message:

image

When I check the Mac address using the deconz software, it does not show zeros:

image

Connecting via the HUE Essentials APP also works ...

Any Idea why it is giving backe zeros?

BR, Kolja

KoljaV commented 1 year ago

Ok, got it. It's up to deconz. Somehow the API gives back zeros for the bridgeID. I don't know why. So far, all of the found hints did not help me

image
ebaauw commented 1 year ago

I've never experienced this myself, but seen several reports of this (e.g #51, #129). I don't know what causes this, nor how to fix it. Best ask on de deCONZ support forum.

KoljaV commented 1 year ago

SOLVED: Resetting the GW via the GUI helped. Thanks a lot for your support @ebaauw !