Page 1 of 1
light on when its dark LUX
Posted: Friday 03 May 2019 22:36
by behave49
OKe, just got my new sensors (Aqara body en light sensor)
I want to make a blocky wich will turn my light on when it becomes dark. It looks how many LUX there are and if the are below 4 it turns on my light.
And it does, but won;t go out anymore becasue at night its below 4 to hahah
How to solf this?
Re: light on when its dark LUX
Posted: Friday 03 May 2019 22:53
by Toulon7559
Suggestion:
insert an extra clock-related time-gate which only allows switch-on in the evening.
Something like
IF ((light <4 ) AND ((Time > 17:00) AND (Time < 23:00))) THEN ......
Re: light on when its dark LUX
Posted: Saturday 04 May 2019 14:03
by behave49
Great idea, thank you..
Re: light on when its dark LUX
Posted: Saturday 04 May 2019 14:09
by behave49
Is there a way to skip this action when i'm not at home? I saw someone made something with his phone.
If phone is not home then dont put light on. But dont know how i could make that.
I see my gsm in Domoticz but thats all
Re: light on when its dark LUX
Posted: Saturday 04 May 2019 16:27
by Toulon7559
Where do you see your GSM in Domoticz?
[and how did you get that signal?]
Re: light on when its dark LUX
Posted: Wednesday 08 May 2019 17:44
by behave49
Toulon7559 wrote: ↑Saturday 04 May 2019 16:27
Where do you see your GSM in Domoticz?
[and how did you get that signal?]
Settings, more options, gsm
Re: light on when its dark LUX
Posted: Wednesday 08 May 2019 19:04
by emme
I do have a variable handled by the presence script that update the number of presence device detected (mostly mobiles phones and tag BLE), if it sets to 0 it means none is at home.
then my lux script evaluate that variable and also external Luxes and time frame (between sunset and sunrise) and switch on or off automatically
Re: light on when its dark LUX
Posted: Saturday 11 May 2019 13:05
by behave49
Emme, how did you do that?
other problem
I now have 2 scripts. 1 who detects its dark so my lights go on. Amd one wich detects its light enough to turn them off again.
both scripts working but the last one keeps sending the command light off whole day. How can i stop this.
I get why its doing that because if lux is higer then 10 it sent the command. so all of the day the luz is higher then 10 en everytime it gets higher it will sent the off command
Re: light on when its dark LUX
Posted: Sunday 12 May 2019 7:32
by mrf68
@behave49,
you could add a check to the second script: if lux is higher than 10 AND light is on THEN turn the light off.
Re: light on when its dark LUX
Posted: Sunday 12 May 2019 9:05
by doh
You could use the geolocation feature of the domoticz phone app to turn a switch on/off when you leave the house.