Bläddra i källkod

Add support for eLinkSmart KH-SY2626 fan

Issue #1474
Jason Rumney 1 år sedan
förälder
incheckning
a597ccab1b
3 ändrade filer med 79 tillägg och 0 borttagningar
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 77 0
      custom_components/tuya_local/devices/elinksmart_khsy2626_fan.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -677,3 +677,4 @@ Further device support has been made with the assistance of users. Please consid
 - [vossim](https://github.com/vossim) for contributing support for a second variant of Tonepie cat litter box.
 - [chmielowiec](https://github.com/chmielowiec) for contributing support for Moebot RETURNING state.
 - [InyoEndo](https://github.com/InyoEndo) for assistance supporting Sanden GAU-A45HPD water heat-pump controller.
+- [sudo-nitz](https://github.com/sudo-nitz) for assistance supporting eLinkSmart KH-SY2626 fan.

+ 1 - 0
DEVICES.md

@@ -221,6 +221,7 @@
 - Duux Whisper Flex pedestal fan
 - Duux Whisper Flex Ultimate
 - Eglo 5 speed + sleep ceiling fan
+- eLinkSmart KH-SY2626 pedestal fan
 - Fanco Eco Silent Deluxe ceiling fan with LED light
 - FlinQ Breeze indoor pedestal fan
 - Goldair GCPF315 fan

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

@@ -0,0 +1,77 @@
+name: Fan
+products:
+  - id: t5nfkruajk3rl4fq
+    name: elinkSmart KH-SY2626
+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: fresh
+          value: fresh
+        - dps_val: nature
+          value: nature
+        - dps_val: smart
+          value: smart
+        - dps_val: sleep
+          value: sleep
+    - id: 3
+      type: integer
+      name: speed
+      range:
+        min: 1
+        max: 15
+    - id: 5
+      type: boolean
+      name: oscillate
+secondary_entities:
+  - entity: light
+    translation_key: display
+    category: config
+    dps:
+      - id: 15
+        type: boolean
+        name: switch
+  - entity: switch
+    translation_key: keytone
+    category: config
+    dps:
+      - id: 13
+        type: boolean
+        name: switch
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 22
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancel
+            value: cancel
+          - dps_val: "1h"
+            value: "1h"
+          - dps_val: "2h"
+            value: "2h"
+          - dps_val: "3h"
+            value: "3h"
+          - dps_val: "4h"
+            value: "4h"
+          - dps_val: "5h"
+            value: "5h"
+          - dps_val: "6h"
+            value: "6h"
+  - entity: sensor
+    class: temperature
+    dps:
+      - id: 21
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement