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

Improvements to dehumidifier config based on testing and work in progress.

- Fix mapping of defrosting attribute.
- Set range and steps of dehumidifier.
Jason Rumney 4 лет назад
Родитель
Сommit
b91c4528e5
1 измененных файлов с 9 добавлено и 4 удалено
  1. 9 4
      custom_components/tuya_local/devices/goldair_dehumidifier.yaml

+ 9 - 4
custom_components/tuya_local/devices/goldair_dehumidifier.yaml

@@ -33,6 +33,11 @@ primary_entity:
     - id: 4
     - id: 4
       type: integer
       type: integer
       name: humidity
       name: humidity
+      range:
+        min: 30
+        max: 80
+      mapping:
+        - step: 5
     - id: 5
     - id: 5
       type: boolean
       type: boolean
       name: air_clean_on
       name: air_clean_on
@@ -74,10 +79,10 @@ primary_entity:
       type: boolean
       type: boolean
       name: defrosting
       name: defrosting
       mapping:
       mapping:
-        dps_val: true
-        icon: "mdi:snowflake-melt"
-        icon_priority: 2
-      readonly: true
+        - dps_val: true
+          icon: "mdi:snowflake-melt"
+          icon_priority: 2
+          readonly: true
 secondary_entities:
 secondary_entities:
   - entity: light
   - entity: light
     name: Panel Light
     name: Panel Light