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

Setup not clear to me... Sorry! ;-) #4

Open
filmgarage opened this issue Feb 8, 2023 · 6 comments
Open

Setup not clear to me... Sorry! ;-) #4

filmgarage opened this issue Feb 8, 2023 · 6 comments

Comments

@filmgarage
Copy link

This looks promising. I endlessly tried to add the Envoy-S-metered-EU to Home Assistant but never succeeded.

Is this integration still working for the > v7 firmware models?

How should I go about setting it up?
I have installed the custom component and indeed I see the new "inclusion dialog" with the Enlighten checkbox.

But....

  1. Which token do I fill in here? And where? In the user field or password? Leave other fields blank?
  2. Where do I get the token. The token provided in the web UI?
  • Envoy account: (menu > account > My Access Control) ???
  • Developer site for Enphase? Version 3 or 4 of the API???
  1. Is this integration fetching the data locally from the Envoy gateway or through the developer API on the web?

I hope someone can help here.
BTW this is a European version of the gateway!

Scherm­afbeelding 2023-02-08 om 22 10 25

@catsmanac
Copy link

If you are have firmware D7.0.0 or higher in the envoy then check the 'use enlighten' box and specify your enphase website username and password in username and password fields. The úse enlighten'checked will have it go out to the enphase website and grab the token and uses it to access the envoy locally. I'm running European envoy-s (not metered) using Brian Campbells further development of @DanBeard work. That's how I configured mine.

@filmgarage
Copy link
Author

filmgarage commented Apr 12, 2023

It seems it is almost working, but now I have an error after setup telling me the following:

This error originated from a custom integration.

Logger: custom_components.enphase_envoy
Source: custom_components/enphase_envoy/envoy_reader.py:558 
Integration: Enphase Envoy 
First occurred: 14:58:26 (3 occurrences) 
Last logged: 14:59:01

Unexpected error fetching envoy Envoy 1222XXXXXXXX data: 'lines'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 250, in _async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 206, in _async_update_data
    return await self.update_method()
  File "/config/custom_components/enphase_envoy/__init__.py", line 82, in async_update_data
    data[description.key] = await getattr(
  File "/config/custom_components/enphase_envoy/envoy_reader.py", line 558, in production_l1
    production_l1 = raw_json["production"][idx]["lines"][0]["wNow"]
KeyError: 'lines'

(serial number hidden for obvious reason)

@filmgarage
Copy link
Author

Sorry, my bad! I was still trying to get it working with this repo. I installed the version by Brian Campbell and now it is working flawless. I hope this version will replace the standard HA integration someday...
Thanks for your help!!!

@catsmanac
Copy link

Good to hear it worked. As for getting it to standard, there's more questions like that and discussions like enphase envoy current state of things on it.

@filmgarage
Copy link
Author

Excellent, the only issue I have now is that it can't read the total production...
Seems to be a known issue.
Issue #51 in Brian Campbell's repo.

@catsmanac
Copy link

Right, I don't have a metered Envoy so can't reproduce that issue. You may want to try the change proposed over there.

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

No branches or pull requests

2 participants