simple-thermostat: Preset mode names changes in 2023.1 show up as undefined names for presets in card

Describe the bug After upgrade to 2023.1 the card does not have a label for preset modes, but rather prints them as ui.card.climate.preset_mode

To Reproduce See config below

Expected behavior I guess this should just be called ‘preset’.

type: custom:simple-thermostat
entity: climate.trv_kids

Screenshots

image

Browser

  • OS: Win
  • Browser: Chrome
  • Simple Thermostat version from browser console: 2.5.0
  • Home Assistant version: 2023.1

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Reactions: 26
  • Comments: 18

Most upvoted comments

Not a solution, but to turn headings off in the card config:

layout:
  mode:
    headings: false

or just toggle off the slider Show mode headings? in the Card Configuration visual editor.

SOLVED

I too had this issue:

prepost

I looked at some of the available configuration options and had the idea of using ‘_name:’ under the “preset” heading and it worked:

postpost

Mike

@fila612 handle those like this:

      - type: 'custom:simple-thermostat'
        entity: climate.mjolnir_hvac_climate_system
        name: Climate
        control:
          hvac:
            'heat_cool':
              name: "Heat/Cool"
          preset:
            _name: Preset Mode
            'normal':
              name: 'Normal'
            'defrost':
              name: 'Defrost'
            'week_program_1':
              name: 'P1'

Thank you! @alienatedsec !

Solved it by adding “control” and “hvac” (to keep operation in there, else "operation"disappears and only shows presets): my current code:

type: custom:simple-thermostat
entity: climate.toon_thermostaat
control:
  hvac: false
  preset:
    _name: Preset Mode