Script help - 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: Script help (/showthread.php?tid=3566) |
Script help - svetoslavp - 19.09.2021 Hello, Could you please help me with one resident script? If the temperature is below "A" for more then "B" seconds/ minutes turn on 1/1/2. If the temperature is above C for more then "D" seconds/minutes turn off 1/1/2 We have temperature with address 1/1/1. RE: Script help - admin - 20.09.2021 Modify as needed, make sure that step value is the same as script sleep time (at least 5 seconds, can be more if the wait time is larger). Code: temp = grp.getvalue('1/1/1') RE: Script help - svetoslavp - 21.09.2021 (20.09.2021, 10:52)admin Wrote: Modify as needed, make sure that step value is the same as script sleep time (at least 5 seconds, can be more if the wait time is larger). Thank you very much! |