pnbruckner / ha-sun2

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

Elevation stopped working #114

Closed oneseventhree closed 8 months ago

oneseventhree commented 8 months ago

Hi,

I swapped from YAML to UI config after HA's latest update said I had to and now my elevation is no longer updating.

If I restart HA the elevation updates but then stays stuck on that until I restart again.

How can I fix this?

Thanks!

pnbruckner commented 8 months ago

Some details would be helpful.

This custom integration does not require UI configuration. It still supports YAML based configuration, so there should have been no reason to switch to UI based configuration.

Having said that, either way the elevation sensor should not just stop working. Once I get more details from you, I can try to diagnose the problem. At some point I may need your location details so I can reproduce the problem. If so, you can send me those privately.

pnbruckner commented 8 months ago

My guess is that you still have sun2 configured under sensor and/or binary_sensor, which was deprecated about four months ago in the 3.0.0 release. However, YAML configuration is still supported under sun2 itself. Details were provided in the 3.0.0 documentation: https://github.com/pnbruckner/ha-sun2/tree/3.0.0#converting-from-platform-configuration.

oneseventhree commented 8 months ago

Thanks for that! After a restart of HA and deleting the old entities it started working again :)