Closed abpross closed 1 year ago
That section of code is for metered 3 phase installations. Do you have such an envoy with CT meters connected?
Yes very strange as the 3-phase sensors are autodetected; if the lines block isn't there it would skip these readings. Are you sure you have a clean installation of this integration? Remove it from HA as well as HACS, make sure the enphase_envoy folder is deleted under the custom_components folder, and add the integration again.
Is this one ok now and can it be closed?
No reply, closing
please reopen,
i was on a vacation and so i had no time.
Yesterday i did a upgrade ha to 2023.9.2 There was some changes but still no connection
debug log:
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: September 20, 2023 at 20:43:45 (951 occurrences) Last logged: 15:26:09
Unexpected error fetching envoy Envoy xxxxxxxxxxxx data: 'lines' 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/helpers/update_coordinator.py", line 248, 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'
@abpross, ah I see, no problem, I've re-opened the issue.
logger:
default: warning
logs:
custom_components.enphase_envoy: debug
Then restart Home Assistant.
yes it is a 3 phase i let you know the result
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: 16:02:49 (6 occurrences) Last logged: 16:06:05
Unexpected error fetching envoy Envoy xxxxxxxxxxxx data: 'lines' 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/helpers/update_coordinator.py", line 248, 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'
i did remove enphase envoy complete en restart ha and install again via Hacs envoy I can't find the version-number my credentials are enlighten credentials and did select use-enlighten and 3 fases
i see this: KeyError: 'lines' 2023-09-21 16:16:31.824 DEBUG (MainThread) [custom_components.enphase_envoy] Finished fetching envoy Envoy 122307065063 data in 9.753 seconds (success: False) 2023-09-21 16:17:30.187 WARNING (MainThread) [homeassistant.components.rest.util] REST result could not be parsed as JSON 2023-09-21 16:17:52.095 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Checking Token value: 2023-09-21 16:17:52.096 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Found empty token: 2023-09-21 16:17:55.678 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Commissioned Token valid for 364.999992143647 days
my credentials are enlighten credentials and did select use-enlighten
That is correct
and did select use-enlighten and 3 fases
If there is a choice for 3 phase then you are using a different custom integration.
Can you check in hacs what source you are using? IN HACS go to the integrations page and click the 3 vertical dot menu at the right hand top
From the menu select custom repositories
and make sure briancmpbll/home_assistant_custom_envoy is listed there.
The configuration screen for this (@briancmpbll ) integration looks like:
no option for 3 phase.
thanks a lot for the help it works i see the 12 Inverters
it did not used the dev version from custom repositories
you can close this issue
I did get the latest version from custom_envoy and did fill-up the static ip-addres (wired connection) and username, password and serial number. But the integration says "Retrying setup: 'lines'"
the log shows:
2023-07-17 13:41:02.180 ERROR (MainThread) [custom_components.enphase_envoy] Unexpected error fetching envoy Envoy 122307065063 data: 'lines' File "/config/custom_components/enphase_envoy/init.py", line 82, in async_update_data File "/config/custom_components/enphase_envoy/envoy_reader.py", line 558, in production_l1 [core-ssh config]$