Ok I am trying to write a simple Luup scene that if my 6 year old son turns on his TV between 21:00 Hrs and 23:00 Hrs it will turn the plug-in module off. I had it on a timer which worked well until he figured out he could press the button on it and turn it back on.
I tried the below but it doesn’t seem to work. Any Suggestions?
if (current_second > min_time_in_seconds) and (current_second < max_time_in_seconds)
Returning false in the Luup Event when not in your time range is supposed to cancel the scene and run the commands. I haven’t used that technique yet in my own system, but that is what the documentation says.
I’m just wondering what happens when your son gets old enough, and starts turning the tables on you. Locking out of your TV, Turning the lights on and off at strange hours just to mess with your head. 8)