Explorar el Código

feat(devices): add support for Eberg Fyn tower fan

Issue #3553
Jason Rumney hace 5 meses
padre
commit
32788897bf

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1024,3 +1024,4 @@ Further device support has been made with the assistance of users. Please consid
 - [Zxwcount](https://github.com/Zxwcount) for assisting with support for Haozee RB-SRAIN01 rain sensor.
 - [tobias-b-gmx](https://github.com/tobias-b-gmx) for assisting with support for Dewin KWS-306WF energy monitoring circuit breaker, Sichler ZX-7655 heater.
 - [chrkov](https://github.com/chrkov) for assisting with support for Revesien Q-Pro-W aroma diffuser.
+- [lilYozik](https://github.com/lilYozik) for assisting with support for Eberg Fyn tower fan.

+ 1 - 0
DEVICES.md

@@ -272,6 +272,7 @@
 - Dream Maker Feel DM01 fan
 - Duux Whisper Flex pedestal fan
 - Duux Whisper Flex Ultimate
+- Eberg Fyn tower fan
 - Eglo 5 speed + sleep ceiling fan
 - eLinkSmart KH-SY2626 pedestal fan
 - Fanco Eco Silent Deluxe ceiling fan with LED light

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

@@ -0,0 +1,77 @@
+name: Tower fan
+products:
+  - id: a6lhkx0olxs4xpla
+    manufacturer: EBERG
+    model: FYN
+entities:
+  - entity: fan
+    translation_only_key: fan_with_presets
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 2
+        type: string
+        name: preset_mode
+        mapping:
+          - dps_val: "1"
+            value: normal
+          - dps_val: "2"
+            value: nature
+          - dps_val: "3"
+            value: sleep
+          - dps_val: "4"
+            value: baby
+      - id: 3
+        type: integer
+        name: speed
+        range:
+          min: 1
+          max: 3
+      - id: 4
+        type: string
+        name: oscillate
+        mapping:
+          - dps_val: "on"
+            value: true
+          - dps_val: "off"
+            value: false
+  - entity: number
+    translation_key: timer
+    class: duration
+    category: config
+    dps:
+      - id: 6
+        type: integer
+        name: value
+        unit: h
+        range:
+          min: 0
+          max: 12
+  - entity: switch
+    translation_key: ionizer
+    category: config
+    dps:
+      - id: 9
+        type: boolean
+        name: switch
+  - entity: sensor
+    class: temperature
+    dps:
+      - id: 19
+        type: integer
+        name: sensor
+        class: measurement
+        unit: C
+  - entity: light
+    translation_key: display
+    category: config
+    dps:
+      - id: 101
+        type: boolean
+        name: switch
+        mapping:
+          - dps_val: false
+            value: true
+          - dps_val: true
+            value: false