ソースを参照

add support for cecotec fan light

Alejandro Soto Aguilera 2 年 前
コミット
2dd90fd454
1 ファイル変更104 行追加0 行削除
  1. 104 0
      custom_components/tuya_local/devices/cecotec_fan_light.yaml

+ 104 - 0
custom_components/tuya_local/devices/cecotec_fan_light.yaml

@@ -0,0 +1,104 @@
+name: Cecotec fan with light
+products:
+  - id: 9uydeea5iojq3msy
+    name: Cecotec AQUA CONNECTED
+primary_entity:
+  entity: fan
+  translation_key: fan_with_presets
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 2
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: nature
+          value: nature
+        - dps_val: sleep
+          value: sleep
+        - dps_val: fresh
+          value: fresh
+        - dps_val: smart
+          value: smart
+        - dps_val: custom
+          value: custom
+    - id: 3
+      name: speed
+      type: string
+      range:
+        min: 1
+        max: 6
+      mapping:
+        - dps_val: "1"
+          value: 17
+        - dps_val: "2"
+          value: 33
+        - dps_val: "3"
+          value: 50
+        - dps_val: "4"
+          value: 67
+        - dps_val: "5"
+          value: 83
+        - dps_val: "6"
+          value: 100
+    - id: 8
+      name: direction
+      type: string
+secondary_entities:
+  - entity: light
+    dps:
+      - id: 15
+        type: boolean
+        name: switch
+      - id: 16
+        type: integer
+        name: brightness
+        range:
+          min: 25
+          max: 255
+      - id: 17
+        type: integer
+        name: color_temp
+        range:
+          min: 0
+          max: 255
+      - id: 19
+        type: string
+        name: color_mode
+        optional: true
+        mapping:
+          - dps_val: white
+            value: white
+          - dps_val: warm
+            value: warm
+          - dps_val: cold
+            value: cold
+          - dps_val: night
+            value: night
+  - entity: select
+    name: timer
+    icon: "mdi:timer"
+    dps:
+      - id: 22
+        name: option
+        type: string
+        mapping:
+          - dps_val: "cancel"
+            value: "cancel"
+          - dps_val: "1h"
+            value: "1 hours"
+          - dps_val: "2h"
+            value: "2 hours"
+          - dps_val: "3h"
+            value: "3 hours"
+          - dps_val: "4h"
+            value: "4 hours"
+          - dps_val: "5h"
+            value: "5 hours"
+          - dps_val: "6h"
+            value: "6 hours"
+          - dps_val: "7h"
+            value: "7 hours"
+          - dps_val: "8h"
+            value: "8 hours"