Ver código fonte

fix(ecopoint_ev_charger): fix scaling on Charging current and energy

Issue #5029

- defaulting of Charging current is omitted, as there is nothing to guarantee the
  value is correct when device does not report anything.
Jason Rumney 9 horas atrás
pai
commit
b1f65d3157

+ 2 - 2
custom_components/tuya_local/devices/ecopoint_ev_charger.yaml

@@ -71,8 +71,6 @@ entities:
         range:
           min: 6
           max: 80
-        mapping:
-          - scale: 10
   - entity: sensor
     class: power
     category: diagnostic
@@ -318,6 +316,8 @@ entities:
         optional: true
         class: measurement
         unit: kWh
+        mapping:
+          - scale: 100
   - entity: switch
     icon: "mdi:ev-station"
     dps: