You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have set up Sun2 specifically to implement customisations in my household for the mountains to the west. I performed some quick map measurements and placed some values that I thought would reflect the mountain's positions. I noticed that the "Dusk" and "Setting" sensors correctly adjusted their times relative to HA's built-in sun values.
However, the "Phase" sensor still seems to change state later in the evening, matching the HA's built-in sun phase.
I have now modified my automations to do checks for whether "now()" is after the value of the "Setting" sensor (and triggered it every minute) but ideally I'd prefer to just use the "Phase" sensor (or a second, modified sensor) and its state-change event.
The text was updated successfully, but these errors were encountered:
Yes, in the current implementation, the observer elevation is only used in determining sunrise & sunset and the various dawn & dusk sensors, as well as the daylight & night sensors (which are effectively derived from the dawn & dusk times.)
The phase sensors are based on hard-coded values of the sun's elevation, where sunrise/sunset are defined as -0.833 degrees.
I can see an argument for making the phase sensors depend on observer elevation, but I'll have to think on that some more.
I have set up Sun2 specifically to implement customisations in my household for the mountains to the west. I performed some quick map measurements and placed some values that I thought would reflect the mountain's positions. I noticed that the "Dusk" and "Setting" sensors correctly adjusted their times relative to HA's built-in sun values.
However, the "Phase" sensor still seems to change state later in the evening, matching the HA's built-in sun phase.
I have now modified my automations to do checks for whether "now()" is after the value of the "Setting" sensor (and triggered it every minute) but ideally I'd prefer to just use the "Phase" sensor (or a second, modified sensor) and its state-change event.
The text was updated successfully, but these errors were encountered: