Switch an RGB bulb when motion between sunset and sunrise

Moderator: leecollings

Post Reply
ebretteville
Posts: 39
Joined: Sunday 10 January 2016 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3530
Location: Cherbourg - Caen | France
Contact:

Switch an RGB bulb when motion between sunset and sunrise

Post 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?

Image

Thanks
User avatar
jvdz
Posts: 2208
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Switch an RGB bulb when motion between sunset and sunrise

Post 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.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
ebretteville
Posts: 39
Joined: Sunday 10 January 2016 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3530
Location: Cherbourg - Caen | France
Contact:

Re: Switch an RGB bulb when motion between sunset and sunrise

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest