4
0
Эх сурвалжийг харах

Add support for Create ceiling fan with light

Issue #2175
Jason Rumney 1 жил өмнө
parent
commit
7cdfa31516

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -647,3 +647,4 @@ Further device support has been made with the assistance of users. Please consid
 - [azdinet](https://github.com/azdinet) for assisting with support for TS106 alarm system.
 - [deguchi-m](https://github.com/deguchi-m) for assisting with support for Dual CT clamp bidirectional energy meters.
 - [sciux2](https://github.com/sciux2) for assisting with support for RSE TY-WFH gate controller.
+- [schmurgel-tg](https://github.com/schmurgel-tg) for assisting with support for Create ceiling fan with light.

+ 1 - 0
DEVICES.md

@@ -208,6 +208,7 @@
 - Cecotec ceiling fan with light
 - Chanfok ceiling fan with cool/warm white dimmable light
 - CleanAir 604B humidifier
+- Create XW-FAN-215-D ceiling fan with light
 - Depauley WS-FPZ37-18I-EU ceiling fan with light
 - Deta fan controller
 - Djive ARC humidifying fan

+ 56 - 0
custom_components/tuya_local/devices/create_fan_light.yaml

@@ -0,0 +1,56 @@
+name: Ceiling fan with light
+products:
+  - id: p8z27dfdwc4riyp9
+    name: Create XW-FAN-215-D
+primary_entity:
+  entity: fan
+  dps:
+    - id: 60
+      type: boolean
+      name: switch
+    - id: 62
+      type: integer
+      name: speed
+      range:
+        min: 1
+        max: 6
+    - id: 63
+      type: string
+      name: direction
+secondary_entities:
+  - entity: light
+    dps:
+      - id: 20
+        type: boolean
+        name: switch
+      - id: 21
+        name: work_mode
+        type: string
+        optional: true
+      - id: 23
+        name: color_temp
+        type: integer
+        range:
+          min: 0
+          max: 1000
+        mapping:
+          - target_range:
+              min: 2700
+              max: 6500
+            step: 500
+      - id: 25
+        name: scene_data
+        type: string
+        optional: true
+  - entity: number
+    translation_key: timer
+    category: config
+    dps:
+      - id: 64
+        type: integer
+        optional: true
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 540