Page 1 of 1

turning on hallway lights depending on time of day

Posted: Friday 20 December 2019 13:00
by elmardam
Hey there!

Im trying to automate my hallway lights (with motion sensor).. but depending on the time of day it has to act different.
As from attached blockly.. it random turns on and of.. i dont have any clues left.. Hopefully someone can help me out or put me in the right directions?

appreciate!

Thanks!
hall.JPG
hall.JPG (208.28 KiB) Viewed 714 times

Re: turning on hallway lights depending on time of day

Posted: Friday 20 December 2019 16:30
by wouterlet
In your blocky you are triggering multiple things at the same time:

If "after sunrise" and "PIR_HAL is on" do:
- Hal off
- Hal 100% for 2 minutes
And you ask for "before sunset" the same 2 actions, but "after sunrise" and "before sunset" can be the same time.

So Domoticz doesn't know what to do. You should choose 1 of these conditions like:

If "after sunrise" and "before sunset" and "PIR_HAL is on" do:
Hal 100% for 2 minutes

Else if "After sunset" and "before sunrise" and "PIR HAL is on" do:
Hal 45% for 2 minutes

Or tell a little bit more about what you idea is. Hope it helps since I'm only a starter with a lot of questions also

Re: turning on hallway lights depending on time of day

Posted: Monday 23 December 2019 12:56
by elmardam
Nice! thanks for reply, will try your suggestions! let you know if it works..

Re: turning on hallway lights depending on time of day

Posted: Monday 23 December 2019 13:07
by elmardam
whoop whoop! thanks! working like a charm! first it didnt go back to the previous state.. (set from timer) bu now it does! Thanks Wouter!

Re: turning on hallway lights depending on time of day

Posted: Sunday 29 December 2019 22:21
by wouterlet
You're welcome!