Parcourir la source

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

Jason Rumney il y a 2 ans
Parent
commit
08e26793de
1 fichiers modifiés avec 10 ajouts et 1 suppressions
  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