Bläddra i källkod

Add support for Skyfan DC fan with light

Issue #665
Jason Rumney 2 år sedan
förälder
incheckning
511d61bdf4
3 ändrade filer med 92 tillägg och 0 borttagningar
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 90 0
      custom_components/tuya_local/devices/skyfan_fan_light.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -265,3 +265,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [csarmat](https://github.com/csarmat) for assisting with support for WDYK 2P63A energy meters.
 - [nyok92](https://github.com/nyok92) for assisting with support for Duux Blizzard air conditioners.
 - [mattbruman](https://github.com/mattbruman) for assisting with support for Atomi ceiling fans.
+- [dh0llyw00d](https://github.com/dh0llyw00d) for assisting with support for Skyfan DC fans with light.

+ 1 - 0
DEVICES.md

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

+ 90 - 0
custom_components/tuya_local/devices/skyfan_fan_light.yaml

@@ -0,0 +1,90 @@
+name: Skyfan DC fan
+product:
+  - id: pktxz1vynowmavuc
+    name: Skyfan DC fan with light
+primary_entity:
+  entity: fan
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 2
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: Normal
+          value: Normal
+        - dps_val: Nature
+          value: Nature
+        - dps_val: Sleep
+          value: Sleep
+    - id: 3
+      type: integer
+      name: speed
+      range:
+        min: 0
+        max: 5
+      mapping:
+        - scale: 0.05
+    - 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: 1
+          max: 5
+        mapping:
+          - scale: 0.0196
+      - id: 19
+        name: color_temp
+        type: string
+        mapping:
+          - dps_val: Coolwhite
+            value: 154
+          - dps_val: Naturalwhite
+            value: 250
+          - dps_val: Warmwhite
+            value: 454
+  - 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"