DanBeard / enphase_envoy

Custom component for enphase_envoy Firmware D7.0.0 +
Apache License 2.0
10 stars 2 forks source link

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

Open filmgarage opened 1 year ago

filmgarage commented 1 year ago

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?

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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