David Ribeiro 8 месяцев назад
Родитель
Сommit
79e4d171dc

+ 47 - 47
custom_components/tuya_local/devices/dowell_dchs-k7_32_7kw_ev_charger.yaml

@@ -2,14 +2,14 @@ name: EV charger
 products:
   - id: bf2dedfe80f14bc81czzwo
     manufacturer: Dowell Technology Co., Ltd.
-    model: DCHS-K7 #(Dowell iOneAIO ESS - 32A - 7kW)
+    model: DCHS-K7    #(Dowell iOneAIO ESS - 32A - 7kW)
 entities:
   - entity: sensor
     translation_key: status
     icon: "mdi:ev-station"
     class: enum
     dps:
-      - id: 3 # work_state
+      - id: 3    # work_state
         type: string
         name: sensor
         mapping:
@@ -33,21 +33,21 @@ entities:
     name: meter_id
     category: diagnostic
     dps:
-      - id: 22 # meter_id
+      - id: 22    # meter_id
         type: string
         name: sensor
   - entity: sensor
     category: diagnostic
     name: system_version
     dps:
-      - id: 23 # system_version
+      - id: 23    # system_version
         type: string
         name: sensor
   - entity: sensor
     name: Total electricity consumption
     class: energy
     dps:
-      - id: 1 # forward_energy_total
+      - id: 1    # forward_energy_total
         type: integer
         name: sensor
         class: total_increasing
@@ -58,7 +58,7 @@ entities:
     category: diagnostic
     class: battery
     dps:
-      - id: 2 # battery_percentage
+      - id: 2    # battery_percentage
         type: integer
         optional: true
         name: sensor
@@ -70,7 +70,7 @@ entities:
     mode: box
     icon: "mdi:current-ac"
     dps:
-      - id: 4 # charge_cur_set
+      - id: 4    # charge_cur_set
         type: integer
         name: value
         unit: A
@@ -87,7 +87,7 @@ entities:
     mode: box
     icon: "mdi:current-ac"
     dps:
-      - id: 107 # dlb_cur_set
+      - id: 107    # dlb_cur_set
         type: integer
         name: value
         unit: A
@@ -101,7 +101,7 @@ entities:
     class: power
     category: diagnostic
     dps:
-      - id: 9 # power_total
+      - id: 9    # power_total
         type: integer
         optional: true
         name: sensor
@@ -113,17 +113,17 @@ entities:
     class: problem
     category: diagnostic
     dps:
-      - id: 10 # fault
+      - id: 10    # fault
         type: bitfield
         name: sensor
         mapping:
           - dps_val: 0
             value: false
           - value: true
-      - id: 10 # fault
+      - id: 10    # fault
         type: bitfield
         name: fault_code
-      - id: 10 # fault
+      - id: 10    # fault
         type: bitfield
         name: description
         mapping:
@@ -165,7 +165,7 @@ entities:
     class: enum
     category: diagnostic
     dps:
-      - id: 13 # connection_state
+      - id: 13    # connection_state
         type: string
         name: sensor
         mapping:
@@ -188,7 +188,7 @@ entities:
     icon: "mdi:ev-station"
     category: config
     dps:
-      - id: 14 # work_mode
+      - id: 14    # work_mode
         type: string
         optional: true
         name: option
@@ -205,7 +205,7 @@ entities:
       x: A
     class: voltage
     dps:
-      - id: 6 # phase_a
+      - id: 6    # phase_a
         type: base64
         name: sensor
         optional: true
@@ -219,7 +219,7 @@ entities:
       x: A
     class: current
     dps:
-      - id: 6 # phase_a
+      - id: 6    # phase_a
         type: base64
         name: sensor
         optional: true
@@ -233,7 +233,7 @@ entities:
       x: A
     class: power
     dps:
-      - id: 6 # phase_a
+      - id: 6    # phase_a
         type: base64
         name: sensor
         optional: true
@@ -247,7 +247,7 @@ entities:
       x: B
     class: voltage
     dps:
-      - id: 7 # phase_b
+      - id: 7    # phase_b
         type: base64
         name: sensor
         optional: true
@@ -261,7 +261,7 @@ entities:
       x: B
     class: current
     dps:
-      - id: 7 # phase_b
+      - id: 7    # phase_b
         type: base64
         name: sensor
         optional: true
@@ -275,7 +275,7 @@ entities:
       x: B
     class: power
     dps:
-      - id: 7 # phase_b
+      - id: 7    # phase_b
         type: base64
         name: sensor
         optional: true
@@ -289,7 +289,7 @@ entities:
       x: C
     class: voltage
     dps:
-      - id: 8 # phase_c
+      - id: 8    # phase_c
         type: base64
         name: sensor
         optional: true
@@ -303,7 +303,7 @@ entities:
       x: C
     class: current
     dps:
-      - id: 8 # phase_c
+      - id: 8    # phase_c
         type: base64
         name: sensor
         optional: true
