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