Parcourir la source

Hysen HY08ACF: move child lock type to an attribute on child lock.

This does not seem to be editable as advertised in iot.tuya.com description.
Even in the Tuya app, changing it does nothing, and it just seems to be
reflecting a setting made from the device panel.  As it is not very useful,
demote it to an attribute on the related child lock entity.

Issue #343
Jason Rumney il y a 3 ans
Parent
commit
613b877aef

+ 3 - 13
custom_components/tuya_local/devices/hysen_hy08acf_thermostat.yaml

@@ -104,6 +104,9 @@ secondary_entities:
       - id: 7
       - id: 7
         type: boolean
         type: boolean
         name: lock
         name: lock
+      - id: 105
+        type: string
+        name: lock_type
   - entity: binary_sensor
   - entity: binary_sensor
     name: Fault
     name: Fault
     class: problem
     class: problem
@@ -170,19 +173,6 @@ secondary_entities:
         range:
         range:
           min: 5
           min: 5
           max: 15
           max: 15
-  - entity: select
-    name: Child lock type
-    category: config
-    icon: "mdi:hand-back-right-off"
-    dps:
-      - id: 105
-        type: string
-        name: option
-        mapping:
-          - dps_val: lockfull
-            value: Full lock
-          - dps_val: lockhalf
-            value: Semi lock
   - entity: switch
   - entity: switch
     name: Fan ECO
     name: Fan ECO
     category: config
     category: config