Logic Machine Forum
Heartbeat function - 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: Heartbeat function (/showthread.php?tid=2703)



Heartbeat function - Rune - 01.07.2020

Hi

Is it possible to make a script that controls the existence of a product? For example, a CO2 sensor that sends a ppm value and if it stops to send, the script would write a "1" to a KNX group address?


RE: Heartbeat function - Daniel - 01.07.2020

Hi
You can do it like this
https://forum.logicmachine.net/showthread.php?tid=846&highlight=knxlib.ping
Or if your device sends values periodically then you can monitor updatetime and if update time wasn't send for last X sec send 1 to your object.
BR