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

Fanco Eco silent: add direction control and timer, uninvert color temp

Issue #399
Jason Rumney 3 лет назад
Родитель
Сommit
f7234888fc
1 измененных файлов с 31 добавлено и 1 удалено
  1. 31 1
      custom_components/tuya_local/devices/fanco_ecosilentdeluxe.yaml

+ 31 - 1
custom_components/tuya_local/devices/fanco_ecosilentdeluxe.yaml

@@ -16,6 +16,9 @@ primary_entity:
         max: 6
       mapping:
         - scale: 0.06
+  - id: 8
+    name: direction
+    type: string
 secondary_entities:
   - entity: light
     dps:
@@ -36,5 +39,32 @@ secondary_entities:
         range:
           min: 0
           max: 1000
+  - entity: select
+    name: Timer
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 22
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: Cancel
+          - dps_val: "1"
+            value: "1 hour"
+          - dps_val: "2"
+            value: "2 hours"
+          - dps_val: "3"
+            value: "3 hours"
+          - dps_val: "4"
+            value: "4 hours"
+  - entity: sensor
+    name: Timer
+    category: diagnostic
+    dps:
+      - id: 24
+        type: integer
+        name: sensor
+        unit: min
         mapping:
-          - invert: true
+          - scale: 60