Explorar el Código

Add support for Skyfan DC fan

Issue #396
Jason Rumney hace 3 años
padre
commit
4495077150
Se han modificado 3 ficheros con 68 adiciones y 0 borrados
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 66 0
      custom_components/tuya_local/devices/skyfan_dc_fan.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -182,3 +182,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [dezinc57](https://github.com/dezinc57) for assistance supporting Fanco ceiling fan and light.
 - [dezinc57](https://github.com/dezinc57) for assistance supporting Fanco ceiling fan and light.
 - [hasio144](https://github.com/hasio144) for assistance supporting WF96L water level controllers.
 - [hasio144](https://github.com/hasio144) for assistance supporting WF96L water level controllers.
 - [boekerolli](https://github.com/boekerolli) for assistance supporting VisorTech smoke alarms.
 - [boekerolli](https://github.com/boekerolli) for assistance supporting VisorTech smoke alarms.
+- [ruaandeysel](https://github.com/ruaandeysel) for assistance supporting Skyfan DC fans.

+ 1 - 0
DEVICES.md

@@ -101,6 +101,7 @@
 - Goldair GCPF315 fan
 - Goldair GCPF315 fan
 - Ledkia fan and light controller
 - Ledkia fan and light controller
 - Lexy F501 fan
 - Lexy F501 fan
+- Skyfan DC fan
 - Stirling FS1-40DC pedestal fan
 - Stirling FS1-40DC pedestal fan
 - TMWF02 fan controller
 - TMWF02 fan controller
 - Treatlife DS02-F fan switch
 - Treatlife DS02-F fan switch

+ 66 - 0
custom_components/tuya_local/devices/skyfan_dc_fan.yaml

@@ -0,0 +1,66 @@
+name: Skyfan DC fan
+product:
+  - id: vzj97d3m05yjhchn
+primary_entity:
+  entity: fan
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 2
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: smart
+          value: Normal
+        - dps_val: nature
+          value: Nature
+        - dps_val: sleep
+          value: Sleep
+    - id: 3
+      type: integer
+      name: speed
+      range:
+        min: 1
+        max: 5
+      mapping:
+        - scale: 0.05
+    - id: 8
+      type: string
+      name: direction
+secondary_entities:
+  - 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"
+          - dps_val: "7h"
+            value: "7 hours"
+          - dps_val: "8h"
+            value: "8 hours"
+          - dps_val: "9h"
+            value: "9 hours"
+          - dps_val: "10h"
+            value: "10 hours"
+          - dps_val: "11h"
+            value: "11 hours"
+          - dps_val: "12h"
+            value: "12 hours"