ha-sun2: Sun_Phase Sensor not updating correctly
For a couple of days my sun phase sensor has been failing to update correctly in the morning.
It is just missing out some of the phases, I still get updates at noon and in the evening, but its staying at night until solar noon. Error log:
This error originated from a custom integration.
Logger: custom_components.sun2.sensor
Source: custom_components/sun2/sensor.py:125
Integration: sun2
First occurred: November 4, 2022 at 23:52:43 (6 occurrences)
Last logged: November 4, 2022 at 23:52:43
London Sun Phase: Failed to find the time at elev: -12.000
London Sun Phase: Failed to find the time at elev: -6.000
London Sun Phase: Failed to find the time at elev: -4.000
London Sun Phase: Failed to find the time at elev: -0.833
London Sun Phase: Failed to find the time at elev: 6.000
my .yaml configuration:
- platform: sun2
entity_namespace: London
latitude: #########
longitude: ########
time_zone: Europe/London
elevation: 11
monitored_conditions:
- sunrise
- sunset
- sun_phase
- dawn
- dusk
- solar_noon
- solar_midnight
- daylight
- night
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19 (10 by maintainers)
Ok, looks like you fixed it:
Heres my logs:
Many thanks for sorting this out, it is a key part of all my lighting controls so is very important to me.
I found the problem. I’m working on a fix. I hope to release a beta version with the fix soon.