04.07.2024, 06:12
Hi,
I need to track the status of 100 windows and send a command to turn off the AC in the room where window is open. Should send command every 5 minutes until window is closed.
Ideally, I'd like to achieve this with a single script, either resident (always running) or scheduled to run periodically. This simplifies maintenance by keeping everything in one place.
I'm unsure of the best approach. I tried using repeat..until loop, but it seems to keep running even when disabled.
Another option is a resident script that checks all 100 windows every minute and sends the "off" signal to the AC if any are open. The downside here is that the script would send the signal every minute instead of the desired 5-minute interval.
Any insights or experiences would be appreciated
I need to track the status of 100 windows and send a command to turn off the AC in the room where window is open. Should send command every 5 minutes until window is closed.
Ideally, I'd like to achieve this with a single script, either resident (always running) or scheduled to run periodically. This simplifies maintenance by keeping everything in one place.
I'm unsure of the best approach. I tried using repeat..until loop, but it seems to keep running even when disabled.
Another option is a resident script that checks all 100 windows every minute and sends the "off" signal to the AC if any are open. The downside here is that the script would send the signal every minute instead of the desired 5-minute interval.
Any insights or experiences would be appreciated