소스 검색

Add support for Casafan ceiling fan with light.

Issue #999
Jason Rumney 2 년 전
부모
커밋
9714ea8a01
3개의 변경된 파일79개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 77 0
      custom_components/tuya_local/devices/casafan_ceiling_fan_light.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -353,3 +353,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [Ilyapempel](https://github.com/Ilyapempel) for assisting with support for Momland/Loycco sound machine nightlights, and Kojima motion sensor RGBCW nightlight.
 - [Ilyapempel](https://github.com/Ilyapempel) for assisting with support for Momland/Loycco sound machine nightlights, and Kojima motion sensor RGBCW nightlight.
 - [tatopotatov](https://github.com/tatopotatov) for assisting with support for Royal Sovereign mini split air conditioners.
 - [tatopotatov](https://github.com/tatopotatov) for assisting with support for Royal Sovereign mini split air conditioners.
 - [whit-tj](https://github.com/whit-tj) for contributing support for Carro ceiling fan with warm and cool lights.
 - [whit-tj](https://github.com/whit-tj) for contributing support for Carro ceiling fan with warm and cool lights.
+- [k-welker](https://github.com/k-welker) for contributing support for Casafan ECO Neo III ceiling fan with light.

+ 1 - 0
DEVICES.md

@@ -130,6 +130,7 @@
 - Atomi 52 inch ceiling fan
 - Atomi 52 inch ceiling fan
 - Carro ceiling fan with cool and warm white lights
 - Carro ceiling fan with cool and warm white lights
 - Carro PN-04F02D fan with dimmable light
 - Carro PN-04F02D fan with dimmable light
+- Casafan ECO Neo III ceiling fan with light
 - Chanfok ceiling fan with cool/warm white dimmable light
 - Chanfok ceiling fan with cool/warm white dimmable light
 - Deta fan controller
 - Deta fan controller
 - Djive ARC humidifying fan
 - Djive ARC humidifying fan

+ 77 - 0
custom_components/tuya_local/devices/casafan_ceiling_fan_light.yaml

@@ -0,0 +1,77 @@
+name: Ceiling fan and light
+products:
+  - id: qx9ovwpe9isccpb6
+    name: Casafan ECO Neo III
+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_off
+          value: normal
+        - dps_val: nature_Low
+          value: nature
+        - dps_val: nature_Hi
+          value: strong
+    - id: 3
+      type: integer
+      name: speed
+      range:
+        min: 1
+        max: 6
+      mapping:
+        - scale: 0.06
+    - id: 8
+      type: string
+      name: direction
+secondary_entities:
+  - entity: light
+    dps:
+      - id: 15
+        type: boolean
+        name: switch
+      - id: 16
+        name: brightness
+        type: integer
+        range:
+          min: 10
+          max: 100
+        mapping:
+          - scale: 0.392
+      - id: 17
+        # 17 is listed as color_temp, and reported by the device, but light is fixed 3000K light
+        name: reserved_color_temp
+        type: integer
+        range:
+          min: 0
+          max: 100
+  - entity: select
+    name: Timer
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 22
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancel
+            value: "Off"
+          - dps_val: "1h"
+            value: "1 hour"
+          - 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"
+