فهرست منبع

Dowell EV charger: make Total daily charge a sensor

- as per comment, total daily is a sensor
- rename Single charge to Latest charge to reflect it is most recent (or current?) charge (Last charge was also considered, but can be interpreted to exclude the current charge cycle)

PR #3299
Jason Rumney 9 ماه پیش
والد
کامیت
f34ef7fa2a
1فایلهای تغییر یافته به همراه2 افزوده شده و 5 حذف شده
  1. 2 5
      custom_components/tuya_local/devices/dowell_dchs-k7_32_7kw_ev_charger.yaml

+ 2 - 5
custom_components/tuya_local/devices/dowell_dchs-k7_32_7kw_ev_charger.yaml

@@ -344,7 +344,7 @@ entities:
           max: 99999999
         mapping:
           - scale: 100
-  - entity: number
+  - entity: sensor
     name: Total daily charge
     category: diagnostic
     class: energy_storage
@@ -354,9 +354,6 @@ entities:
         optional: true
         name: value
         unit: kWh
-        range:
-          min: 1
-          max: 20000000
         mapping:
           - scale: 100
   - entity: number
@@ -374,7 +371,7 @@ entities:
           min: 1
           max: 1440
   - entity: sensor
-    name: Single charge
+    name: Latest charge
     class: energy_storage
     dps:
       - id: 25    # charge_energy_once