All,
I created a blockly to turn the small light on between 18:00 and 22:00 and when the LUX is 120, and then at sunset the big light turns on.
But they do not turn off on weekdays or weekends when there is no motion between a certain time. What am I doing wrong? I want to achieve the following;
- if time is between 18:00 and 22:00 and lux is 120 turn small light (woonkamer klein) on (this is working)
- if time is sunset turn big light (woonkamer groot) on (this is also working)
- on weekdays after 22:30 and no motion for 5 minutes turn both lights off (not working)
- in weekends after 23:30 and no motion for 5 minutes turn both lights off (not working)
I am running domoticz version 4.10717 on raspberry pi
greetings,
Nic
Blockly lux / motion not working
Moderator: leecollings
-
- Posts: 1
- Joined: Monday 03 June 2019 18:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Blockly lux / motion not working
- Attachments
-
- blockly
- Screenshot_1.png (103.29 KiB) Viewed 1083 times
-
- Posts: 46
- Joined: Sunday 10 September 2017 9:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Blockly lux / motion not working
Hi Nic,
Are you sure both lights are on when they have to switch off? Maybe it's better to use an OR statement, so they also turn off when only one of those lights is on. Also you now use 'NOT Saturday OR NOT Sunday', I think this should be 'NOT Saturday AND NOT Sunday'.
Are you sure both lights are on when they have to switch off? Maybe it's better to use an OR statement, so they also turn off when only one of those lights is on. Also you now use 'NOT Saturday OR NOT Sunday', I think this should be 'NOT Saturday AND NOT Sunday'.
-
- Posts: 77
- Joined: Sunday 06 September 2015 11:58
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Blockly lux / motion not working
You could also try splitting up the statement for turning the lights on, into two separate statements.
Who is online
Users browsing this forum: No registered users and 1 guest