1) Give a description of the problem
Ok here we go again. Do not understand how can I create such a piston.
2) What is the expected behaviour?
When fridge door has been open for more that 90 sec then send push notification.
3) What is happening/not happening?
Fridge door sensor makes sometimes false reports. Sometimes it reports two or more “open” lines to IDE log (without “close” line) and piston thinks door has been open more than 90seconds even though it is really closed. I would like to get rid of these false notifications but do not understand how piston would understand when it’s false report and when it is not.
I have heard something about device previous state but I’m not sure is that the right way to proceed (and how).
Here’s log where normally should be open - close pairs. Sometimes there is two or more “opens” without “close”.
**4) Post a Green Snapshot of the piston![image|45x37]
This is how I started but this is too stupid …I know. Same sensor can’t be included in two IFs…