Przeglądaj źródła

feat: add support for variant of Chanfok fan and light

Issue #3417
Jason Rumney 7 miesięcy temu
rodzic
commit
a1d7b9fb1c

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -992,3 +992,4 @@ Further device support has been made with the assistance of users. Please consid
 - [damru](https://github.com/damru) for contributing improvements to Windcalm fans.
 - [sam7567](https://github.com/sam7567) for assisting with support for Roomratv ceiling fan with light.
 - [mikeblackk](https://github.com/mikeblackk) for assisting with support for Madimack Elite V4 pool heat pump.
+- [vincedarley](https://github.com/vincedarley) for assisting with support for a second variant of Chanfok ceiling fan and light.

+ 1 - 1
DEVICES.md

@@ -259,7 +259,7 @@
 - Casafan ECO Neo III ceiling fan with light
 - Cecotec ceiling fan with light
 - Chameleon TCG 100cm tower fan
-- Chanfok ceiling fan with cool/warm white dimmable light
+- Chanfok ceiling fan with cool/warm white dimmable light (2 variants)
 - ComfortZone Powr Curve stand fan
 - Create XW-FAN-215-D ceiling fan with light (dimming and non-dimming variants)
 - Depauley WS-FPZ37-18I-EU ceiling fan with light

+ 78 - 0
custom_components/tuya_local/devices/chanfok_ceiling_fanlight.yaml

@@ -0,0 +1,78 @@
+name: Ceiling fan
+products:
+  - id: yos17rcreaqlpi5i
+    manufacturer: Chanfok
+entities:
+  - entity: fan
+    translation_only_key: fan_with_presets
+    dps:
+      - id: 107
+        type: boolean
+        name: switch
+      - id: 106
+        type: string
+        name: preset_mode
+        mapping:
+          - dps_val: fresh
+            value: fresh
+          - dps_val: nature
+            value: nature
+      - id: 105
+        type: integer
+        name: speed
+        range:
+          min: 1
+          max: 6
+      - id: 104
+        type: string
+        name: direction
+  - entity: light
+    dps:
+      - id: 20
+        type: boolean
+        name: switch
+      - id: 21
+        name: work_mode
+        type: string
+        optional: true
+      - id: 22
+        name: brightness
+        type: integer
+        range:
+          min: 10
+          max: 1000
+      - id: 23
+        name: color_temp
+        type: integer
+        range:
+          min: 0
+          max: 1000
+        mapping:
+          - target_range:
+              min: 2700
+              max: 6500
+  - entity: text
+    name: Light control
+    category: config
+    icon: "mdi:tune-vertical"
+    hidden: true
+    dps:
+      - id: 28
+        type: string
+        name: value
+        optional: true
+  - entity: switch
+    name: Beep
+    icon: "mdi:bell"
+    category: config
+    dps:
+      - id: 101
+        type: boolean
+        name: switch
+  - entity: light
+    translation_key: nightlight
+    category: config
+    dps:
+      - id: 53
+        type: boolean
+        name: switch

+ 1 - 1
custom_components/tuya_local/devices/chanfok_fan_light.yaml

@@ -2,7 +2,7 @@ name: Ceiling fan
 products:
   - id: tvtzgei8bgaezsvi
     manufacturer: Chanfok
-    name: JST-DC-WYfen
+    model: JST-DC-WYfen
 entities:
   - entity: fan
     translation_only_key: fan_with_presets