Hello I want to get the state of my washing machine in a template card.
The sensor looks like this:
options:
- '0'
- '1'
- '2'
- '3'
- '4'
- '5'
- '6'
- '7'
- '8'
- '9'
device_class: enum
icon: mdi:information
friendly_name: Waschmaschine Machine Status
When I put this in my template card {{ states('sensor.waschmaschine_phase') }}
the result looks like this:
But when I use a entity card insted of a template card the option ‘0’ reads as ‘Bereit’ (ready in english):
So how do I get the “friendly name” for the option ‘0’ in a template? Something like {{ states('sensor.waschmaschine_phase') | friendly_name }}
?
I hope the problem is understandable.
Greetings,
Simon