custom-cards / button-card

❇️ Lovelace button-card for home assistant
MIT License
1.93k stars 233 forks source link

HA 2023.5.0 - State values no longer show the friendly name #693

Closed clearwave1 closed 1 year ago

clearwave1 commented 1 year ago

Checklist

Describe the bug After upgrading to HA 2023.5.0 the state values in the cards are now in lowercase and are the actual state values and not the state value "friendly name". E.g. It used to show "Disarmed Away" and now shows "disarmed_away". Other Lovelace cards show the state properly.

Version of the card Version: v3.5.0

To Reproduce This is the configuration I used:

type: custom:button-card
entity: person.don
name: Don
show_state: true

Screenshots image

Expected behavior It should work as it did before HA version 2023.5.0 where the friendly name for the state was displayed. In the attached picture you will notice the standard Entity Card shows "Home" with a capital 'H' and the Button Card shows "home".

Desktop (please complete the following information):

RomRider commented 1 year ago

I'll review that over the weekend. I've seen a PR about that too.

sstefanowski commented 1 year ago

I guess it's just a duplicate of #685. The "home" is just the raw state name while "Home" is the official translation of this state to English ;) We all are waiting for the approval of the fix in pull request here: https://github.com/custom-cards/button-card/pull/692 Please @RomRider can you accept this PR quickly?

RomRider commented 1 year ago

I'll do so tomorrow, not in front of a computer at the moment

piesinopoli commented 1 year ago

Any news?

clearwave1 commented 1 year ago

Any update on this one? Even a workaround would be appreciated.

skynet01 commented 1 year ago

Plus one on this one. Shows not_home for me instead of Away :)

Laho812 commented 1 year ago

+1 Screenshot_20230612-012650_Home Assistant

For the Lights (Leselichter) the states should show "An" and "Aus" instead of "On" and "Off". For the contact sensors (Türen und Fenster) the states should show "Offen" and "Geschlossen" instead of "On" and "Off".

A fix would be nice cause I love the custom button card and I want the translation back, because it then looks much more professional...

Ricks88 commented 1 year ago

@RomRider Any new updates about this? All has changes to on/off instead of translations. 244930094-6bbfd46f-1dd1-43f1-89c2-c919f44da991 244930078-393ab1d5-353c-4c44-b41a-5eec569edcea

pablitosd commented 1 year ago

I just have to. "Door is off/on" .I had open and closed. :(

RomRider commented 1 year ago

Duplicate of #685, closing in favor of the other one. It's released in version beta 4.0.0-dev1 if you want to test it out.