Hi guys,
I have a pretty simple piston that I find challenging to simplify due to me being new to webcore and not knowing its full functionality
1) Give a description of the problem
I have a bunch of motion sensors controlling my lighting switches. IF (motion 1 changes) THEN (turn on switch A) ELSE (wait x minutes, turn off). Problem is, I have many repeated IFs THENs ELSEs for every motion sensors.
2) What is the expected behavior?
How can I simplify such a long piston using variables or anything else that can be used? Arrays?
3) What is happening/not happening?
Everything is happening fine, it’s a simple piston but needs simplifying.
4) Post a Green Snapshot of the piston
(UPLOAD YOUR IMAGE HERE)
5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS THEN HIGHLIGHT ALL OF THE LOGS SND CLICK ON THE </> ICON TO FORMAT THEM)