Climate - Thermostat missing modes

I have a heater entity ‘climate.panel_climate’ and the switch is ‘switch.panel_switch’

The climate entity has the following attributes available:


hvac_modes: null
min_temp: 7
max_temp: 35
target_temp_step: 1
preset_modes: eco
current_temperature: 21
temperature: 22
preset_mode: none
raw_state: false
friendly_name: Panel climate
supported_features: 17

When I add the generic thermostat card, I only see the temperature and the dial, but no toggle for the switch and no eco mode toggle.

Could someone advise me how I’d add this? I am able to add a separate card for the switch but I wanted to have it integrated in the dial as I’ve seen in screenshots.

Thanks!

edit: referring to thermostat card not generic thermostat

The generic thermostat does not support modes. The available configuration options are listed here:

Thanks Tom. I think I’m referring to the ‘thermostat card’ pictured here: image

I’m missing the icons underneath

Post your configuration for the Generic Thermostat integration (because hvac_modes: null suggests something may be wrong).

All I have in the confg is:

climate:
  - platform: generic_thermostat
    name: Panel Heater
    heater: switch.panel_switch
    target_sensor: climate.panel_temp
    ac_mode: false

My actual heater is configured via localtuya, it’s a wifi panel heater

This is incorrect:

target_sensor: climate.panel_temp

The target_sensor option expects an entity that reports a temperature value. A climate entity reports operating modes like heat, cool, off, etc.

May I ask why you are using the Generic Thermostat integration if you already have an existing climate entity (climate.panel_temp)?

I removed that code but it doesn’t make a difference to the display of the thermostat card:

It definitely won’t work if you remove target_sensor: climate.panel_temp.

The target_sensor option must be supplied with the entity_id of whatever entity you have that reports the ambient temperature of the area to be heated.

I’ll ask again, why are you using the Generic Thermostat integration if you already have climate.panel_temp?

I’m pretty new to HA so please forgive my ignorance.

I have added the panel heater and the panel switch as two entities - a switch and a climate device, like so:

image

If I don’t add the switch separately, I don’t get the ability to toggle the device at all.

Without adding to the config I can still add the thermostat card but can only specify the climate entity and not the switch, which means I can’t toggle the panel on/off without adding a separate card.

  1. Go to Developer Tools > States
  2. Find climate.panel_climate
  3. Look at its hvac_modes attribute.
  4. What are its values?

In my case, they’re hvac_modes: auto, heat, cool, off which means I can set it to any of those modes, including off.

The values are in the first post - so hvac_modes is indeed null

I was hoping there would be a way to override this. It seems not as is described here Tuya Climate not handling eco mode · Issue #60646 · home-assistant/core · GitHub

A result of an incorrectly configured Generic Thermostat. See my explanation above.