Generic Thermostat Sensor

Hello,

I’ve setup all of my heating zones as Generic Thermostat climate devices. Most of them use a separate zigbee thermostat and radiator valve so configuration has been pretty straight forward with the ‘target_sensor’ reading from the standalone thermostat:

  • platform: generic_thermostat

    name: BathroomDown

    heater: input_boolean.heatdemand_bathroomdown

    target_sensor: sensor.stat_bathroomdown_temperature

    min_temp: 5

    max_temp: 21

    ac_mode: false

    cold_tolerance: 0.3

    hot_tolerance: 0

    min_cycle_duration:

    seconds: 5
    

    keep_alive:

    minutes: 3
    

    initial_hvac_mode: “off”

    away_temp: 5

    precision: 1

However for a couple of the rooms I would like to use the built in temperature measurement (less accurate) in the radiator sensor. They have a current temperature reading:

entity: climate.trv_kitchen
attribute: current_temperature

How do I reference the trv current temperature attribute in the ‘target_sensor’ field for Generic Thermostat?

I realise I can just run the trv as its own climate entity however for the purposes of integrating the two radiators into the rest of the system (boiler control automation etc) I’d like to keep the Generic Thermostat method for everything.

Do you want the Generic Thermostat’s target_sensor option to use the current_temperature attribute of climate.trv_kitchen?

If so, make a Template Sensor then reference it in the Generic Thermostat.

template:
  - sensor:
      - name: Kitchen TRV Temperature
        state: "{{ state_attr('climate.trv_kitchen', 'current_temperature') }}"
        device_class: temperature
        unit_of_measurement: '°C'

In your Generic Thermostat’s configuration:

target_sensor: sensor.kitchen_trv_temperature

Thank you again!

1 Like