Explorar el Código

Child lock is usually represented as a lock, see other configs for the common implementation

latel hace 2 años
padre
commit
828b384c07

+ 8 - 3
custom_components/tuya_local/devices/soleusair_air_purifier.yaml

@@ -60,13 +60,18 @@ secondary_entities:
       - id: 6
       - id: 6
         type: boolean
         type: boolean
         name: switch
         name: switch
-  - entity: switch
-    name: child_lock
+  - entity: lock
+    name: Child lock
     category: config
     category: config
     dps:
     dps:
       - id: 7
       - id: 7
         type: boolean
         type: boolean
-        name: switch
+        name: lock
+        mapping:
+          - dps_val: false
+            icon: "mdi:hand-back-right"
+          - dps_val: true
+            icon: "mdi:hand-back-right-off"
   - entity: switch
   - entity: switch
     name: uv
     name: uv
     category: config
     category: config