SUN vs. TIME condition

I have a very very simple automation: movement → turn lights on, but under condition after sunset, before sunrise. Funny thing, it doesn’t work. When condition is time (21:00:00 - 05:30:00) works like a charm.
Any ideas?

Without you posting your automation nobody knows…

But I guess it is the most common mistake, you can not use after sunset and before sunrise with “and” conditions as explained in the docs

After sunset will never be before sunrise today. Look into using sun state, below horizon.

2 Likes

Of course. This makes sense. Thanks

You probably didn’t search first. I had the same issue too and it was solved.

Take a look here: Sun condition not working