1) Give a description of the problem
The piston below is designed to rotate colors on two LED strips between certain hours everyday and then turn off at a set time. The lights do not always turn off.
2) What is the expected behavior?
On Monday’s through Thursday’s I want the lights to turn off at 11:00pm and on Friday’s through Sunday’s I want the lights to turn off at 11:30pm. I coded the loops to end a little before these times incase the waits inside the loops were causing problems.
I suspect my combination of loop and IFs don’t hang well together but I can’t think of another way to achieve this in a single piston.
3) What is happening/not happening?
Sometimes the lights turn off at the expected time and other times they do not.
Note, I set colors on in the piston by turning on the specific channels. The off commands are at the device level (which works manually). I have also tried using channel off commands in the piston - it makes no difference.
4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
Will paste logs after tonight if needed.