Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enphase Envoy won't load #99631

Closed
bachya opened this issue Sep 4, 2023 · 3 comments
Closed

Enphase Envoy won't load #99631

bachya opened this issue Sep 4, 2023 · 3 comments

Comments

@bachya
Copy link
Contributor

bachya commented Sep 4, 2023

The problem

Starting in the 2023.9 beta, the Enphase Envoy integration won't load.

What version of Home Assistant Core has the issue?

core-2023.9.0b3

What was the last working version of Home Assistant Core?

core-2023.8.x

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Enphase Envoy

Link to integration documentation on our website

https://www.home-assistant.io/integrations/enphase_envoy/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2023-09-04 11:25:52.332 DEBUG (MainThread) [pyenphase.envoy] Authenticating to Envoy using envoy/installer authentication
2023-09-04 11:25:52.333 DEBUG (MainThread) [pyenphase.envoy] Requesting http://172.16.20.27/production with timeout Timeout(connect=10.0, read=60.0, write=10.0, pool=10.0)
2023-09-04 11:25:52.592 DEBUG (MainThread) [pyenphase.json] Unable to decode response from Envoy endpoint /production: unexpected character: line 1 column 1 (char 0)
2023-09-04 11:25:52.592 DEBUG (MainThread) [pyenphase.updaters.production] Production endpoint not found at /production: unexpected character: line 1 column 1 (char 0)
2023-09-04 11:25:52.592 DEBUG (MainThread) [pyenphase.envoy] Requesting http://172.16.20.27/production.json with timeout Timeout(connect=10.0, read=60.0, write=10.0, pool=10.0)
2023-09-04 11:25:52.840 DEBUG (MainThread) [pyenphase.envoy] Requesting http://172.16.20.27/api/v1/production/inverters with timeout Timeout(connect=10.0, read=60.0, write=10.0, pool=10.0)
2023-09-04 11:25:52.885 DEBUG (MainThread) [pyenphase.envoy] Requesting http://172.16.20.27/ivp/ensemble/inventory with timeout Timeout(connect=10.0, read=60.0, write=10.0, pool=10.0)
2023-09-04 11:25:52.905 DEBUG (MainThread) [pyenphase.updaters.ensemble] No Ensemble devices found
2023-09-04 11:25:52.905 DEBUG (MainThread) [pyenphase.envoy] Requesting http://172.16.20.27/production.json with timeout Timeout(connect=10.0, read=60.0, write=10.0, pool=10.0)                                                                                                                                                                              2023-09-04 11:25:53.328 DEBUG (MainThread) [pyenphase.envoy] Requesting http://172.16.20.27/api/v1/production/inverters with timeout Timeout(connect=10.0, read=60.0, write=10.0, pool=10.0)
2023-09-04 11:25:53.359 ERROR (MainThread) [homeassistant.components.enphase_envoy.coordinator] Unexpected error fetching Envoy 202142004921 data: string indices must be integers, not 'str'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 293, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/enphase_envoy/coordinator.py", line 147, in _async_update_data
    return (await envoy.update()).raw
            ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pyenphase/envoy.py", line 259, in update
    await updater.update(data)
  File "/usr/local/lib/python3.11/site-packages/pyenphase/updaters/api_v1_production_inverters.py", line 36, in update
    envoy_data.inverters = {
                           ^
  File "/usr/local/lib/python3.11/site-packages/pyenphase/updaters/api_v1_production_inverters.py", line 37, in <dictcomp>
    inverter["serialNumber"]: EnvoyInverter.from_v1_api(inverter)
    ~~~~~~~~^^^^^^^^^^^^^^^^                                                                                                                                                   TypeError: string indices must be integers, not 'str'
2023-09-04 11:25:53.361 DEBUG (MainThread) [homeassistant.components.enphase_envoy.coordinator] Finished fetching Envoy 202142004921 data in 1.208 seconds (success: False)

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Sep 4, 2023

Hey there @bdraco, @cgarwood, @dgomes, @joostlek, mind taking a look at this issue as it has been labeled with an integration (enphase_envoy) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of enphase_envoy can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign enphase_envoy Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


enphase_envoy documentation
enphase_envoy source
(message by IssueLinks)

@bdraco
Copy link
Member

bdraco commented Sep 4, 2023

likely already fixed via #99574

@bachya
Copy link
Contributor Author

bachya commented Sep 4, 2023

Thanks, @bdraco. FWIW, I deleted my config entry and re-added it (using envoy as the username and the last six digits of my gateway's serial number as the password)—came back up fine. Combined with #99574, makes sense to close this out.

@bachya bachya closed this as completed Sep 4, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Oct 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants