-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
Closed
Closed
Copy link
Description
The problem
For the evohome integration, if you invoke water_heater.set_temperature
, you'll get an NotImplementedError
:
2025-03-30 21:13:13.254 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140543346768720] Error handling message: Unknown error (unknown_error) David Bonnes from 127.0.0.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36)
Traceback (most recent call last):
...
File "/home/dbonnes/clients/hass/homeassistant/components/water_heater/__init__.py", line 314, in set_temperature
raise NotImplementedError
NotImplementedError
... instead of:
Entity water_heater.domestic_hot_water does not support action
water_heater.water_heater.set_temperature
This is despite evohome clearly setting _attr_supported_features
thus:
self._attr_supported_features = (
WaterHeaterEntityFeature.AWAY_MODE
| WaterHeaterEntityFeature.OPERATION_MODE
)
This issue applies for these three services:
SERVICE_SET_AWAY_MODE
SERVICE_SET_TEMPERATURE
SERVICE_SET_OPERATION_MODE
For example, in water_heater\__init__.py
, we have:
component.async_register_entity_service(
SERVICE_SET_OPERATION_MODE,
SET_OPERATION_MODE_SCHEMA,
"async_handle_set_operation_mode",
)
... where is should (?) be:
component.async_register_entity_service(
SERVICE_SET_OPERATION_MODE,
SET_OPERATION_MODE_SCHEMA,
"async_handle_set_operation_mode",
[WaterHeaterEntityFeature.OPERATION_MODE], # <-- missing
)
What version of Home Assistant Core has the issue?
core-2025.5.0.dev0
What was the last working version of Home Assistant Core?
N/A
What type of installation are you running?
Home Assistant Core
Integration causing the issue
water_heater
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response