Open jhausladen opened 1 week ago
Hey there @elupus, mind taking a look at this issue as it has been labeled with an integration (nibe_heatpump
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
nibe_heatpump documentation nibe_heatpump source (message by IssueLinks)
The problem
The Home Assistant Nibe integration throws an exception, when the Mode for the climate system is changed.
`2024-06-24 21:24:34.839 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140063853239104] Unexpected exception Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/nibe/connection/encoders.py", line 68, in encode coil_data.validate() File "/usr/local/lib/python3.12/site-packages/nibe/coil.py", line 246, in validate raise ValidationError( nibe.exceptions.ValidationError: cooling-with-room-sensors-40171 coil value (OFF) is invalid type (expected int, float or datetime.date)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/nibe_heatpump/climate.py", line 252, in async_set_hvac_mode await coordinator.async_write_coil( File "/usr/src/homeassistant/homeassistant/components/nibe_heatpump/coordinator.py", line 137, in async_write_coil await self.connection.write_coil(data) File "/usr/local/lib/python3.12/site-packages/tenacity/_asyncio.py", line 142, in async_wrapped return await fn(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/tenacity/_asyncio.py", line 58, in call do = await self.iter(retry_state=retry_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/tenacity/_asyncio.py", line 110, in iter result = await action(retry_state) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/tenacity/_asyncio.py", line 78, in inner return fn(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/tenacity/init.py", line 390, in
self._add_action_func(lambda rs: rs.outcome.result())
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
return self.get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in get_result
raise self._exception
File "/usr/local/lib/python3.12/site-packages/tenacity/_asyncio.py", line 61, in call
result = await fn( args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/nibe/connection/modbus.py", line 136, in write_coil
values = self.coil_encoder.encode(coil_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/nibe/connection/encoders.py", line 71, in encode
raise EncodeException(
nibe.exceptions.EncodeException: Failed to encode cooling-with-room-sensors-40171 coil for value: OFF, exception: cooling-with-room-sensors-40171 coil value (OFF) is invalid type (expected int, float or datetime.date)`
It also doesn't show the actual state, such as cooling or heating properly.
What version of Home Assistant Core has the issue?
core-2024.6.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Nibe Heat Pump
Link to integration documentation on our website
https://www.home-assistant.io/integrations/nibe_heatpump
Diagnostics information
home-assistant_nibe_heatpump_2024-06-24T19-24-53.273Z.log
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response