Need help stopping this piston


#1

1) Give a description of the problem
Piston works for alerts but the announcement will trigger even if I’ve already opened the washer door. Need to fine tune to where it won’t make the announcement if the contact sensor is opened somwhere in the two minutes it’s collectively getting 0w on the power meter.

2) What is the expected behaviour?
Keep announcements but if contact sensor is opened, stop the rest of the piston (the announcements/notifications)

3) What is happening/not happening?
I just don’t know how to stop a piston while its running. I want to trigger the piston cancellation based on the contact sensor being opened.

4) Post a Green Snapshot of the pistonimage

5) Attach logs after turning logging level to Full
None needed

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

Unfortunately we can’t tell what is happening in the first 140 lines of the piston.

Given that line 143 is a timed trigger we do know that the piston will be triggered by power changes, so if line 140 is an if there may be an argument for flipping around lines 141 and 143. That way once the two minutes at 0W are over, there is only an announcement if the door is still closed.

If, somewhere in those other 140 lines, something else is triggering the piston then that might confuse things because of the way stay works.


#3

That will work. Nothing above line 140 has anything to do with this notification. Thanks