Hey!
I’ve googled this issues but can’t get an answer.
I use custom cards (button-card, Mushroom template). When getting the status from my entites it doesn’t show the frontend “Friendly” name (Away instead of not_home. Armed_away instead of Armed away).
Is there a way to display the friendly name instead of the backend state like all native home assistant lovelace cards do?
Well, I don’t use custom mushroom chips and the documentation doesn’t show where to put the template. If you can point that out, I can help with the template.
Your template won’t work as is. You should also try not to name variables the same as key words (on, off, state, this etc…) because it can cause unpredictable problems.
Also, you don’t need the first if case. It’s covered by the else statement.
Try this.
{% set status = states('person.jason') %}
{% if status == 'not_home' %} Away
{% else %} {{ status.capitalize() }}
{% endif %}