How can I turn on exterior lights when night and off when light?

(John Esher) #1

How do I turn on my exterior lights at sunset and off again at sunrise but without any other inputs such as motion, luminescence or open/closed?

I just want my porch lights to come on at dusk and stay on night and off again at sunrise.

(Convinced ST will never be unbroken…) #2

See the Sunrise/Sunset example app in the IDE.

(John Esher) #3

Damn, I was just going to delete my post as I found that app, but you’re too quick!

Thanks though.

(Convinced ST will never be unbroken…) #4

No problem…

BTW, a search on ‘sunrise’ or ‘sunset’ would have turned up numerous topics here already discussing this.