Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
clearwave1 opened this issue May 4, 2023 · 10 comments
Closed

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

clearwave1 opened this issue May 4, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@clearwave1
Copy link

Checklist

  • [x ] I updated the card to the latest version available
  • [ x] I cleared the cache of my browser

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):

  • Browser - Chrome or Edge
  • Version - latest
@clearwave1 clearwave1 added the bug Something isn't working label May 4, 2023
@RomRider
Copy link
Collaborator

RomRider commented May 4, 2023

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

@sstefanowski
Copy link

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:
#692
Please @RomRider can you accept this PR quickly?

@RomRider
Copy link
Collaborator

RomRider commented May 7, 2023

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

@piesinopoli
Copy link

Any news?

@clearwave1
Copy link
Author

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

@skynet01
Copy link

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

@Laho812
Copy link

Laho812 commented Jun 11, 2023

+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
Copy link

Ricks88 commented Jun 26, 2023

@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
Copy link

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

RomRider added a commit that referenced this issue Jul 23, 2023
github-actions bot pushed a commit that referenced this issue Jul 23, 2023
## [4.0.0-dev.1](v3.5.0...v4.0.0-dev.1) (2023-07-23)

### ⚠ BREAKING CHANGES

* this might break some of your color settings

### Bug Fixes

* Color are now aligned with HA > 2022.12 ([685d55e](685d55e)), closes [#635](#635)
* localization fix ([02dfab3](02dfab3)), closes [#685](#685) [#693](#693)
* lock icon was displaying over more-info dialog ([bf075b0](bf075b0)), closes [#694](#694)
* lock would go out of the button ([0b3e4d3](0b3e4d3))
@RomRider
Copy link
Collaborator

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.

github-actions bot pushed a commit that referenced this issue Jul 29, 2023
## [4.0.0](v3.5.0...v4.0.0) (2023-07-29)

### ⚠ BREAKING CHANGES

* **helpers:** If you were using any of the beta before `4.0.0-dev14`. Please replace all the calls to helper functions with `helpers.xxx` for eg. `helpers.relativeTime(entity.state)` or `helpers.localize(entity)`
* **hacs:** Minimum required HA Version is now 2023.7
* **actions:** Requires HA 2023.4 minimum. Support for the new action format (`target` is also be supported), `service_data` should be renamed to `data` (but it still works with the old format)
* **icons:** This might break your card-mod setup
* this might break some of your color settings

### Features

* **action:** `repeat_limit` for `hold_action` ([73c216f](73c216f)), closes [#564](#564) [#555](#555)
* **actions:** Support for the new action (assist) and all the future ones ([d9c17a4](d9c17a4)), closes [#711](#711) [#685](#685)
* **custom_fields:** Add `do_not_eval` to stop evaluating js templates in an embedded card ([1638cf8](1638cf8))
* **helpers:** all template functions are now available through the `helpers` object ([f22ed69](f22ed69))
* **icons:** replace ha-icon with ha-state-icon to follow new HA's icons per domain automatically ([ab6a3f5](ab6a3f5))
* **templates:** new `relativeTime` function to display a relative time in a template and update it automatically ([965a3d7](965a3d7)), closes [#701](#701)
* **templates:** New date and time format helpers ([9b4fb05](9b4fb05))
* **variables:** A variable can depend on another variable based on their name's alphabetical order ([8cddccb](8cddccb)), closes [#656](#656)
* Force the `numeric_precision` for states which are numbers ([24d75c2](24d75c2))
* new helper functions for date/time in templates ([2b75993](2b75993)), closes [#701](#701)
* Support for localization in templates ([5de2dc9](5de2dc9))

### Bug Fixes

* *_action more-info entity as a template was not evaluated ([02441b2](02441b2)), closes [#734](#734)
* `group_expand` now works even if the entity is not a `group.xxx` ([f192ded](f192ded)), closes [#645](#645)
* Color are now aligned with HA > 2022.12 ([685d55e](685d55e)), closes [#635](#635)
* custom fields would sometime throw unsafeHTML errors ([c67e1d5](c67e1d5)), closes [#725](#725)
* ha-icon (if in custom_fields) size was weird ([a448c8e](a448c8e))
* ha-state-icon CSS selector was wrong ([a1bb39a](a1bb39a))
* icon would be cut with card height defined ([19f8393](19f8393)), closes [#731](#731)
* localization fix ([02dfab3](02dfab3)), closes [#685](#685) [#693](#693)
* lock icon was displaying over more-info dialog ([bf075b0](bf075b0)), closes [#694](#694)
* lock would go out of the button ([0b3e4d3](0b3e4d3))
* non string fiels would error with an unsafeHTML error ([d65c347](d65c347)), closes [#725](#725)
* numerical states would not follow HA's format ([72d7c41](72d7c41)), closes [#662](#662)
* optimize contrast color compute ([35109c3](35109c3))
* relativeTime didn't support to set the first letter uppercase ([f8b9b09](f8b9b09)), closes [#735](#735)
* Some cards with child cards wouldn't be clickable ([9f21c58](9f21c58))
* text/icon contrast when using label-card ([01e199b](01e199b))
* variable which were objects were only evaluated once ([e40bda9](e40bda9))
* **templates:** `variables` was `undefined` if none where provided. ([fad332b](fad332b)), closes [#718](#718)
* tooltip would show over everything ([1bc8f99](1bc8f99))
* **color:** main config `color` was broken ([b93c996](b93c996))
* **hacs:** minimum HA version 2023.7 ([db3b394](db3b394))
* **templates:** don't use the `numeric_precision` from the card config for `localize` in js templates by default ([2cc384f](2cc384f))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants