I am using a door contact while testing. I will later change it back to the leak sensor after I get this working. I was also having trigger issues with the leak sensor.
I set the trigger to be when the switch changes to open, however, the trigger of the piston occurs on the open to close transition and as such the THEN part does not execute. Your help would be appreciated.
In the log the evaluation of the IF branch shows false because the trigger occurred on the open to close transition.
Thanks,
Ray