Event Scripting - 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: Event Scripting (/showthread.php?tid=4632) |
Event Scripting - Ibrahim - 08.03.2023 Hello, I am using event script to control auto/manual function for heating system. If the users set manual, it will turn the auto after the entered time. But I have two question; 1- How can I stop the timer if user set the auto before the entered time expires? 2- How can I retrigger the delay time if the user set auto before the entered time expires and then set manual with new time? Thanks. The event script is; Code: --auto/manual status RE: Event Scripting - Daniel - 08.03.2023 In 2023 fw you have Execution mode for event scripts, Select Last instance only then every new trigger of the script will kiill all old ones. RE: Event Scripting - Ibrahim - 08.03.2023 Hello Daniel, Thanks for reply. The fw is 20211215 and is it possible to do that with script? RE: Event Scripting - Daniel - 08.03.2023 I think yes, just check in event script settings. RE: Event Scripting - Ibrahim - 08.03.2023 Hi Daniel, There is just "execute on group read" check box on script settings. RE: Event Scripting - Daniel - 08.03.2023 Just below this should be Execution mode: Seems not in this fw yet RE: Event Scripting - Ibrahim - 08.03.2023 Hi Daniel, Is it possible to adding some code to script to solve this? RE: Event Scripting - Daniel - 08.03.2023 Yes but it is much simpler to just upgrade fw. This script has PID kill https://forum.logicmachine.net/showthread.php?tid=2884&pid=18555#pid18555 RE: Event Scripting - Ibrahim - 08.03.2023 Thanks, but it is too complex for me. RE: Event Scripting - admin - 08.03.2023 Then install 2023 firmware. |