So the undercabinet lights didn’t dim to 20% at 8:00 pm. Any ideas why?
Help with piston to control a number of lights
Probably a trigger timing out… ‘changes away from away’ and ‘time happens daily at’ only last about 10 seconds before changing back to false, sompiston gets cancelled.
Change and simplify the top 4 triggers / conditions into two conditions.
IF mode is Movie or Home
and
Time is after 45 minutes to sunrise
The above will stay true right through to midnight and will trigger in the same way.
The reason I have the two triggers is so that if someone is “Home” and it is 45 mins to sunset then the lights will come on. But if nobody is “Home” and the Location Mode is “Away” then the lights won’t come on until someone comes home.
Maybe if I change that trigger to IF Mode is not “Away”? No, this won’t work because if someone is Home than that is true. Any other suggestions?
I think this will work. I took the Time is 8:00 pm trigger out of the first While condition and moved it to after those conditions in an If Else Statement. That way it will dim the undercabinet lights every day at 8:00 pm. What do you think?
That will work with my example of just two conditions
Both Time or change of mode will trigger the piston…
Ah, ha! I see your point. I get it now. Because the lights won’t come on until the mode is Home or Movie. I will try that.