Browse Source

SmartplugV2 EnergyV2 make Moes support official

Make this fully match the Moes smartplug by adding optional overcharge
cutoff switch and attributes for cycle_timer and inching.

Issue #1409
Jason Rumney 2 years ago
parent
commit
c7720e14ff
1 changed files with 18 additions and 0 deletions
  1. 18 0
      custom_components/tuya_local/devices/smartplugv2_energyv2.yaml

+ 18 - 0
custom_components/tuya_local/devices/smartplugv2_energyv2.yaml

@@ -4,6 +4,8 @@ products:
     name: Tongou TO-Q-SY1-JWT
   - id: jdj6ccklup7btq3a
     name: AT-Q-SY1-JWT DIN rail switch
+  - id: w906qkrrhd3otiwd
+    name: Moes ME322
 primary_entity:
   entity: switch
   class: outlet
@@ -19,9 +21,17 @@ primary_entity:
       type: bitfield
       name: fault_code
     - id: 42
+      type: string
+      name: cycle_timer
+      optional: true
+    - id: 43
       type: string
       name: random_timer
       optional: true
+    - id: 44
+      type: string
+      name: inching
+      optional: true
 secondary_entities:
   - entity: number
     category: config
@@ -124,6 +134,14 @@ secondary_entities:
             value: "Off"
           - dps_val: memory
             value: "Last State"
+  - entity: switch
+    name: Overcharge protection
+    category: config
+    dps:
+      - id: 39
+        type: boolean
+        name: switch
+        optional: true
   - entity: lock
     name: Child lock
     icon: "mdi:hand-back-right-off"