Water_heater internal integration - how to use it?

Does anyone use or can provide a real life example of using water_heater integration in HA, with some standards platforms?
I have a simple setup, a switch to control heater and temperature sensor to provide water temp. and I need to configure this as water heater.

When I’m trying to use generic_thermostat platform inside the water_heater, it not passes yaml check and comes with an error: " Platform error water_heater.generic_thermostat - No module named ‘homeassistant.components.generic_thermostat.water_heater’ "

I know, it can be done inside climate integration with generic_thermostat , but water heater not really belongs there…

show us what you have done so far (formating )

can’t you just treat it as climate control heat when temp to low and no heat when hot?

I have a GAS heater in the Lounge which only has an IR control

here is the GAS heater turn on/off

  - platform: broadlink
    mac: 'Bla:Bla:Bla'
    switches:
      - name: "Gas Heater"
        command_on: 'blabla'
        command_off: 'BlaBla'
- platform: generic_thermostat
  name: "Gas Heater"
  heater: switch.gas_heater
  target_sensor: sensor.bt_lounge_temperature
  min_temp: 15
  max_temp: 30
  ac_mode: False
  target_temp: 20.8
  initial_hvac_mode: "off"
  cold_tolerance: 0.2
  hot_tolerance: 0.2
  away_temp: 16

it only comes on when

TV is on and the lounge lights are on that’s my logic to say someone is in the lounge

image

its card

type: custom:thermostat-card
entity: climate.gas_heater
title: Gas Heater

I’ve done not much, quite stuck on start…

When I make this config:

water_heater:
  - platform: generic_thermostat
    name: vvb
    heater: switch.heat_test
    target_sensor: sensor.temp_test
    min_temp: 45
    max_temp: 75
    ac_mode: false
    target_temp: 52
    cold_tolerance: 5
    hot_tolerance: 2
    min_cycle_duration:
      seconds: 60
    initial_hvac_mode: "off"
    away_temp: 45
    precision: 0.1

and do “check configuration” in developers tools, it says:

"Platform error water_heater.generic_thermostat - No module named ‘homeassistant.components.generic_thermostat.water_heater’ "

so, something is wrong.

I’ve also found a custom component which I think use this integration. It is Generic Water Heater , but either it’s bug in it, or authors intentions are different than mine. In this custom component, when is on and heats the water, when water temp reach the right temp, it’s turning of the switch and also turning off heating mode, so is not starting heating when water temp falls again. You need to manually turn heating mode on again. So it’s useless for me.

@Jires96 have you solved this issue? I have absolutely the same situation. I have a smart kettle with local tuya integration. It provides a switch and temp sensor only so I would like to create water_heater “device” from this entities.
But from this documentation Water Heater - Home Assistant it’s absolutely unclear how to do it

1 Like