Thanks Andrea
Thatâs a limitation of the water heater entity, it supports the following operations, but it doesnât include a âturn_onâ or âturn_offâ one
water_heater.set_temperature
, water_heater.turn_away_mode_on
, water_heater.turn_away_mode_off
, water_heater.set_temperature
I had a lot of doubts on how to implement the water heater entity with Aquarea devices, to support the actions âonâ and âoffâ but also to show via the interface if the heat pump is heating the water of the water tank or not: it can be turned on but the heat pump could be heating water for the heating floor (or cooling it) so the state/operation would be like âidleâ.
While it doesnât support turn_off, we can define the state as âSTATE_OFFâ or âSTATE_HEAT_PUMPâ:
Iâve implemented this via operations and so far the device accepts 2: heating and off:
Turn on:
service: water_heater.set_operation_mode
target:
entity_id: water_heater.aerotermia_tank
data:
operation_mode: heating
Turn off:
service: water_heater.set_operation_mode
target:
entity_id: water_heater.aerotermia_tank
data:
operation_mode: off
For setting the temperature would be like this:
service: water_heater.set_temperature
target:
entity_id: water_heater.aerotermia_tank
data:
temperature: 42
Iâm not sure if this is the best way including right operation names (perhaps off and on is better hereâŚ) or we could use also the away mode to turn it off and on (not sure however if this the intention behind that mode)âŚ
Iâm completely opened to feedback and I would really appreciate everyoneâs opinion here. Iâve opened an issue on the integration repo as well to keep track of it: Discussion: Water Entity for Water Tank implementation ¡ Issue #18 ¡ cjaliaga/home-assistant-aquarea ¡ GitHub