Sunset/sunrise

Hi all
Could anybody please advise if there is a “simple” way to do the following.

I have a motion sensor that turns on a 12v light. It works fine but the light comes on when movement is sensed by the pir even in daylight. Not very “smart”. Does anybody know how I can make this work between sunset/rise. Any help would be greatly appreciated, thanks in advance…
Alex

The DateTime addon provides all sorts of time-based criteria when creating rules. It may be a chore to get the and/or working in 1 rule. Think there is a built-in “dark” rule which may help in your case.

image

Hi Eric
Thanks very much for getting back to me. Not knowing too much about the add-ons this is a great help. At least I have a lead now, so thanks very much, I’ll have a play with it over the next few days. Much appreciated. Alex