Timestamp from Group address objects? - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Timestamp from Group address objects? (/showthread.php?tid=4031) |
Timestamp from Group address objects? - stemic01 - 04.05.2022 Hi. I have added some Zigbee door sensors to check if doors are open/closed and send the data as a group address. In the group address overview there is a timestamp when it was last changed "UPDATED AT". I thought it would be nice to being able to show/use this timestamp example to see if doors have been opened while on travel, or to turn off heating if terrasse doors are open for more than 15 minutes etc. Is there a simple way to collect and display the "Updated at" column from the "Objects" ? RE: Timestamp from Group address objects? - Daniel - 04.05.2022 Code: myobject = grp.find('0/0/1') RE: Timestamp from Group address objects? - admin - 04.05.2022 You can also map an event script to this object and update another object with current date and time. RE: Timestamp from Group address objects? - stemic01 - 05.05.2022 (04.05.2022, 13:43)admin Wrote: You can also map an event script to this object and update another object with current date and time. Thanks for your advice. That was clever |