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

[BUG] After entering credentials I get an "Unexpected Error" #140

Closed
2 of 6 tasks
jeangroen opened this issue Aug 13, 2024 · 1 comment · Fixed by #142
Closed
2 of 6 tasks

[BUG] After entering credentials I get an "Unexpected Error" #140

jeangroen opened this issue Aug 13, 2024 · 1 comment · Fixed by #142

Comments

@jeangroen
Copy link

Describe the bug
After entering credentials I get an "Unexpected Error"

Account type

  • Installer
  • DIY / DHZ
  • Home Owner (This integration is not (fully) functional with a home owner account!)

Envoy

  • Metered with CTs installed

  • Metered without CTs

  • Standard

  • FW version: D8.2.4225 (5eea92)

  • Amount of micro inverters connected: 23

Home Assistant

  • Version: 2024.8.1

Additional context
Was working on last HA build from July 2024.

  • Upgraded Envoy HACS integration & Upgraded HA to latest. Than issue started with connection from enphase_envoy_installer to envoy
  • Removed integration and added from scratch.
  • Envoy IP is automatically detected. After entering credentials I get an "Unexpected Error"
  • I can login to the envoy using the same credentials.

Relevant snippet of Home Assistant error log.
This error originated from a custom integration.

Logger: custom_components.enphase_envoy.config_flow
Source: custom_components/enphase_envoy/config_flow.py:181
integration: Enphase Envoy (Installer) (documentation, issues)
First occurred: 10:03:28 AM (2 occurrences)
Last logged: 10:10:35 AM

Unexpected exception
Traceback (most recent call last):
File "/config/custom_components/enphase_envoy/config_flow.py", line 181, in async_step_user
envoy_reader = await validate_input(self.hass, user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/enphase_envoy/config_flow.py", line 53, in validate_input
await envoy_reader.get_data()
File "/config/custom_components/enphase_envoy/envoy_reader.py", line 1176, in get_data
await self.init_authentication()
File "/config/custom_components/enphase_envoy/envoy_reader.py", line 1038, in init_authentication
await self._get_enphase_token()
File "/config/custom_components/enphase_envoy/envoy_reader.py", line 971, in _get_enphase_token
self._token = await self._fetch_owner_token_json()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/enphase_envoy/envoy_reader.py", line 937, in _fetch_owner_token_json
raise EnlightenError("Could not Authenticate via Enlighten")
custom_components.enphase_envoy.envoy_reader.EnlightenError: Could not Authenticate via Enlighten

@jeangroen
Copy link
Author

Update:
After unchecking the box that this is just a home-owner account the login works and the integration seems to be working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant