magico13 / ha-emporia-vue

Home Assistant Integration for Emporia Vue Energy Monitor
MIT License
496 stars 67 forks source link

The integration stopped working since the outage... #235

Open sh0ckwavevr6 opened 1 year ago

sh0ckwavevr6 commented 1 year ago

So the Emporia addon for HA stopped working last weekend. when I enter my User and password to connect on the API I got an error message and the following error is logged in the debug trace.

023-11-22 08:29:54.794 ERROR (MainThread) [custom_components.emporia_vue.config_flow] Unexpected exception
Traceback (most recent call last):
  File "/config/custom_components/emporia_vue/config_flow.py", line 80, in async_step_user
    self._abort_if_unique_id_configured()
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1597, in _abort_if_unique_id_configured
    raise data_entry_flow.AbortFlow(error)
homeassistant.data_entry_flow.AbortFlow: Flow aborted: already_configured
2023-11-22 08:30:13.897 ERROR (MainThread) [custom_components.emporia_vue.config_flow] Unexpected exception
Traceback (most recent call last):
  File "/config/custom_components/emporia_vue/config_flow.py", line 80, in async_step_user
    self._abort_if_unique_id_configured()
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1597, in _abort_if_unique_id_configured
    raise data_entry_flow.AbortFlow(error)
magico13 commented 1 year ago

Already configured implies it's already set up. Have you restarted Home Assistant? If not, try that and it might appear without any other input. Otherwise I'm not sure off hand how to remove the already configured one, if it comes to that then we can figure that out.

sh0ckwavevr6 commented 1 year ago

Yes I tried to restart HA, without success :/ but that's odd, there's no hub configured according to the status.

image

If I uninstall completely the add-on will I lose the data recorded?

magico13 commented 1 year ago

Normally the data would be fine on an uninstall and reinstall because the entities will use the same unique IDs. I can't guarantee that though, maybe make a backup of Home Assistant first if you're concerned about losing that data.