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

Display float numbers without truncating #14

Open
robchandhok opened this issue Jul 14, 2021 · 1 comment
Open

Display float numbers without truncating #14

robchandhok opened this issue Jul 14, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@robchandhok
Copy link

I have a battery sensor that is a voltage, not a percentage, and want to show "2.65" for example, and compare to that. It is truncated/turned into an int, so it is always shown as "2". can't see a way to change that.

The ask is to handle float values for non-percent, including comparisons to critical etc.

Example desired config:

  - type: custom:battery-entity-row
    entity: sensor.smartweather_battery
    name: Smartweather Battery
    unit: volts
    warning: 2.5
    critical: 1.95

thanks for considering!

@benct benct added the enhancement New feature or request label Dec 14, 2021
@bschatzow
Copy link

I have a battery that for my generator that reads between 13.1 to 13.4V for fully charged. This value is truncated as well. Please consider adding this for different battery readings.

Thanks.

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

No branches or pull requests

3 participants