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

12 decimal places #310

Open
ifuchs opened this issue Sep 14, 2024 · 5 comments
Open

12 decimal places #310

ifuchs opened this issue Sep 14, 2024 · 5 comments

Comments

@ifuchs
Copy link

ifuchs commented Sep 14, 2024

My Lovelace entities card which shows the 1 minute average for my power monitors is, all of a sudden, showing 12 decimal places for each reading. I am running:
Core 2024.9.1
Supervisor 2024.09.1
Operating System 13.1
Emporia Integration 0.9.3.

@sekonicpr
Copy link

Having the same issue using Emporia Integration 0.10 in HA 2024.09.2. Using display precision in sensor setting has not effect.

@den-mac
Copy link

den-mac commented Sep 24, 2024

Happening for me too. Not sure what happened but this is a newly introduced bug.

Firefox_Screenshot_2024-09-24T00-27-52 622Z

@den-mac
Copy link

den-mac commented Sep 24, 2024

Well I use custom button cards everywhere and they support javascript, so that's my fix :-)

      - type: custom:button-card
        entity: sensor.smart_meter_123_1min
        name: |
          [[[
            var raw = (entity.state)
            var power = Math.round(raw * 10) / 10
            return "Meter " + power + " W"
          ]]]
        color: auto
        styles:
          name:
            - font-family: OpenSans-Medium
        template: standard
        show_state: false
        show_name: true
        show_icon: false
        tap_action:
          action: more-info

Firefox_Screenshot_2024-09-24T00-44-21 591Z

@industrial64
Copy link

Same issue since latest update via HACS:
firefox_8A50J95zDN

@industrial64
Copy link

Reverting to 0.9.3 solved the problem - too many custom cards to do it kludge.

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

4 participants