-
Notifications
You must be signed in to change notification settings - Fork 31
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
Temperatures showing many digits after the decimal #45
Comments
Found it! The units setting in the config was set to |
So I guess this wasn't the problem since the temps have still been showing many digits. This is from the log...
|
I can have the add-on round the temp. I'm testing to see if using the suggested display precision attribute can handle this. I'm a little worried about using round in the device mapping since that will remove the precision. Not that we need 4 decimals of precision for smart home use cases. It's more of if I do it, it removes it for everyone. So let me test some things. If I can force HA to respect my authority as Cartman says, then I'll will round it. |
lol yes, Cartman's authoritay! I don't know how much you'd want to change, you make a good point about it removing the digits for everyone. That might be undesirable for some. In my experience, anything past the 2nd digit of the decimal is junk anyways but I don't know if there's sensors out there that would give that accurate of a resolution. In the time since I wrote this issue, HA was updated to easily set the display precision for each sensor. I have been using that feature and noticed no more multiple digits. This might be the ideal way to handle it since it can be done on a per sensor basis at the desire of each individual user whereas if we stuck to the rounding in the add-on, then all sensors would be bound to it for everybody. Maybe it's best to keep it the way it currently is? |
Sometimes the temperatures displayed in HA will be shown with an obnoxious amount of numbers after the decimal.
Has anyone else seen this behavior?
I know I can create template sensors in HA where I can round these values but it would be nice if the add-on handled this. Maybe adding some
|round(1)
's to the script would do the trick?The text was updated successfully, but these errors were encountered: