dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 500 forks source link

deCONZ GUI shows Raspbee2 MAC addres, Homebridge deCONZ does not see it #6930

Closed brickelbrit closed 1 year ago

brickelbrit commented 1 year ago

Describe the bug

The Homebridge deCONZ plugin spits out below error: [4/27/2023, 9:41:21 AM] Homebridge v1.6.0 (HAP v0.11.0) (Homebridge 3D7D) is running on port 51154. [4/27/2023, 9:41:21 AM] [deCONZ] hardware: Raspberry Pi 4B 1.5 (4GB) [4/27/2023, 9:41:21 AM] [deCONZ] os: Raspbian GNU/Linux 10 (buster) [4/27/2023, 9:41:21 AM] [deCONZ] ui server: listening on http://127.0.0.1:39265/ [4/27/2023, 9:41:22 AM] [deCONZ] warning: 192.168.0.128:80: 0000000000000000: not a RaspBee/ConBee mac address - retrying in 60s

Steps to reproduce the behavior

None. Reboot with sudo GCFFlasher_internal -r seems to have done the trick once briefly, but issues is back and won't leave.

Expected behavior

deCONZ to recognize MAC address of Raspbee2

Screenshots

image

Environment

deCONZ Logs

APS,ZDP, ZCL and INFO: https://pastebin.com/fvMPEdW6

Additional context

Currently only three exterior Philips Hue lamps (no Philips Bridge) are connected to the network. Can control everything easily through the Phoscon Web interface or e.g. Hue Essentials. Just cannot get them into Homebridge and HomeKit. Planning to get several more Ikea bulbs.

BabaIsYou commented 1 year ago

Can you just force reading of Basic cluster for your Raspbee2 to see if it's changes something ? image Or just clicking on F5 while selecting youre Raspbee2 device in GUI ?

brickelbrit commented 1 year ago

image This is what I see. I might be doing something wrong though. Is something noticeable supposed to happen when I click the Raspbee2 in the GUI while holding F5?

I still get the same error message every 60s in the hombridge logs.

BabaIsYou commented 1 year ago

Just click F5 after selecting the box (blue line around it) … it forces deconz to « refresh » the node (node descriptor, active endpoints, simple descriptors requests)

ebaauw commented 1 year ago

Homebridge deCONZ gets the mac address from the API (/config/bridgeid).

I don't know what causes the API not to expose the mac address, but it's been suggested it could be related to the deCONZ Network Settings being wrong. These settings are stored in non-volatile memory on the device, I understand, and might be overwritten when using the device with other software.

brickelbrit commented 1 year ago

OK, thanks for the feedback. Using the device with different software would mean a different plugin? How would I be able to run a different software through the Raspbee2?

ebaauw commented 1 year ago

Different software than deCONZ, interacting with the device over the serial protocol. Again I have no first-hand experience with this situation. Best check the network settings.

Mimiix commented 1 year ago

Can you share a screen of the network settings

brickelbrit commented 1 year ago
image
ebaauw commented 1 year ago

The NWK Ext PAN ID should normally be the coordinator's mac address, and the APS Use Ext PAN ID usually is all zeroes. It's probably enough to delete the APS Use Ext PAN ID, for NWK Ext PAN ID to reset itself. If not, copy the coordinator's mac address to APS Use Ext PAN ID. Make sure to Save and Leave/Join the network for the settings to become active.

I think the API should report the correct bridgeid after the Leave/Join. If not, you might need to restart deCONZ.

Mimiix commented 1 year ago

Hi,

As this is not a bug report as described in #5113, i am closing this issue.

You indeed need to replace the ext pan id to all 0 .

brickelbrit commented 1 year ago

Thanks for all the support, regardless. This solved my problem!

Mimiix commented 1 year ago

Nice!