#Widget wrong printing of sensor value with lots of decimals

1 messages · Page 1 of 1 (latest)

dense forge
#

Does anyone know if it is possible to fix the charging box printing in the widget so that it shows the same in home assistant 5.38 instead of a thousand decimal places. Don't understand why it does that as it is changed from the same day I integrate the charging box and the sensor. However, print is from the dashboard and the consumption flow I have there. Maybe it is possible to hard code so that the widget also works? But all the others show the right sensors there. Strange

upper harness
#

I have the same problem after the upgrade to 2024.12.1, some translations is wrong and no units in measurement, a lot of decimals and so on

upper harness
#

Inställningar -> tillhörande app -> felsökning

umbral joltBOT
#
Rule 3

No typing in any other language than English; we cannot moderate different languages.

golden fulcrum
#

states('sensor.blahblahblah' , rounded=true)

upper harness
#

It’s only in the app

crisp heath
#

And anyone else that comes across this thread can't help because they have no idea what you've already tried.

#

English is the language of this discord for a reason, follow the rules.

dense forge
#

Anders.Nilsson
TS
— Idag 06:03
The first post remains in the correct language and the problem is not solved havent tried anything

dense forge
#

@upper harnessRemove your post in swedish, i have removed mine 😄

golden fulcrum
#

It will apply the 2 decimal place rounding you set up in the ui to the use of it in the template

dense forge
#

I dont now how to apply the code and what i should take?

golden fulcrum
#

You can also use the with_unit=true optional argument to get it printed rather than having to write it manually as you have done

dense forge
#

Temple a number?

golden fulcrum
#

The 2nd last screenshot you shared

#

Laddbox: {{...

dense forge
golden fulcrum
#

You still need to put it in the {{}}...

dense forge
#

The temperature is 25 °C.

The sun rose 2 hours ago.

For loop example getting entity values in the weather domain:

The home is cloudy.
5.84

#

Yes so now it should be right in my widget?

#

It not, should i restart HA?

golden fulcrum
#

It should be right wherever you use that code

#

It doesn't change it everywhere

dense forge
#

Cant update with The New code

golden fulcrum
#

You have put a extra ' after true

#

Delete it

dense forge
#

❤️