nervetattoo / simple-thermostat

A different take on the thermostat card for Home Assistant ♨️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Translate State

FTeinz opened this issue · comments

Hello. I want do translate the state of the hvac_action in my Widget. My Thermostat has "off" and "heating". therefore I use this snippet:

  - id: state
    label: Aktion
    template: '{{hvac_action|translate(''state_attributes.climate.hvac_action.'')}}'

But the state is still shown as ofo and heating I want An or AUS. Whats wrong in my code and how I can do that. I also tried:

- id: state
  label: Aktion
  template: >
    {{ 'AUS' if state.text == 'off' else 'AN' }}

Thanks

Hi,
I also would like to have german text for the state. But how?