@@ -317,7 +317,7 @@ entities:
       x: C
     class: power
     dps:
-      - id: 8 # phase_c
+      - id: 8    # phase_c
         type: base64
         name: sensor
         optional: true
@@ -329,7 +329,7 @@ entities:
     class: temperature
     category: diagnostic
     dps:
-      - id: 24 # temp_current
+      - id: 24    # temp_current
         type: integer
         name: sensor
         unit: C
@@ -339,7 +339,7 @@ entities:
     category: diagnostic
     class: energy_storage
     dps:
-      - id: 15 # balance_energy
+      - id: 15    # balance_energy
         type: integer
         optional: true
         name: value
@@ -354,7 +354,7 @@ entities:
     category: diagnostic
     class: energy_storage
     dps:
-      - id: 17 # energy_charge
+      - id: 17    # energy_charge
         type: integer
         optional: true
         name: value
@@ -370,7 +370,7 @@ entities:
     class: duration
     icon: "mdi:timer"
     dps:
-      - id: 19 # charge_time
+      - id: 19    # charge_time
         type: integer
         optional: true
         name: value
@@ -382,7 +382,7 @@ entities:
     name: Charge energy
     class: energy_storage
     dps:
-      - id: 25 # charge_energy_once
+      - id: 25    # charge_energy_once
         type: integer
         optional: true
         name: sensor
@@ -395,14 +395,14 @@ entities:
   - entity: switch
     icon: "mdi:ev-station"
     dps:
-      - id: 18 # switch
+      - id: 18    # switch
         type: boolean
         name: switch
   - entity: sensor
     name: Charging time
     class: duration
     dps:
-      - id: 101 # charging_time1
+      - id: 101    # charging_time1
         type: base64
         name: sensor
         optional: true
@@ -413,7 +413,7 @@ entities:
     icon: "mdi:cogs"
     category: config
     dps:
-      - id: 102 # mode
+      - id: 102    # mode
         type: string
         optional: true
         name: option
@@ -431,7 +431,7 @@ entities:
     class: current
     category: diagnostic
     dps:
-      - id: 103 # current_limit
+      - id: 103    # current_limit
         type: base64
         optional: true
         name: sensor
@@ -444,7 +444,7 @@ entities:
     class: current
     category: diagnostic
     dps:
-      - id: 103 # current_limit
+      - id: 103    # current_limit
         type: base64
         optional: true
         name: sensor
@@ -457,7 +457,7 @@ entities:
     class: restart
     category: config
     dps:
-      - id: 16 # clear_energy
+      - id: 16    # clear_energy
         type: boolean
         optional: true
         name: button
@@ -465,7 +465,7 @@ entities:
     name: online_state
     category: diagnostic
     dps:
-      - id: 27 # online_state
+      - id: 27    # online_state
         type: string
         optional: true
         name: option
@@ -478,7 +478,7 @@ entities:
     name: rf_enable
     category: config
     dps:
-      - id: 110 # rf_enable
+      - id: 110    # rf_enable
         type: boolean
         optional: true
         name: switch
@@ -486,7 +486,7 @@ entities:
     name: pen_enable
     category: config
     dps:
-      - id: 108 # pen_enable
+      - id: 108    # pen_enable
         type: boolean
         optional: true
         name: switch
@@ -494,17 +494,17 @@ entities:
     class: safety
     category: diagnostic
     dps:
-      - id: 106 # safety_notice
+      - id: 106    # safety_notice
         type: bitfield
         name: sensor
         mapping:
           - dps_val: 0
             value: false
           - value: true
-      - id: 106 # safety_notice
+      - id: 106    # safety_notice
         type: bitfield
         name: fault_code
-      - id: 106 # safety_notice
+      - id: 106    # safety_notice
         type: bitfield
         name: description
         mapping:
@@ -520,7 +520,7 @@ entities:
     name: occp_ip
     category: config
     dps:
-      - id: 104 # occp_ip
+      - id: 104    # occp_ip
         type: string
         optional: true
         name: value
@@ -528,7 +528,7 @@ entities:
     name: occp_port
     category: config
     dps:
-      - id: 105 # occp_port
+      - id: 105    # occp_port
         type: string
         optional: true
         name: value
@@ -536,7 +536,7 @@ entities:
     name: password
     category: config
     dps:
-      - id: 109 # password
+      - id: 109    # password
         type: string
         hidden: true
         optional: true
@@ -545,21 +545,21 @@ entities:
     name: car_binding
     category: config
     dps:
-      - id: 21 # car_binding
+      - id: 21    # car_binding
         type: string
         optional: true
         name: value
   - entity: sensor
     name: alarm_set_1
     dps:
-      - id: 11 # alarm_set_1
+      - id: 11    # alarm_set_1
         type: base64
         name: sensor
         optional: true
   - entity: sensor
     name: alarm_set_2
     dps:
-      - id: 12 # alarm_set_2
+      - id: 12    # alarm_set_2
         type: base64
         name: sensor
-        optional: true
+        optional: true