Lovelace: Simple thermostat card

After updating the card and restarting HA, the modes and hvac are now displayed. But changes for name or icon are ignored.

- type: 'custom:simple-thermostat' 
  entity: climate.eurotronic_thermostat_buero_heat
  name: 'Büro'
  step_size: 1
  decimals: 0
  sensors:
    - entity: sensor.thermostat_buero_modus
      name: 'Modus'
    - entity: sensor.eurotronic_thermostat_buero_battery_level
      name: 'Akku'
  control:
    preset:
      'Manufacturer Specific': false
      boost: false
      none: true
      'Heat Eco': true
    hvac:
      heat:
        name: 'An'
        icon: mdi:fire
      'off':
        name: 'Aus'
        icon: mdi:power

thermostat

I noticed the latest release is with a different size compared to the one got with HACS. I downloaded this, refreshed cache and now i have all visible! It seems HACS did not downloaded the real latest.

I noticed the same, reported it on GitHub:

Icon/name override should be fixed now. I had added a last minute untested change before releasing 0.26 – the recipe for what you should never do :smiley: No change is small enough to be safe

1 Like

I have been trying to rearrange the Operation modes buttons to be consistent between 2 different thermostats (Zwave CT100 & iComfort S30). I had hoped that by specifying the Control/Hvac modes in a specific order that this order would be honored in the card, but apparently not. Is there any way to change the order so these 2 cards match? This is using the latest .28 release…

      - entity: climate.icomfort_s30
        name: Downstairs iComfort Thermostat
        step_size: 1
        decimals: 0
        control:
          hvac:
            cool:
              name: Cool
              icon: 'mdi:snowflake'
            heat:
              name: Hot
              icon: 'mdi:fire'
            auto:
              name: Auto
              icon: 'mdi:auto-fix'
            'off':
              name: 'Off'
              icon: 'mdi:power'
        sensors:
          - attribute: current_humidity
            name: Humidity
            unit: ' %'
        type: 'custom:simple-thermostat'

      - entity: climate.lake_mbr_thermostat_34
        name: Upstairs Thermostat
        sensors:
          - entity: sensor.mbr_humidity_36
            name: Humidity
        step_size: 1
        decimals: 0
        type: 'custom:simple-thermostat'

EDIT: The order on the card is evidently being determined by whatever order the particular climate component reports. The iComfort reports “hvac_modes: off,heat,cool,heat_cool” and the CT100 reports “hvac_modes: cool,heat,heat_cool,off”. BTW - the standard Thermostat card keeps the UI order of the operation buttons consistent regardless of the Hvac_modes order.

2 Likes

You are right. It uses the order reported by the climate device. That makes little sense so expect this to change in an upcoming release. I’ll probably follow suit from the official thermostat card.

2 Likes

Hi all,
actually i have version 0.26.0-0 installed. If i try to upgrade to 0.28 it doesn’t work. No error but no new version. I try to uninstall then reinstall but i’m still having version 0.26.0-0 installed.

Any idea?

EDIT:
ok it’s working: upgrade to the master version and then 0.28 working!

Thanks for the update! The 0.28 version is working fine with my Honeywell Round thermostat:

cards:
  - type: custom:simple-thermostat
    name: Vloerverwarming
    entity: climate.honeywell_round
    control:
      preset:
        away:
          icon: mdi:home-export-outline
        eco:
          icon: mdi:leaf
    sensors:
      - entity: climate.honeywell_round
        attribute: hvac_action
        name: Action
      - entity: sensor.woonkamer_multisensor_relative_humidity
        name: Vochtigheid

The modes/names/icons are now working fine with Spirit Z - Wave Plus from Eurotronic. Thx for the update :grinning:

1 Like

Hi there,
@x-dast
would you share you config for the Spirit Z ?..I have got quite some of them but can’t really get it working with the thermostat card,

I still get no icons in the preset section.

My code is:

                          control:
                            hvac:
                              'Off':
                                icon: fas:power-off
                              heat:
                                icon: mdi:radiator                     
                              auto:
                                icon: mdi:auto-fix
                            preset:
                              away:
                                icon: mdi:home-export-outline
                              home:
                                icon: mdi:home

And what i get is this:

45

I just upgraded to 0.28 release and cleared cache…

sure

