An ongoing discussion about this feature can be found here: #775
When the availability feature is enabled, Zigbee2MQTT will ping devices to check if they are online.
In case a devices changes it’s online/offline state, Zigbee2MQTT will publish to
This feature integrates well with Home Assistant as devices are marked as
unavailable when offline.
To enable availability, add the following to your
advanced: availability_timeout: 60
availability_timeout defines the interval in seconds at which devices are pinged.
Note that only non-battery powered devices are checked for availability.
availability_timeout: 0 is set, which means that this feature is disabled.
In order to exclude devices from this feature use
advanced: availability_timeout: 60 availability_blocklist: ['my_bulb','0x000b57fffec6a5b2'] # = list of friendly names or IEEE addresses
In order to set availability check for certain devices only from this feature use
advanced: availability_timeout: 60 availability_passlist: ['my_bulb','my_other_bulb','0x000b57fffec6a5b2'] # = list of friendly names or IEEE addresses
Non-pingable devices #
Note that not all devices can be pinged for availability (e.g. battery powered devices).
This category of devices will be marked as
unavailable when no message has been received from them for 25 hours (persistent across restarts)
This is only enabled when the availability feature is enabled.
State retrieval #
While this feature is enabled and a bulb reconnects or announces itself on the network, Zigbee2MQTT will retrieve the new state of the device. This will make sure that e.g. a bulb is powered off and on again the state (on/off, brightness, color temperature or color) is correct.
Note for CC2530/CC2531 users #
As this feature increases the amount of messages on the Zigbee network, it could cause stability issues when you are using a CC2531 or CC2530 as adapter.