Преглед изворни кода

Add support for Eglo ceiling fan

Almost the same as Windcalm, except its speeds are -1 to 5 instead of
0 to 6, with -1 being an extra slow "night" mode.

Issue #1492
Jason Rumney пре 2 година
родитељ
комит
4a74cebcf2
3 измењених фајлова са 42 додато и 1 уклоњено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 2 1
      DEVICES.md
  3. 39 0
      custom_components/tuya_local/devices/eglo_ceiling_fan.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -469,3 +469,4 @@ Further device support has been made with the assistance of users. Please consid
 - [GreenSkol](https://github.com/GreenSkol) for contributing support for ETOP FCU thermostats.
 - [drewpo28](https://github.com/drewpo28) for contributing support for WeatheerStation Pro
 - [ninjajim17](https://github.com/ninjajim17) for assisting with support for Carro humidifiers.
+- [AnthonyBe](https://github.com/AnthonyBe) for assisting with support for Eglo ceiling fans.

+ 2 - 1
DEVICES.md

@@ -173,6 +173,7 @@
 - Deta fan controller
 - Djive ARC humidifying fan
 - Duux Whisper Flex pedestal fan
+- Eglo 5 speed + sleep ceiling fan 
 - Fanco Eco Silent Deluxe ceiling fan with LED light
 - Goldair GCPF315 fan
 - Goldair Platinum tower fan (2 variants)
@@ -192,7 +193,7 @@
 - TMWF02 fan controller
 - Treatlife DS02-F fan switch
 - Treatlife DS03 fan with dimmable light
-- Windcalm ceiling fans with and without cool.warm white dimmable light
+- Windcalm ceiling fans with and without cool/warm white dimmable light
 - Yidi/NHZS fan and light wall switch
 
 ### Air Purifiers

+ 39 - 0
custom_components/tuya_local/devices/eglo_ceiling_fan.yaml

@@ -0,0 +1,39 @@
+name: Ceiling fan
+products:
+  - id: k8j78n65zeu3orz7
+    name: Eglo Surf
+primary_entity:
+  entity: fan
+  dps:
+    - id: 60
+      type: boolean
+      name: switch
+    - id: 62
+      type: integer
+      name: speed
+      mapping:
+        - dps_val: 0
+          value: 0
+        - dps_val: 1
+          value: 20
+        - dps_val: 2
+          value: 40
+        - dps_val: 3
+          value: 60
+        - dps_val: 4
+          value: 80
+        - dps_val: 5
+          value: 100
+          # Sleep mode - extra slow
+        - dps_val: -1
+          value: 10
+    - id: 63
+      type: string
+      name: direction
+    - id: 64
+      type: integer
+      name: timer
+      range:
+        min: 0
+        max: 540
+      unit: min