Restrictions not stopping timer


#1

1) Give a description of the problem
I am trying to execute timer but only when restrictions are met. I have set up restrictions in the ‘only when’ section and the timer to run every 15 seconds in the ‘execute’ section.

However when viewing minimal logs, it is setting up a scheduled job every 15 seconds even when the restrictions are not met.

2) What is the expected behaviour?

Logs to show a scheduled job every 15 seconds only when restrictions are met.

3) What is happening/not happening?

Logs show a scheduled job every 15 seconds even when restrictions are not met.


#2

Your piston above will fire every 15 seconds regardless of outside circumstances. During my testing, it does not check the status of the Presence Sensors or the Switch, even though logic tells us it should.

The way I would do it is something like this:

temp

Depending on your conditions, line 20 & 22 will either allow or block the refresh from executing…
but it is important to note that this piston will still execute 5,760 times a day…
(because of that, I’m not sure that I would want this running in my household)