1) Give a description of the problem
Following piston gets executed even when Presence Sensor changes to NOT present. Piston is subscribed to be triggered only when Presence Sensor changes to present.
This is just a fast-made example so the logic may not be consistent.
2) What is the expected behavior?
Piston is not executed when Presence Sensor changes to NOT present.
How could this be done in an elegant way? I know that I can put the last action to every if clause but that would be just copy and paste programming.
3) What is happening/not happening?
Piston is executed when Presence Sensor changes to NOT present.
**4) Post a Green Snapshot of the piston!