home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.16k stars 29.84k forks source link

Enphase Envoy : Not reporting information #36034

Closed csjo closed 4 years ago

csjo commented 4 years ago

The problem

Envoy reader not returning any data. Error logs shown below.

Environment

arch armv7l
chassis embedded
dev false
docker true
hassio true
host_os HassOS 3.13
installation_type Home Assistant
os_name Linux
os_version 4.19.114-v7
python_version 3.7.7
supervisor 222
timezone America/Chicago
version 0.110.1
virtualenv false

Problem-relevant configuration.yaml

sensor:

Traceback/Error logs

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update await self.async_update() File "/usr/src/homeassistant/homeassistant/components/enphase_envoy/sensor.py", line 147, in async_update _state = await getattr(self._envoy_reader, self._type)() File "/usr/local/lib/python3.7/site-packages/envoy_reader/envoy_reader.py", line 118, in production await self.detect_model() File "/usr/local/lib/python3.7/site-packages/envoy_reader/envoy_reader.py", line 49, in detect_model self.endpoint_url, timeout=30, allow_redirects=False) File "/usr/local/lib/python3.7/site-packages/requests_async/api.py", line 11, in get return await request("get", url, params=params, kwargs) File "/usr/local/lib/python3.7/site-packages/requests_async/api.py", line 6, in request return await session.request(method=method, url=url, kwargs) File "/usr/local/lib/python3.7/site-packages/requests_async/sessions.py", line 79, in request resp = await self.send(prep, send_kwargs) File "/usr/local/lib/python3.7/site-packages/requests_async/sessions.py", line 136, in send r = await adapter.send(request, kwargs) File "/usr/local/lib/python3.7/site-packages/requests_async/adapters.py", line 58, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: [Errno 113] Connect call failed ('192...*', 80) 2020-05-21 21:36:08 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.solarenvoy_today_s_energy_production fails Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/requests_async/adapters.py", line 55, in send timeout=timeout, File "/usr/local/lib/python3.7/site-packages/http3/interfaces.py", line 49, in request return await self.send(request, verify=verify, cert=cert, timeout=timeout) File "/usr/local/lib/python3.7/site-packages/http3/dispatch/connection_pool.py", line 130, in send raise exc File "/usr/local/lib/python3.7/site-packages/http3/dispatch/connection_pool.py", line 121, in send request, verify=verify, cert=cert, timeout=timeout File "/usr/local/lib/python3.7/site-packages/http3/dispatch/connection.py", line 53, in send await self.connect(verify=verify, cert=cert, timeout=timeout) File "/usr/local/lib/python3.7/site-packages/http3/dispatch/connection.py", line 82, in connect host, port, ssl_context, timeout File "/usr/local/lib/python3.7/site-packages/http3/concurrency.py", line 206, in connect timeout.connect_timeout, File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for return fut.result() File "/usr/local/lib/python3.7/asyncio/streams.py", line 77, in open_connection lambda: protocol, host, port, *kwds) File "/usr/local/lib/python3.7/asyncio/base_events.py", line 962, in create_connection raise exceptions[0] File "/usr/local/lib/python3.7/asyncio/base_events.py", line 949, in create_connection await self.sock_connect(sock, address) File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 473, in sock_connect return await fut File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 503, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') OSError: [Errno 113] Connect call failed ('192...', 80)

Additional information

probot-home-assistant[bot] commented 4 years ago

enphase_envoy documentation enphase_envoy source (message by IssueLinks)

bsitoriusmaas commented 4 years ago

Problem

This is my first time attempting to setup my envoy but I think my issue is similar. The envoy sensors set up but each is in state Unknown.

Environment

arch armv7l
chassis embedded
dev false
docker true
hassio true
host_os HassOS 3.13
installation_type Home Assistant
os_name Linux
os_version 4.19.114-v7
python_version 3.7.7
supervisor 224
timezone America/Chicago
version 0.110.0
virtualenv false

Home Assistant Core release with the issue: Home Assistant 0.110.0 Last working Home Assistant Core release (if known): Operating environment (Home Assistant/Supervised/Docker/venv): See above Integration causing this issue: Enphase

Configuration.yaml

sensor:
# Envoy, limiting the metrics to production only
  - platform: enphase_envoy
    username: !secret envoy_username
    password: !secret envoy_password
    monitored_conditions:
      - production
      - daily_production
      - seven_days_production
      - lifetime_production
#      - consumption
#      - daily_consumption  
      - inverters 

Log Details (ERROR)

Logger: homeassistant.helpers.entity Source: components/enphase_envoy/sensor.py:147 First occurred: May 25, 2020, 10:08:49 PM (9928 occurrences) Last logged: 7:30:28 PM

Update for sensor.envoy_last_seven_days_energy_production fails Update for sensor.envoy_today_s_energy_production fails Update for sensor.envoy_current_energy_production fails Update for sensor.envoy_lifetime_energy_production fails

Traceback (most recent call last):

  File "/usr/local/lib/python3.7/site-packages/requests_async/adapters.py", line 55, in send
    timeout=timeout,
  File "/usr/local/lib/python3.7/site-packages/http3/interfaces.py", line 49, in request
    return await self.send(request, verify=verify, cert=cert, timeout=timeout)
  File "/usr/local/lib/python3.7/site-packages/http3/dispatch/connection_pool.py", line 130, in send
    raise exc
  File "/usr/local/lib/python3.7/site-packages/http3/dispatch/connection_pool.py", line 121, in send
    request, verify=verify, cert=cert, timeout=timeout
  File "/usr/local/lib/python3.7/site-packages/http3/dispatch/connection.py", line 53, in send
    await self.connect(verify=verify, cert=cert, timeout=timeout)
  File "/usr/local/lib/python3.7/site-packages/http3/dispatch/connection.py", line 82, in connect
    host, port, ssl_context, timeout
  File "/usr/local/lib/python3.7/site-packages/http3/concurrency.py", line 206, in connect
    timeout.connect_timeout,
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/asyncio/streams.py", line 77, in open_connection
    lambda: protocol, host, port, **kwds)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 913, in create_connection
    type=socket.SOCK_STREAM, proto=proto, flags=flags, loop=self)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1290, in _ensure_resolved
    proto=proto, flags=flags)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 792, in getaddrinfo
    None, getaddr_func, host, port, family, type, proto, flags)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/socket.py", line 752, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
    await self.async_update()
  File "/usr/src/homeassistant/homeassistant/components/enphase_envoy/sensor.py", line 147, in async_update
    _state = await getattr(self._envoy_reader, self._type)()
  File "/usr/local/lib/python3.7/site-packages/envoy_reader/envoy_reader.py", line 235, in seven_days_production
    await self.detect_model()
  File "/usr/local/lib/python3.7/site-packages/envoy_reader/envoy_reader.py", line 49, in detect_model
    self.endpoint_url, timeout=30, allow_redirects=False)
  File "/usr/local/lib/python3.7/site-packages/requests_async/api.py", line 11, in get
    return await request("get", url, params=params, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests_async/api.py", line 6, in request
    return await session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests_async/sessions.py", line 79, in request
    resp = await self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests_async/sessions.py", line 136, in send
    r = await adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests_async/adapters.py", line 58, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: [Errno -3] Try again
stale[bot] commented 4 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.