Since PLTS doesn’t have a way to use underscore syntax on its conditions, I’m not sure how to continuously check if something is true.
I’m turning on the lights in my garage when I open the door from the garage to the house. This triggers a countdown before turning off the lights. I’d like the light to stay on if the door stays open.
I know that I can use syntax like:
(door_open; Now > 1:00)
But that’ll only fire true once at the 1-minute mark. I want to check repeatedly (periodically).
I tried using PTLS’ timeRemaining device property, but can’t get seem to get comparisons to work. I tried:
door_open or (door_open AND (time_remaining lt 240) )
also tried:
door_open or (door_open AND (time_remaining lt 4:00) )
Any pointers?