Panasonic Aquarea Heat Pump integration

Thanks Andrea :slight_smile:

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 :frowning:

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