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

Make Touch (heartbeat) a configurable option

Open bizziebis opened this issue 5 years ago • 5 comments

To my opinion device.Touch() should be configurable in the plugin settings (On/Off).

I like my switches to show the last update moment as the Last Seen timestamp. Now the Last Seen timestamp shows the time of the device heartbeat.

For a lot of people this will be the expected behavior as the Last Seen time is indeed the time the switch/sensor was last seen. But that is not how I used Domoticz for the past 7 years :)

bizziebis avatar Jan 02 '20 10:01 bizziebis

+1

schurgan avatar Jan 02 '20 19:01 schurgan

+1

hughb8on avatar Feb 10 '20 14:02 hughb8on

+1 for security sensors it is much more interesting to know the time of the last operation. for example, when a movement was detected, when the sensor stopped detecting movement, or when the door was closed. but currenlly, we see the sensor’s heartbeat time. I'm for lastUpdate :)

kovainfo avatar Apr 09 '20 02:04 kovainfo

Or even so: is it possible to change the date only for the device whose data has changed? For example, the signal level of the "magnet" has changed - lastSeen only changes for the device "magnet (Link Quality)", and for the other devices (battery level, open/closed state) - does not it change?

kovainfo avatar Apr 09 '20 03:04 kovainfo

I made the following changes back and everything worked as you want. That is, heartbeat will only change the time and date for subdevices and not for sensors.

https://github.com/stas-demydiuk/domoticz-zigbee2mqtt-plugin/commit/136c1f84de2c945fc1bc329d6e5760f81801f6cb#diff-6ee30ccb8aa97070e5e898daf07c0f3bR95

schurgan avatar Jan 17 '21 17:01 schurgan

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 Aug 30 '22 17:08 stale[bot]