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

Add support for Chanfok ceiling fan with light

Issue #546
Jason Rumney 2 лет назад
Родитель
Сommit
dd50e7cb1f
3 измененных файлов с 67 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 65 0
      custom_components/tuya_local/devices/chanfok_fan_light.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -223,3 +223,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [M4R7IN5](https://github.com/M4R7IN5) for assisting with support for Lenovo E1 vacuum cleaners.
 - [M4R7IN5](https://github.com/M4R7IN5) for assisting with support for Lenovo E1 vacuum cleaners.
 - [pmazz](https://github.com/pmazz) for contributing Italian translations.
 - [pmazz](https://github.com/pmazz) for contributing Italian translations.
 - [thewolf-oz](https://github.com/thewolf-oz) for assisting with support for Arlec 12-speed tower fans, 6-speed floor fans and 19-speed wall fans.
 - [thewolf-oz](https://github.com/thewolf-oz) for assisting with support for Arlec 12-speed tower fans, 6-speed floor fans and 19-speed wall fans.
+- [dhuddle](https://github.com/dhuddle) for assisting with support for Chanfok ceiling fan with light.

+ 1 - 0
DEVICES.md

@@ -104,6 +104,7 @@
 - Arlec 19 speed wall fan
 - Arlec 19 speed wall fan
 - Arlec 6 speed floor fan
 - Arlec 6 speed floor fan
 - Aspen ASP 200 fan
 - Aspen ASP 200 fan
+- Chanfok ceiling fan with cool/warm white dimmable light
 - Deta fan controller
 - Deta fan controller
 - Fanco Eco Silent Deluxe ceiling fan with LED light
 - Fanco Eco Silent Deluxe ceiling fan with LED light
 - Goldair GCPF315 fan
 - Goldair GCPF315 fan

+ 65 - 0
custom_components/tuya_local/devices/chanfok_fan_light.yaml

@@ -0,0 +1,65 @@
+name: Chanfok ceiling fan
+products:
+  - id: tvtzgei8bgaezsvi
+    name: JST-DC-WYfen
+primary_entity:
+  entity: fan
+  dps:
+    - id: 60
+      type: boolean
+      name: switch
+    - id: 61
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: fresh
+          value: Fresh
+        - dps_val: nature
+          value: Natural
+    - id: 62
+      type: integer
+      name: speed
+      range:
+        min: 1
+        max: 6
+      mapping:
+        - scale: 0.06
+    - id: 63
+      type: string
+      name: direction
+    - id: 101
+      type: boolean
+      name: unknown_101
+secondary_entities:
+  - entity: light
+    dps:
+      - id: 20
+        type: boolean
+        name: switch
+      - id: 22
+        name: brightness
+        type: integer
+        range:
+          min: 10
+          max: 1000
+      - id: 23
+        name: color_temp
+        type: integer
+        range:
+          min: 0
+          max: 1000
+      - id: 28
+        name: control_data
+        type: hex
+        optional: true
+  - entity: switch
+    name: Beep
+    icon: "mdi:bell"
+    category: config
+    dps:
+      - id: 66
+        type: boolean
+        name: switch
+
+
+