Page 1 of 1

help with time dependant front door monitor

Posted: Friday 23 August 2019 10:04
by Dave21w
Can someone tell me why this doesn't work / what I have done wrong, the notification part I know is fine because if I remove the time contraints it triggers evertime without fail.

Thanks
Dave
front door monitor.jpg
front door monitor.jpg (26.3 KiB) Viewed 722 times

Re: time dependant front door monitor

Posted: Friday 23 August 2019 10:14
by DaanT
Hi Dave,

I had the same problem when using sunrise and sunset.

Think of the following: when it is 22.00, the third time check will say it is later than 21.00, but the 4the time check will say it is not before 06.00. The last part will never work, it needs to be an or statement.

Kind regards,
Daan

Re: help with time dependant front door monitor

Posted: Friday 23 August 2019 10:27
by Dave21w
Ah I see, yes it makes sense now, so changing both the "and" statements to "or" will be OK ?

Thanks

Re: help with time dependant front door monitor

Posted: Friday 23 August 2019 10:29
by DaanT
Hi Dave,

No only the last statement needs to be an OR.
The time needs to be before 6 OR after 21.
but also between 7 AND 17.

Daan

Re: help with time dependant front door monitor

Posted: Friday 23 August 2019 10:35
by Dave21w
Now I get it, thank you very much.

Regards
Dave