Page 1 of 1
Switch an RGB bulb when motion between sunset and sunrise
Posted: Sunday 18 September 2022 22:07
by ebretteville
Hye,
I wanto Switch an RGB bulb when motion between sunset and sunrise.
I did "programmed" this blockly, but it doesn't work, any idea why?
Thanks
Re: Switch an RGB bulb when motion between sunset and sunrise
Posted: Sunday 18 September 2022 22:11
by jvdz
ebretteville wrote: ↑Sunday 18 September 2022 22:07
I did "programmed" this blockly, but it doesn't work, any idea why?
Yes, just think about your logic coded: Time will NEVER be >(Greater than) sunset
AND ant the same time < ( smaller than) sunrice!
That needs to be an OR relation.
Re: Switch an RGB bulb when motion between sunset and sunrise
Posted: Wednesday 21 September 2022 21:54
by ebretteville
Thank you, but in my head to make between it should have been an and. Thanks for your answer. It solved my pbm. Also, I used motion according to the domoticz wiki but it was ON instead.