Hi all,
I’m using Home Assistant OS, Node Red and Zigbee2MQTT.
We have a smart Zigbee lightbulb that is integrated into a non-smart motion sensor. Meaning, depending on motion, the power to the light is turned on and off.
I have a Node Red Flow that calculates the proper brightness depending on time of day and sends it to the light. This is repeated every 10 seconds.
This works but has one problem: When the light is offline, and the flow tries to set the light brightness, then in the Zigbee2MQTT dashboard lots of error messages appear. Those error messages float over the UI and obscure parts of it.
Is it possible to check whether or not the device is online, before setting its brightness? I tried “get current state”, but that reports “on” even though the lightbulb is actually disconnected from power.
Thanks!