magico13 / ha-emporia-vue

Home Assistant Integration for Emporia Vue Energy Monitor
MIT License
500 stars 67 forks source link

12 decimal places #310

Open ifuchs opened 2 months ago

ifuchs commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

Same issue since latest update via HACS: firefox_8A50J95zDN

industrial64 commented 2 months ago

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