ソースを参照

feat(devices): add support for 5-speed OmniBreeze tower fan

Issue #3433
Jason Rumney 7 ヶ月 前
コミット
b254e35432

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -973,3 +973,4 @@ Further device support has been made with the assistance of users. Please consid
 - [LunarEclipse363](https://github.com/LunarEclipse363) for contributing support for Fral FSC08 air conditioner.
 - [UsefulVid](https://github.com/UsefulVid) for assisting with support for Brandson A307362x3 fan.
 - [ZorkaTheDog](https://github.com/ZorkaTheDog) for assisting with support for Hombli Ceiling fan.
+- [ThatStella7922](https://github.com/ThatStella7922) for assisting with support for 5 speed model of OmniBreeze tower fan.

+ 1 - 1
DEVICES.md

@@ -286,7 +286,7 @@
 - Kogan bladeless fans
 - Mantra ceiling fan with light
 - New Widetech WPF-16SW5 7-speed pedestal fan
-- OmniBreeze DC2313R tower fan
+- OmniBreeze DC2313R tower fan (4-speed and 5-speed models)
 - Orison Chanfok Neo ceiling fan with light
 - Orison RGB ambient bladeless ceiling fan
 - Ovlaim ceiling fan with cool/warm white dimmable light

+ 89 - 0
custom_components/tuya_local/devices/omnibreeze_5speed_towerfan.yaml

@@ -0,0 +1,89 @@
+name: Fan
+products:
+  - id: kuskdnpwgso1qinx
+    manufacturer: OmniBreeze
+    name: Tower Fan 5M-F
+entities:
+  - entity: fan
+    translation_key: fan_with_presets
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 2
+        type: string
+        name: preset_mode
+        mapping:
+          - dps_val: '0'
+            value: normal
+          - dps_val: '1'
+            value: nature
+          - dps_val: '2'
+            value: sleep
+          - dps_val: '3'
+            value: smart
+      - id: 3
+        type: integer
+        name: speed
+        range:
+          min: 1
+          max: 5
+      - id: 5
+        type: boolean
+        name: oscillate
+  - 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"
+          - dps_val: "7h"
+            value: "7h"
+          - dps_val: "8h"
+            value: "8h"
+          - dps_val: "9h"
+            value: "9h"
+          - dps_val: "10h"
+            value: "10h"
+          - dps_val: "11h"
+            value: "11h"
+          - dps_val: "12h"
+            value: "12h"
+  - entity: sensor
+    class: temperature
+    dps:
+      - id: 21
+        type: integer
+        name: sensor
+        unit: F
+        class: measurement

+ 1 - 1
custom_components/tuya_local/devices/omnibreeze_tower_fan.yaml

@@ -2,7 +2,7 @@ name: Fan
 products:
   - id: c85duuajuaqjvjaj
     manufacturer: OmniBreeze
-    name: Tower fan
+    name: Tower Fan 2
 entities:
   - entity: fan
     translation_key: fan_with_presets