PV Data not updated other Zählpunkte are ok, see log:
Logger: homeassistant.components.sensor
Quelle: helpers/entity_platform.py:788
Integration: Sensor (Dokumentation, Probleme)
Erstmals aufgetreten: 10:42:19 (1 Vorkommnis)
Zuletzt protokolliert: 10:42:19
wnsm: Error on device update!
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
(self._dns_host, self.port), self.timeout, **extra_kw
)
File "/usr/local/lib/python3.13/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/socket.py", line 977, 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/local/lib/python3.13/site-packages/urllib3/connectionpool.py", line 716, in urlopen
httplib_response = self._make_request(
conn,
...<5 lines>...
chunked=chunked,
)
File "/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py", line 404, in _make_request
self._validate_conn(conn)
~~~~~~~~~~~~~~~~~~~^^^^^^
File "/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py", line 1061, in _validate_conn
conn.connect()
~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/urllib3/connection.py", line 363, in connect
self.sock = conn = self._new_conn()
~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
self, "Failed to establish a new connection: %s" % e
)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fc61c0ca350>: Failed to establish a new connection: [Errno -3] Try again
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
method=request.method,
...<9 lines>...
chunked=chunked,
)
File "/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py", line 802, in urlopen
retries = retries.increment(
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
)
File "/usr/local/lib/python3.13/site-packages/urllib3/util/retry.py", line 594, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='service.wienernetze.at', port=443): Max retries exceeded with url: /sm/api/user/messwerte/bewegungsdaten?geschaeftspartner=1200983528&zaehlpunktnummer=AT0010000000000000001000014587702&rolle=V002&zeitpunktVon=2025-05-20T22%3A00%3A00.000Z&zeitpunktBis=2025-05-30T23%3A59%3A59.999Z&aggregat=NONE (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fc61c0ca350>: Failed to establish a new connection: [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_platform.py", line 788, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1304, in async_device_update
await self.async_update()
File "/config/custom_components/wnsm/wnsm_sensor.py", line 99, in async_update
await importer.async_import()
File "/config/custom_components/wnsm/importer.py", line 103, in async_import
_sum = await self._incremental_import_statistics(start, _sum)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wnsm/importer.py", line 141, in _incremental_import_statistics
return await self._import_statistics(start=start, total_usage=total_usage)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wnsm/importer.py", line 157, in _import_statistics
bewegungsdaten = await self.async_smartmeter.get_bewegungsdaten(self.zaehlpunkt, start, end, self.granularity)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wnsm/AsyncSmartmeter.py", line 143, in get_bewegungsdaten
response = await self.hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<5 lines>...
)
^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/wnsm/api/client.py", line 630, in bewegungsdaten
data = self._call_api(
f"user/messwerte/bewegungsdaten",
...<2 lines>...
extra_headers=extra,
)
File "/config/custom_components/wnsm/api/client.py", line 310, in _call_api
response = self.session.request(
method, url, headers=headers, json=data, timeout=timeout
)
File "/usr/local/lib/python3.13/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.13/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.13/site-packages/requests/adapters.py", line 700, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='service.wienernetze.at', port=443): Max retries exceeded with url: /sm/api/user/messwerte/bewegungsdaten?geschaeftspartner=1200983528&zaehlpunktnummer=AT0010000000000000001000014587702&rolle=V002&zeitpunktVon=2025-05-20T22%3A00%3A00.000Z&zeitpunktBis=2025-05-30T23%3A59%3A59.999Z&aggregat=NONE (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fc61c0ca350>: Failed to establish a new connection: [Errno -3] Try again'))
PV Data not updated other Zählpunkte are ok, see log:
Logger: homeassistant.components.sensor
Quelle: helpers/entity_platform.py:788
Integration: Sensor (Dokumentation, Probleme)
Erstmals aufgetreten: 10:42:19 (1 Vorkommnis)
Zuletzt protokolliert: 10:42:19
wnsm: Error on device update!
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
(self._dns_host, self.port), self.timeout, **extra_kw
)
File "/usr/local/lib/python3.13/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/socket.py", line 977, 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/local/lib/python3.13/site-packages/urllib3/connectionpool.py", line 716, in urlopen
httplib_response = self._make_request(
conn,
...<5 lines>...
chunked=chunked,
)
File "/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py", line 404, in _make_request
self._validate_conn(conn)
~~~~~~~~~~~~~~~~~~~^^^^^^
File "/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py", line 1061, in _validate_conn
conn.connect()
~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/urllib3/connection.py", line 363, in connect
self.sock = conn = self._new_conn()
~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
self, "Failed to establish a new connection: %s" % e
)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fc61c0ca350>: Failed to establish a new connection: [Errno -3] Try again
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
method=request.method,
...<9 lines>...
chunked=chunked,
)
File "/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py", line 802, in urlopen
retries = retries.increment(
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
)
File "/usr/local/lib/python3.13/site-packages/urllib3/util/retry.py", line 594, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='service.wienernetze.at', port=443): Max retries exceeded with url: /sm/api/user/messwerte/bewegungsdaten?geschaeftspartner=1200983528&zaehlpunktnummer=AT0010000000000000001000014587702&rolle=V002&zeitpunktVon=2025-05-20T22%3A00%3A00.000Z&zeitpunktBis=2025-05-30T23%3A59%3A59.999Z&aggregat=NONE (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fc61c0ca350>: Failed to establish a new connection: [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_platform.py", line 788, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1304, in async_device_update
await self.async_update()
File "/config/custom_components/wnsm/wnsm_sensor.py", line 99, in async_update
await importer.async_import()
File "/config/custom_components/wnsm/importer.py", line 103, in async_import
_sum = await self._incremental_import_statistics(start, _sum)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wnsm/importer.py", line 141, in _incremental_import_statistics
return await self._import_statistics(start=start, total_usage=total_usage)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wnsm/importer.py", line 157, in _import_statistics
bewegungsdaten = await self.async_smartmeter.get_bewegungsdaten(self.zaehlpunkt, start, end, self.granularity)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wnsm/AsyncSmartmeter.py", line 143, in get_bewegungsdaten
response = await self.hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<5 lines>...
)
^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/wnsm/api/client.py", line 630, in bewegungsdaten
data = self._call_api(
f"user/messwerte/bewegungsdaten",
...<2 lines>...
extra_headers=extra,
)
File "/config/custom_components/wnsm/api/client.py", line 310, in _call_api
response = self.session.request(
method, url, headers=headers, json=data, timeout=timeout
)
File "/usr/local/lib/python3.13/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.13/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.13/site-packages/requests/adapters.py", line 700, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='service.wienernetze.at', port=443): Max retries exceeded with url: /sm/api/user/messwerte/bewegungsdaten?geschaeftspartner=1200983528&zaehlpunktnummer=AT0010000000000000001000014587702&rolle=V002&zeitpunktVon=2025-05-20T22%3A00%3A00.000Z&zeitpunktBis=2025-05-30T23%3A59%3A59.999Z&aggregat=NONE (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fc61c0ca350>: Failed to establish a new connection: [Errno -3] Try again'))