1) Give a description of the problem
Looking for a sanity check
- will this work as expected (see below)
- is this the most efficient way to execute the expected behavior?
2) What is the expected behavior?
The piston has two parts
What happens if the Garage backdoor opens
capture state of an exterior light turn it on for 4m and then restore the state
capture state of 2 interior lights (if the variable is not empty), turn them on for 5m and then restore the state
If any of the following (Gararge Bays or kitchen door open) OR if there is motion detected in the garage
capture the state of the interior lights (if the variable is not empty)
turn on the lights for 5m
restore the saved state
My expectation is that the exterior light will work fine… its straight forward.
The interior lights…
If the lights are off and I open the back door the state will be captured as “Off xx%” (state and level). after 4minutes I trip the motion sensor in the second If block - that would maintain that state as “Off XX%” and restart the wait timer?
If I am barking up the wrong tree please let me know …first time that I am looking at combining a couple of similar pistons into one and want to make sure I’m on the right track
3) What is happening/not happening?
Will test when I get home Friday
4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
TBD
TIA!