domoticz-zigbee2mqtt-plugin icon indicating copy to clipboard operation
domoticz-zigbee2mqtt-plugin copied to clipboard

device-availability feature support

Open jpveen opened this issue 3 years ago • 2 comments

First of all Stanislav, how are you doing during this awful war? Are you healthy with you and your family?

Feature request description Enables the view of offline zigbee devices in domoticz.

Koekk added a device-availability optional feature a while ago. If activated zigbee2mqtt checks if devices are available. When a device is not online a payload offline will be published to /device-xxx/availability.

Example: State "Offline" of the device, instead of the last-known state.

Feature definition Set domoticz state to Offline when a availability payload offline is received and set state back to the state back to the current state when a availability online payload is received.

zigbee2mqtt log:

info  2022-05-02 11:04:02: MQTT publish: topic 'zigbee2mqtt/Hue-4/availability', payload 'offline'
info  2022-05-02 11:25:26: MQTT publish: topic 'zigbee2mqtt/Hue-4/availability', payload 'online'

jpveen avatar May 02 '22 09:05 jpveen

@jpveen do you have any examples of such "Offline" state in other Domoticz plugins/devices, I'm not sure that Domoticz really supports that

stas-demydiuk avatar Aug 27 '22 08:08 stas-demydiuk

Hi, from what I have found domoticz has around 20 device statusses, but not a specific Offline status. But you could probable use the STOP nvalue 17 for that. So it would be very helpfulm if the z2m plugin could send a nvalue=17 to domoticz when a availability payload offline is received for a device. No need to handle the 'online' payload, as when a device gets online the plugin already triggers a state change. Or if you think that 17 should not be used send a 255 to domoticz, that would also be ok. Thx!

jpveen avatar Aug 29 '22 15:08 jpveen

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 27 '22 15:11 stale[bot]