mypyllant-component icon indicating copy to clipboard operation
mypyllant-component copied to clipboard

Could not load energy data

Open antonio-fiol opened this issue 6 months ago • 1 comments
trafficstars

Before submitting a new issue

Problem description

Some entities show unavailable. Logs have exceptions with 4xx responses from API.

Logs

2025-05-01 10:26:25.020 WARNING (MainThread) [myPyllant.api] Could not get rooms data
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/myPyllant/api.py", line 1400, in get_ambisense_rooms
    response = await self.aiohttp_session.get(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/myPyllant/http_client.py", line 30, in _request
    return await super()._request(method, url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 832, in _request
    await raise_for_status(resp)
  File "/usr/local/lib/python3.13/site-packages/myPyllant/http_client.py", line 83, in on_raise_for_status
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 1161, in raise_for_status
    raise ClientResponseError(
    ...<5 lines>...
    )
aiohttp.client_exceptions.ClientResponseError: 409, message='Conflict', url='https://api.vaillant-group.com/service-connected-control/end-user-app-api/v1/api/v1/ambisense/facilities/22c942a9-c2d0-4da9-bd44-5c4afbe2fbe0/rooms'
2025-05-01 10:26:25.092 WARNING (MainThread) [myPyllant.api] Could not get energy management data
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/myPyllant/api.py", line 1323, in get_energy_management
    response = await self.aiohttp_session.get(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/myPyllant/http_client.py", line 30, in _request
    return await super()._request(method, url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 832, in _request
    await raise_for_status(resp)
  File "/usr/local/lib/python3.13/site-packages/myPyllant/http_client.py", line 83, in on_raise_for_status
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 1161, in raise_for_status
    raise ClientResponseError(
    ...<5 lines>...
    )
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url='https://api.vaillant-group.com/service-connected-control/end-user-app-api/v1/eebus/energy-management/22c942a9-c2d0-4da9-bd44-5c4afbe2fbe0'
2025-05-01 10:26:29.499 DEBUG (MainThread) [custom_components.mypyllant] Creating API and logging in with XXXXX@XXXXX in realm spain
2025-05-01 10:26:30.568 DEBUG (MainThread) [custom_components.mypyllant] Refreshing SystemCoordinator
2025-05-01 10:26:30.568 DEBUG (MainThread) [custom_components.mypyllant.coordinator] Starting async update data for SystemCoordinator
2025-05-01 10:26:30.568 DEBUG (MainThread) [custom_components.mypyllant.coordinator] Waiting 119s until token refresh for XXXXX@XXXXX
2025-05-01 10:26:32.295 WARNING (MainThread) [myPyllant.api] Could not get rooms data
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/myPyllant/api.py", line 1400, in get_ambisense_rooms
    response = await self.aiohttp_session.get(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/myPyllant/http_client.py", line 30, in _request
    return await super()._request(method, url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 832, in _request
    await raise_for_status(resp)
  File "/usr/local/lib/python3.13/site-packages/myPyllant/http_client.py", line 83, in on_raise_for_status
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 1161, in raise_for_status
    raise ClientResponseError(
    ...<5 lines>...
    )
aiohttp.client_exceptions.ClientResponseError: 409, message='Conflict', url='https://api.vaillant-group.com/service-connected-control/end-user-app-api/v1/api/v1/ambisense/facilities/22c942a9-c2d0-4da9-bd44-5c4afbe2fbe0/rooms'
2025-05-01 10:26:32.413 WARNING (MainThread) [myPyllant.api] Could not get energy management data
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/myPyllant/api.py", line 1323, in get_energy_management
    response = await self.aiohttp_session.get(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/myPyllant/http_client.py", line 30, in _request
    return await super()._request(method, url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 832, in _request
    await raise_for_status(resp)
  File "/usr/local/lib/python3.13/site-packages/myPyllant/http_client.py", line 83, in on_raise_for_status
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 1161, in raise_for_status
    raise ClientResponseError(
    ...<5 lines>...
    )
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url='https://api.vaillant-group.com/service-connected-control/end-user-app-api/v1/eebus/energy-management/22c942a9-c2d0-4da9-bd44-5c4afbe2fbe0'```

antonio-fiol avatar May 01 '25 08:05 antonio-fiol

End of February the Vaillant endpoint has been changed. As there are no updates the past 3 months, it looks like the project is dead. If not, can somebody reverse engineer the new endpoint? Without Energy Consumption it makes no sence for me anymore.

janbl avatar May 05 '25 14:05 janbl

i do have them

Image

Image

boelle avatar May 13 '25 09:05 boelle

i also have no energy data anymore, same problem as above

foempe avatar Jun 10 '25 16:06 foempe

Same to me

emimor123 avatar Jun 29 '25 09:06 emimor123

@antonio-fiol still an issue?

boelle avatar Oct 26 '25 09:10 boelle

I still see this on the logs:

Could not get energy management data

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/myPyllant/api.py", line 1335, in get_energy_management
    response = await self.aiohttp_session.get(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/myPyllant/http_client.py", line 30, in _request
    return await super()._request(method, str_or_url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 895, in _request
    await raise_for_status(resp)
  File "/usr/local/lib/python3.13/site-packages/myPyllant/http_client.py", line 82, in on_raise_for_status
    raise e
  File "/usr/local/lib/python3.13/site-packages/myPyllant/http_client.py", line 79, in on_raise_for_status
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 629, in raise_for_status
    raise ClientResponseError(
    ...<5 lines>...
    )
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found, response was: {"type":"about:blank","title":"Not Found","status":404,"detail":"Could not retrieve a energy management overview","instance":"/hem/ohpcf/22c942a9-c2d0-4da9-bd44-5c4afbe2fbe0"}', url='https://api.vaillant-group.com/service-connected-control/end-user-app-api/v1/eebus/energy-management/22c942a9-c2d0-4da9-bd44-5c4afbe2fbe0'

antonio-fiol avatar Oct 27 '25 10:10 antonio-fiol

I'm actually getting quite a few more errors now (likely not related to this specific issue):

Image

and this is on v0.9.6 -- upgrading now to latest.

antonio-fiol avatar Oct 27 '25 11:10 antonio-fiol