Explorar el Código

Arlec panel heater: implement comment "can be 7" for child lock dp 6

Jason Rumney hace 2 años
padre
commit
08e26793de
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  1. 10 1
      custom_components/tuya_local/devices/arlec_panel_heater.yaml

+ 10 - 1
custom_components/tuya_local/devices/arlec_panel_heater.yaml

@@ -48,9 +48,18 @@ secondary_entities:
     icon: "mdi:hand-back-right-off"
     category: config
     dps:
-      - id: 6 # can be 7
+      - id: 6
         type: boolean
         name: lock
+        # can be 7
+        optional: true
+        mapping:
+          - dps_val: null
+            value_redirect: alternate
+      - id: 7
+        type: boolean
+        optional: true
+        name: alternate
   - entity: number
     name: Timer
     category: config