I have a lot of ZigBee devices. Configured via ZigBee2MQTT. So far so good. Everything works fine. Now i would love to have an extra channel for every device which shows me the current state (online/offline)
The frontend already shows me the current state. But i don’t know if its possible to get an extra channel for every single device. I already tried:
advanced:
legacy_availability_payload: true
But my ZigBee2MQTT seems to stop working after adding this line. I hoped, it adds a second JSON-attribute to the received payload. Like this: {"state":"offline"}
The availability feature checks whether your devices are online. The availability state of a device is published to zigbee2mqtt/[FRIENDLY_NAME]/availability (this message is a retained MQTT message).
I managed to get a working status for all my MQTT.things.
But now i would like to get a switch-item to show me the current state. I tried following without success: