pnbruckner / ha-sun2

Home Assistant Sun2 Sensor
The Unlicense
235 stars 22 forks source link

daylight calculates wrong value #94

Closed pnbruckner closed 1 year ago

pnbruckner commented 1 year ago

Per: https://community.home-assistant.io/t/enhanced-sun-component/63553/571

The calculated daylight value is wrong because the Sun2PeriodOfTime class is using the wrong default solar depression. It's using -SUNSET_ELEV when it should be using astral.sun.SUN_APPARENT_RADIUS.