Explorar el Código

SmartplugV2 EnergyV3: add support for UNSH breaker switches

Issue #1537

 - lacking child lock (markeed optional)
 - lacking overcharge protection (already optional)
 - additional temperature sensor (added as optional)
Jason Rumney hace 2 años
padre
commit
98f9b46d9a
Se han modificado 1 ficheros con 13 adiciones y 0 borrados
  1. 13 0
      custom_components/tuya_local/devices/smartplugv2_energyv3.yaml

+ 13 - 0
custom_components/tuya_local/devices/smartplugv2_energyv3.yaml

@@ -6,6 +6,8 @@ products:
     name: Elivco CB2S-16DL
   - id: 3lbgj7cu27nsmh0w
     name: AT-Q-SY2-JWT
+  - id: cipuwutzfuqk3iru
+    name: UNSH SMKG-KNL
 primary_entity:
   entity: switch
   class: outlet
@@ -146,6 +148,7 @@ secondary_entities:
       - id: 41
         type: boolean
         name: lock
+        optional: true
   - entity: select
     name: Light mode
     category: config
@@ -171,3 +174,13 @@ secondary_entities:
         type: boolean
         name: switch
         optional: true
+  - entity: sensor
+    class: temperature
+    category: diagnostic
+    dps:
+      - id: 47
+        type: integer
+        optional: true
+        name: sensor
+        unit: C
+        class: measurement