- type: 'custom:simple-thermostat' 
  entity: climate.eurotronic_thermostat_buero_heat
  name: 'Büro'
  step_size: 1
  decimals: 0
  sensors:
    - entity: sensor.thermostat_buero_modus
      name: 'Modus'
    - entity: sensor.eurotronic_thermostat_buero_battery_level
      name: 'Akku'
  control:
    preset:
      'Manufacturer Specific': false
      boost: false
      none:
        name: 'Normal'
        icon: mdi:fire
      'Heat Eco':
        name: 'Eco'
        icon: mdi:leaf
    hvac:
      heat:
        name: 'An'
        icon: mdi:fire
      'off':
        name: 'Aus'
        icon: mdi:power

thermostat

2 Likes

Hi

I’m trying to show the presets, but I don’t see them

This is the Netatmo thermostat states

49

this is the code

      - type: custom:card-modder
        card:
          type: custom:simple-thermostat
          entity: climate.netatmo_sala
          name: Termostato Netatmo
          step_size: 0.5
          sensors:
            - entity: sensor.patio_temp
              name: Temp. Patio
            - entity: sensor.temp_sala_xiaomi_2
              name: Umidità Patio
            - entity: sensor.caldaia_hr
              name: Caldaia accesa oggi
            - attribute: hvac_action
              name: Acceso
            - attribute: battery_level
              name: Batteria %
          icon:
            idle: mdi:timer-sand-empty
            heat: mdi:radiator
          hide:
            # mode: true
            temperature: false
            state: true
          control:
            preset:
              away: 
                icon: mdi:fire
                name: Fuori
              frost_guard: 
                icon: mdi:snowflake
                name: Antigelo
              schedule: 
                icon: mdi:airplane
                name: Programma
              boost: 
                icon: mdi:car-turbocharger
                name: Boost
            hvac:
              heat:
                name: 'Acceso'
                icon: mdi:fire
              'off':
                name: 'Spento'
                icon: mdi:power
              auto:
                name: 'Auto'
                icon: mdi:power

and this is how it’s shown

43

Strangely, I don’t understand where the word “CALDO” (that means HOT) comes from…

The card version is 0.28 and it’s installed via HACS

What can I check?

Thanks

Just curious. How do you get the hours of working of the heater?

I have done this way, but now I don’t think is working because the state attribute ‘boiler_status’ does not exist anymore

PS: Now I can use the hvac_action attribute and test for ‘heating’ value

  - platform: history_stats
    name: history_stats_caldaia
    entity_id: sensor.caldaia_accesa
    state: 'True'
    type: time
    start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
    end: '{{ now() }}'


  - platform: template
    sensors:
      caldaia_accesa:
        friendly_name: Caldaia accesa
        icon_template: mdi:radiator
        value_template: "{{ state_attr('climate.netatmo_sala', 'boiler_status') }}"
1 Like

@nervetattoo this is my version:


This is my current config(back to the original):

          - type: horizontal-stack
            cards:
              - type: custom:simple-thermostat
                style: |
                  ha-card {
                    background: #fff5bc;
                    border-radius: 15px;
                    --primary-text-color: black;
                    --secondary-text-color: black;
                    --paper-item-icon-color: black;
                  }
                entity: climate.mzgn_khdr_shynh                
                name: AC Bedroom
                step_size: 1
                sensors:
                  - entity: sensor.fibaro_system_fgwpef_wall_plug_gen5_power
                    name: Energy today
                  - attribute: min_temp
                    name: Min temp
                hide:
                  mode: false

output:

How do i add the buttons, everything that I tried didn’t worked, can you please help me with the code?

Thank you,

1 Like

Now I understand my problem not showing the new preset buttons.

I still have to reinstall a second time the addon via HACS to have it work.

Is this still an open issue?

Like someone else said, I see only some icons, even if they are defined.
And also some text is different than the one defined in the name field (Frost guard and schedule buttons).

57

with this code

          control:
            hvac:
              heat:
                name: 'Acceso'
                icon: mdi:fire
              'off':
                name: 'Spento'
                icon: mdi:power
              auto:
                name: 'Auto'
                icon: mdi:power
            preset:
              away: 
                icon: mdi:home-export-outline
                name: Fuori casa
              frost_guard: 
                icon: mdi:snowflake-variant
                name: Antigelo
              schedule: 
                icon: mdi:clock-outline
                name: Program
              boost: 
                icon: mdi:car-turbocharger
                name: Boost

I think you have to spell the preset-names exactly as you see them in the entity attributes, so change frost_guard into ‘Frost Guard’ and schedule into ‘Schedule’:

    preset:
      'Frost Guard':
        ...
      'Schedule':
        ...

The rest is already ok as they appear in lowercase in the attributes.

1 Like

Thanks @vloris

That is working!

I haven’t thought that case make the difference. Good to know

@nervetattoo
Would it be possible to add an option to change the temperature with an input field behind the numbers?