Wth is sun condition not working properly?

Sun condition should be easy to set up for automation, but I always end up using state condition.

Post what failed to work for you.

If this is what I suspect, then it is a known issue:

There is an PR open to fix that occurrence of the sun, it might make 2022.10

2 Likes

I’ve read up on a couple of the bugs in the issues github, but most everyone is talking about conflicts between two different statements (before sunset and before sunrise for example). But I’m having problems with just trying to set up a Sun condition of “after sunset” in the web UI when editing an automation. Even running the test from the hamburger menu says the condition does not pass. I just updated to the latest versions (Home Assistant 2022.11.4) and the tests are still broken. Are we talking about the same bug?

Nope.