-
Notifications
You must be signed in to change notification settings - Fork 66
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
Value 0 shown as 0.0 #335
Comments
I would suggest you to check the entity’s state in Dev tools after HA boot and after turning on/ off. |
What I discovered is that "lovelace-multiple-entity-row" is using the decimals for "0" provided by Home Assistant so it seems the number of decimals after 0 is a value that come back from Home Assistant per each specific entity. Anyway, if in some way can be possible to "force" the number of decimals to use when the value is zero it will be very usefull. Thanks. EDIT: |
Hello.
I use "lovelace-multiple-entity-row" mainly to show switches to turn on and turn off lights and see as second entity the power (in Watt).
See here:
As you can see, when the switches are off the Power value is 0.0 W (this is the default when Home Assistant boot/starts).
If I turn on the switch I can see the Power value in watt (using the default entity decimals) but when I turn off the Power value becomes 0 W (and so not more 0.0 W).
See here:
So it seems that by default (when Home Assistant boot/starts) the default value is "0.0" but after a value changes and when it come back to zero, it changes from "0.0" to "0".
Well, is it possible to always show "0" and not "0.0" or "0.00" when the value is 0 and have one or more 0 decimals?
Thanks.
The text was updated successfully, but these errors were encountered: