Просмотр исходного кода

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 3 лет назад
Родитель
Сommit
613b877aef
1 измененных файлов с 3 добавлено и 13 удалено
  1. 3 13
      custom_components/tuya_local/devices/hysen_hy08acf_thermostat.yaml

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

@@ -104,6 +104,9 @@ secondary_entities:
       - id: 7
         type: boolean
         name: lock
+      - id: 105
+        type: string
+        name: lock_type
   - entity: binary_sensor
     name: Fault
     class: problem
@@ -170,19 +173,6 @@ secondary_entities:
         range:
           min: 5
           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
     name: Fan ECO
     category: config