Open sallygal1 opened 2 months ago
Hey there @swamp-ig, mind taking a look at this issue as it has been labeled with an integration (sun
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
sun documentation sun source (message by IssueLinks)
I am seeing the same issue, with about a 2-minute difference between the sunset/sunrise trigger and the state updating.
The problem
I'm using the
sun.sun
sunset trigger in my automation (among others). Additionally I have an automation condition to confirm that the state ofsun.sun
isbelow_horizon
. This has been working fine so far. I suspect there is a new bug, introduced in https://github.com/home-assistant/core/pull/113544 @bdracoNow, once the
sun.sun
sunset trigger fires, the sun's state sometimes isbelow_horizon
but sometimes alsoabove_horizon
(altough the trigger just fired).To reproduce create an automation with a sunset trigger and a condition with sun state
below_horizon
. You will notice, sometimes the automation condition is false.And interestingly, some other automation in my system is working fine:
What version of Home Assistant Core has the issue?
core-2024.4.2
What was the last working version of Home Assistant Core?
core-2024.3.3
What type of installation are you running?
Home Assistant OS
Integration causing the issue
sun
Link to integration documentation on our website
https://www.home-assistant.io/integrations/sun/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response