vincentwolsink / home_assistant_enphase_envoy_installer

This is a HACS custom integration for Enphase Envoys with firmware version 7 and up.
Apache License 2.0
54 stars 10 forks source link

Envoy integration stopped working at April 12th [BUG] #119

Closed HABO7405 closed 2 months ago

HABO7405 commented 2 months ago

Describe the bug Envoy doesn't report solar panel power production since April 12th. The sensors are unavailable: Integration seems to be not working.

Account type

Envoy <I don't know: how to determine this?>

Home Assistant

Additional context Sensors are not available:

image image

Relevant snippet of Home Assistant error log:

2024-04-12 13:51:20.585 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Envoy 122241087305 for enphase_envoy Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 551, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/enphase_envoy/init.py", line 78, in async_setup_entry enlighten_serial_num=config[CONF_SERIAL],


KeyError: 'serial'

...

2024-04-15 08:17:39.501 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Envoy 122241087305 for enphase_envoy
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 551, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/enphase_envoy/__init__.py", line 78, in async_setup_entry
enlighten_serial_num=config[CONF_SERIAL],
~~~~~~^^^^^^^^^^^^^
KeyError: 'serial'
vincentwolsink commented 2 months ago

This is very weird. Somehow the configuration of the integration got corrupted. Did anything change on either your Envoy or Home Assistant on April 12th?

To fix it you can remove the current envoy (three dots at the right next to "Instellen Mislukt") and re-add it. Your history etc should not be lost.

HABO7405 commented 2 months ago

That worked, thanks!
Nothing changed on the Envoy. I usually perform updates when HA provides an update: I don't remember if I updated exactly that day/time. Around that time I installed Nordpool day-ahead-prices according to smart-home-junkie's video.