ct-Open-Source / ct-Smart-Home

A ready-to-use Node-RED setup for home automation
https://ct.de/smarthome
GNU General Public License v2.0
165 stars 40 forks source link

ZigBee devices not visible in node-red, but available in ZigBee dashboard #71

Closed Vermatic closed 2 years ago

Vermatic commented 2 years ago

I recently started to switch from a home-grown node-red/Zigbee2MQTT/MQTT setup on my Raspberry Pi 3 to the c't-Smart-Home project.

In the process of setting everything up again I noticed that I could not set up access to ZigBee in node-red correctly.

So I started with a fresh installation of the c't-Smart-Home to produce a minimal working example to check if I did something wrong, but it seems that it is simply not working.

Here are the steps that reproduce the problem for me:

There seems to be some communication (as can be seen on the right side), but I cannot see anything obviously wrong. I will attach the logs of the 3 running containers as well.

Has anyone experienced the same problem and knows what is going on here?

Vermatic commented 2 years ago

logfile-nodered.txt logfile-zigbee.txt logfile-mqtt.txt

Vermatic commented 2 years ago

When I manually press the on/off button on the power plug then I can see status messages in the "upper" node, so that means communication between ZigBee2MQTT -> MQTT -> node-red is basically working: image However, as I said, fetching the device list does not work so I cannot configure and populate the "lower" node...

Vermatic commented 2 years ago

Please check out https://github.com/andreypopov/node-red-contrib-zigbee2mqtt/issues/53

The "problem" can be fixed by tweaking configuration.yaml.

After my installation from scratch the "legacy_api" setting was set to false, making node-red-contrib-zigbee2mqtt fail. Setting it to "true" fixed the problem.

Vermatic commented 2 years ago

I can confirm that ct-Smart-Home did not create the incorrect "legacy_api" setting. It is configurable from the ZigBee dashboard, however I do not remember setting it there.

It remains a mystery how it got there for me. For others it may be present if an older configuration is copied.