stas-demydiuk / domoticz-zigbee2mqtt-plugin

zigbee2mqtt plugin for domoticz
MIT License
136 stars 99 forks source link

How to get the last seen #804

Closed bricololo44 closed 1 year ago

bricololo44 commented 2 years ago

Issue description

Hello, With DZVents, I easily get the Last update of the devices in domoticz but I would like to have the Last Seen of the hardware line of the plugin. This is information that is not in the domoticz JSON. Is there a file in domoticz that contains this information? Is there a python script or other that would extract this information?

Additional information Zigbee2MQTT [1.25.1] coordinateur zStack3x0 coordinateur 20220219

bricololo44 commented 2 years ago

I just noticed that as a general rule for Xiaomi devices, the last seen is identical to the last update, but this is not the case for the temperature sensors (difference < 3 min). The problem is for Opple switches, because the last update is equal to the last action on the switch, so the last seen is updated regularly. I have differences of several hours or days. Is there a file in domoticz that contains this information? Thanks

stale[bot] commented 1 year ago

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.