Hi,
I’ve been looking to automate the use of holiday mode when away from the house.
However, am seeing the following error:
This error originated from a custom integration.
Logger: homeassistant.core
Source: custom_components/nibe/switch.py:75
Integration: Nibe Uplink Heat Pumps (documentation)
First occurred: 19:27:35 (1 occurrences)
Last logged: 19:27:35
Error executing service: <ServiceCall switch.turn_on (c:01G8EDTKN87BB88VP9DMK5BNA9): entity_id=['switch.nibe_*****MY ID******_48043']>
aiohttp.client_exceptions.ClientResponseError: 400, message="{'httpStatusCode': 400, 'errorCode': 1, 'timestamp': '2022-07-20T18:27:35.0552044Z', 'details': ['Error 14: 48043'], 'data': None}", url=URL('https://api.nibeuplink.com/api/v1/systems/*****MY ID******/parameters')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1731, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_call
await result
File "/config/custom_components/nibe/switch.py", line 75, in async_turn_on
await self._uplink.put_parameter(self._system_id, self._parameter_id, "1")
File "/usr/local/lib/python3.10/site-packages/nibeuplink/uplink.py", line 176, in put_parameter
result = await self.put(
File "/usr/local/lib/python3.10/site-packages/nibeuplink/uplink.py", line 87, in put
return await self.session.request(
File "/usr/local/lib/python3.10/site-packages/nibeuplink/session.py", line 186, in request
await raise_for_status(response)
File "/usr/local/lib/python3.10/site-packages/nibeuplink/session.py", line 26, in raise_for_status
raise UplinkResponseException(data.get("errorCode"), data) from e
nibeuplink.exceptions.UplinkResponseException: FORMAT_ERROR: Input format error.
{'httpStatusCode': 400, 'errorCode': 1, 'timestamp': '2022-07-20T18:27:35.0552044Z', 'details': ['Error 14: 48043'], 'data': None}
Is anyone else having such a problem?