I can't get the Generic Thermostat integration to work

Hello guys!
I am new to the Home Assistant world. I did not have any major problems installing HA OS on my Raspberry Pi 5, but I cannot get my desired configuration to work.

I want to use the ‘Generic Thermostat’ integration for my thermostats, mainly for two reasons:

  • I want to automate heating with a weekly schedule
  • I want to link my thermostats with my dedicated temperature sensors instead of their inbuilt ones

I have added my three Danfoss Ally zigbee thermostats to my dashboard and I am able to control them just fine.
I have added the thermostats as generic thermostat entities in my configuration.yaml (see below) and added additional thermostat cards with the ‘generic thermostat’ entities on the dashboard as well. So now I have two thermostat cards for each thermostat. A standard one, and another pointing to the custom generic thermostat entity.
But there is an issue with the ‘generic thermostat’ thermostat cards, as they don’t seem to be connected to the thermostat entities at all. They don’t show the correct current set temperature, and when I change the temperature, no event is triggered (at least not shown in the logs). And the physical thermostats don’t react.

Does anyone have an idea what could be the cause of the problem? I have added a screenshot of one of the ‘generic thermostat’ thermostat cards.

This is my configuration.yaml:


# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
logger:
  default: warning
  logs:
    homeassistant.components.generic_thermostat: debug
    homeassistant.components.climate: debug

climate:
  - platform: generic_thermostat
    name: thermostat_sz
    unique_id: ID_of_Thermostat_SZ
    heater: climate.danfoss_etrv0103_thermostat
    target_sensor: sensor.tz3000_mxzo5rhf_ts0201_temperature
    min_temp: 15
    max_temp: 25
    ac_mode: false
    target_temp: 18
    cold_tolerance: 0.5
    hot_tolerance: 0.5
    min_cycle_duration:
      seconds: 30
    initial_hvac_mode: "heat"
    precision: 0.1
    target_temp_step: 0.5

  - platform: generic_thermostat
    name: thermostat_kueche
    unique_id: ID_of_Thermostat_Kueche
    heater: climate.danfoss_etrv0103_thermostat_3
    target_sensor: sensor.tz3000_mxzo5rhf_ts0201_temperature_2
    min_temp: 15
    max_temp: 25
    ac_mode: false
    target_temp: 20
    cold_tolerance: 0.5
    hot_tolerance: 0.5
    min_cycle_duration:
      seconds: 30
    initial_hvac_mode: "heat"
    precision: 0.1
    target_temp_step: 0.5

  - platform: generic_thermostat
    name: thermostat_wz
    unique_id: ID_of_Thermostat_WZ
    heater: climate.danfoss_etrv0103_thermostat_2
    target_sensor: sensor.tz3000_mxzo5rhf_ts0201_temperature_2
    min_temp: 15
    max_temp: 25
    ac_mode: false
    target_temp: 20
    cold_tolerance: 0.5
    hot_tolerance: 0.5
    min_cycle_duration:
      seconds: 30
    initial_hvac_mode: "heat"
    precision: 0.1
    target_temp_step: 0.5

Thanks in advance!

Greetings from germany
Julian

You use a climate device as heater.

1 Like

Thank you so much for the quick answer @francisp !

Would the following work as a solution?

  1. Set up a switch (devices & services → helpers)

  2. Set up two automations:

If the switch is on → set thermostat to heating mode

If the switch is off → set thermostat to off

  1. Include the switch entity-id into my generic thermostat as heater device

Greetings
Julian

Use a template switch

1 Like

Okay I will try that, thank you! I really did not expect to get such good help that quick. You’re awesome, have a nice day!