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

Entity precision ignored #13

Closed
2 tasks done
WoBBeLnl opened this issue May 9, 2023 · 5 comments
Closed
2 tasks done

Entity precision ignored #13

WoBBeLnl opened this issue May 9, 2023 · 5 comments

Comments

@WoBBeLnl
Copy link
Contributor

WoBBeLnl commented May 9, 2023

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue: 1.10 & 1.2.0

Last working release (if known): None

Browser and Operating System: Multiple systems/browsers including Android Companion App

Description of problem:

The precision set for my Max UV Index (see screenshots) gets ignored by the UV index card. I have rounded the entity but it still shows on the card, HA itself shows it rounded to 1 decimal (as configured).

uv1
uv2

@WoBBeLnl WoBBeLnl added the bug Something isn't working label May 9, 2023
@t1gr0u
Copy link
Owner

t1gr0u commented May 9, 2023

@WoBBeLnl the card doesn't manipulate the entity, it display what it receives.
How do you set the precision on the entity?
Do you set a new entity?
What value do you get when viewing the entity in the developer tools --> states?

@WoBBeLnl
Copy link
Contributor Author

WoBBeLnl commented May 10, 2023

How do you set the precision on the entity?

  • I've set it via Settings -> Devices & Services -> Entities -> click on entity -> change entity -> set precision (see screenshot)

Do you set a new entity?

  • No, I've set the precision for the "Max UV Index". This entity is added/updated by the "OpenUV" integration.

What value do you get when viewing the entity in the developer tools --> states?

  • It shows the exact state, ignoring my display precision setting. (see screenshot)

I've added a few screenshots chaning my HA to English.

https://developers.home-assistant.io/blog/2023/02/08/sensor_presentation_rounding
Released 2023.2 https://www.home-assistant.io/blog/2023/02/01/release-20232/
Some more info https://www.home-assistant.io/blog/2023/03/01/release-20233/#sensor-display-precision

Not sure how a addon works, but with templating you can choose to use the rounding.
https://www.home-assistant.io/docs/configuration/templating/#formatting-sensor-states

entity_configuration
states

@t1gr0u
Copy link
Owner

t1gr0u commented May 10, 2023

@WoBBeLnl thank you will try and have a look :)

@t1gr0u
Copy link
Owner

t1gr0u commented May 10, 2023

@WoBBeLnl I had a look and here are my findings:
I installed the OpenUV integration and added precision to the Max UV Index
Screenshot 2023-05-10 at 21 52 49

Then added some debug to the code and this is what I get back from the entity:
Screenshot 2023-05-10 at 21 52 14

As you can see, the precision value is not returned :( and I haven't got a way to get this value.

@t1gr0u t1gr0u removed the bug Something isn't working label May 10, 2023
@WoBBeLnl
Copy link
Contributor Author

Ah thats a bummer. HA is not providing, thats a bummer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants