Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preset mode names changes in 2023.1 show up as undefined names for presets in card #373

Open
wigster opened this issue Jan 5, 2023 · 18 comments
Labels
bug Something isn't working

Comments

@wigster
Copy link

wigster commented Jan 5, 2023

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
@wigster wigster added the bug Something isn't working label Jan 5, 2023
@acshef
Copy link

acshef commented Jan 5, 2023

This was caused by this Home Assistant frontend commit: home-assistant/frontend@0e70b86
Here's the line that got removed: home-assistant/frontend@0e70b86#diff-e67939fd25c650222db710f18764d10ae69454b0e8ad680f5e10177c2db93ceaL155

@lesourcil
Copy link

Same issue

@roycwalton
Copy link

Same issue running 2023.01.04 HA.

@acmeGR
Copy link

acmeGR commented Jan 9, 2023

Same issue Home Assistant 2023.1.2

@mcormick
Copy link

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.

@Scoff123
Copy link

Does anyone know if this issue has already been raised on the Home Assistant frontend issues list? I had a look through but couldnt see it but may have missed as there are a few!

@acshef
Copy link

acshef commented Jan 16, 2023

@Scoff123 I don't know that it's an "issue" on the Home Assistant side, per se. Home Assistant is working towards moving translations away from the frontend and over to the backend -- Simple Thermostat is just piggybacking on the frontend translations. This is a growing pain as Home Assistant consolidates their translations paradigm.

@davel4wa
Copy link

Same problem in HA 2023.1.7.

@B1ackCr0
Copy link

B1ackCr0 commented Feb 1, 2023

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

@prolife86
Copy link

prolife86 commented Feb 2, 2023

SOLVED

I too had this issue:

prepost

I looked as some of the available configuration options and had the idea of using '_name:' under the "preset" heading and it worked:

postpost

Mike

Hi Mike,

For me this does not work, it does nothing:

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

As soon as I do an ident in front of it, it breaks:

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

Results in:
Configuration errors detected:
bad indentation of a mapping entry (3:9)

1 | type: custom:simple-thermostat
2 | entity: climate.toon_thermostaat
3 | preset:
-------------^
4 | _name: Preset Mode

@alienatedsec
Copy link

alienatedsec commented Feb 2, 2023

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

Wrong indent then. You need to be pedantic about your format and the order it comes. Not always but worth doing it right.

An example of working indent:
image

An example of not working indent:
image

@prolife86
Copy link

prolife86 commented Feb 2, 2023

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

@fila612
Copy link

fila612 commented Feb 14, 2023

short question: what about the preset itself? I have a wth-2 with following presets:
preset_modes:

  • boost
  • none
  • week_program_1
  • week_program_2
  • week_program_3
  • week_program_4
  • week_program_5
  • week_program_6

can I change these names into shorter names?

@finder39
Copy link

@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'

@fila612
Copy link

fila612 commented Feb 15, 2023

perfect! Thank you so much :)

@scstraus
Copy link

scstraus commented Apr 21, 2023

I'm having the same issue except for on the sensors: section as below. Any ideas?

    - type: custom:simple-thermostat
      entity: climate.entrance
      step_size: 0.5
      header: false
      sensors:
        - attribute: preset_mode
          name: Mode

image

@xiangboshihub
Copy link

xiangboshihub commented Oct 23, 2023

thanx!
f157a9b6bbd3f96b759d63b7ea8f657

@alienatedsec
Copy link

  • type: custom:simple-thermostat
    entity: climate.entrance
    step_size: 0.5
    header: false
    sensors:
    - attribute: preset_mode
    name: Mode

it has to be _name: Mode not name: Mode

@scstraus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests