briancmpbll / home_assistant_custom_envoy

173 stars 76 forks source link

Configuration error #108

Closed powerouioui closed 1 year ago

powerouioui commented 1 year ago

Hi, I have an issue by using the integration. After inserting my username, password and checked the checkbox on the bottom, everything seams to be ok, but in reality no, I have the following error. Could you please help me? image

When I ask for the debbug logbook, it looks like the connection to the Envoy gateway is ok but the entries creation fail. As you can see, we see the report of power production of solar panels. image

Thank you

catsmanac commented 1 year ago

Since it seems getting data, can you try CTRL-F5 to refresh the browser cache?

powerouioui commented 1 year ago

I just tested and it is the same result.

catsmanac commented 1 year ago

Ok, and no other errors in the logfile I assume.

What you could try to see what's going on:

edit configuration.yaml in the config folder and add

logger:
#  default: info
  default: warning
  logs:
    custom_components.enphase_envoy: debug

That will switch on debug for envoy from the start. Then delete the envoy integration, restart HA and add envoy again. It may catch more detail in this way.

powerouioui commented 1 year ago

Here are the information I got after modification of the configuration.yaml (I have inserted ## on my envoy gateway):

Cette erreur provient d'une intégration personnalisée

Logger: homeassistant.config_entries Source: custom_components/enphase_envoy/init.py:131 Integration: Enphase Envoy (DEV) First occurred: 15:26:08 (1 occurrences) Last logged: 15:26:08

Error setting up entry Envoy 12#######48 for enphase_envoy Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 390, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/enphase_envoy/init.py", line 131, in async_setup_entry hass.config_entries.async_setup_platforms(entry, PLATFORMS) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'

posixx commented 1 year ago

You Are not using the latest version of the plugin. line 131 is blank.

powerouioui commented 1 year ago

I have founded the issue : https://github.com/jrutski/home_assistant_envoy_d7_fw/pull/7/files Now I have my sensors etc.

Inchange in the init.py line 131: remove: hass.config_entries.async_setup_platforms(entry, PLATFORMS) add await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

Thank you!

catsmanac commented 1 year ago

THis integration has that change as of February to be compatible with HA release at that time. As @posixx mentions, you are on an older version. Current version has it in line 137

afbeelding