Lights unavailability from zigbee2mqtt

Hi

I have zigbee lights connected through zigbee2mqtt,
and I have enabled the option to check for devices availability.
That seems to work fine, and for example lights that are physically switched off actually show as “offline”.
image

But how am I able to get this info back to Home Assistant?
Those lamps show as “on”, as they were before they were switched off.
image

1 Like

Finally I seem to have found the issue:

zigbee2mqtt / Settings / Settings / Advanced / Persist cache state
Was ticked before, which apparently prevented the broker from updating it to “unavailable” as it already had some value saved from the last time they discussed.

Now those entities show correctly as unavailable in Home Assistant, and finally my light groups works properly.
image

1 Like