Why has this stopped working?


#1

1) Give a description of the problem
It was working until last update

2) What is the expected behavior?
It is supposed to disarm security if any of my wife’s phone or my phone is present

3) What is happening/not happening?
Nothing is happenning

4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HERE)


5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS)


#2

First, you’re only testing for one presence sensor, you’re not testing for both of them, so that could contribute to the problem you’re seeing.

However, of bigger concern is the way restrictions work on Timers. I’ve found that they do not reevaluate once the timer has been set to initiate. So a better way to write this piston would be as follows:

Every day at 7AM
If any of Presence 1’s or Presence 2’s presence is present
Then
Do your stuff
End if
End Every

That way you can account for the current state of how the Presence sensors ARE at the time the Piston runs at 7AM rather than what the state of the Presence sensors WERE when the Timer started (24 hours ago).


#3

Is this the way you think better?


#4

Yep. That’s how you want to construct something like that.