help with time dependant front door monitor

Moderator: leecollings

Post Reply
Dave21w
Posts: 361
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

help with time dependant front door monitor

Post 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 719 times
DaanT
Posts: 14
Joined: Friday 23 August 2019 10:11
Target OS: Windows
Domoticz version: 2020.2
Location: Belgium
Contact:

Re: time dependant front door monitor

Post 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
Dave21w
Posts: 361
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: help with time dependant front door monitor

Post by Dave21w »

Ah I see, yes it makes sense now, so changing both the "and" statements to "or" will be OK ?

Thanks
DaanT
Posts: 14
Joined: Friday 23 August 2019 10:11
Target OS: Windows
Domoticz version: 2020.2
Location: Belgium
Contact:

Re: help with time dependant front door monitor

Post 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
Dave21w
Posts: 361
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: help with time dependant front door monitor

Post by Dave21w »

Now I get it, thank you very much.

Regards
Dave
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests