turning on hallway lights depending on time of day

Moderator: leecollings

Post Reply
elmardam
Posts: 13
Joined: Wednesday 30 August 2017 14:31
Target OS: -
Domoticz version:
Contact:

turning on hallway lights depending on time of day

Post 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 713 times
wouterlet
Posts: 109
Joined: Tuesday 02 October 2018 20:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: turning on hallway lights depending on time of day

Post 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
elmardam
Posts: 13
Joined: Wednesday 30 August 2017 14:31
Target OS: -
Domoticz version:
Contact:

Re: turning on hallway lights depending on time of day

Post by elmardam »

Nice! thanks for reply, will try your suggestions! let you know if it works..
elmardam
Posts: 13
Joined: Wednesday 30 August 2017 14:31
Target OS: -
Domoticz version:
Contact:

Re: turning on hallway lights depending on time of day

Post 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!
wouterlet
Posts: 109
Joined: Tuesday 02 October 2018 20:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: turning on hallway lights depending on time of day

Post by wouterlet »

You're welcome!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest