Просмотр исходного кода

feat (devices): add AusClimate EcoSmart desk air circulator

Issue #4591
Jason Rumney 1 день назад
Родитель
Сommit
1ee08f0b52

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -1292,7 +1292,7 @@ Further device support has been made with the assistance of users. Please consid
 - [prfj](https://github.com/prfj) for contributing support for Cecotec TotalPure purifier.
 - [aryanhasgithub](https://github.com/aryanhasgithub) for contributing support for A.O. Smith HeatBot 15L water heater.
 - [jmlugo15](https://github.com/jmlugo15) for assisting with support for Qiachipceiling fan with light.
-- [sydneysider123](https://github.com/sydneysider123) for assisting with support for Ausclimate EcoSmart pedestal fan.
+- [sydneysider123](https://github.com/sydneysider123) for assisting with support for Ausclimate EcoSmart pedestal and desk fans.
 - [ClarkAlmazan](https://github.com/ClarkAlmazan) for assisting with support for Suntree SPG3 EV charger.
 - [wan0net](https://github.com/wan0net) for contributing support for Kogan  Vostok portable air conditioner.
 - [penguin00xx](https://github.com/penguin00xx) for assisting with support for Koenic KTM-221723-M kettle.

+ 1 - 1
DEVICES.md

@@ -312,7 +312,7 @@
 - Aspen ASP 200 fan
 - Atomberg Gorilla fan V2
 - Atomi 52 inch ceiling fan
-- Ausclimate EcoSmart pedestal fan
+- Ausclimate EcoSmart pedestal and desk fans
 - Aygrochy ventilation duct fan
 - Aziot fan modular switch
 - BKZO ceiling fan with RGBCW light

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

@@ -0,0 +1,77 @@
+name: Desk fan
+products:
+  - id: shrf3e1oo92aaijt
+    manufacturer: Ausclimate
+    model: EcoSmart Desk Air Circulator
+    model_id: ACAC230
+entities:
+  - entity: fan
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 3
+        type: integer
+        name: speed
+        range:
+          min: 1
+          max: 12
+      - id: 5
+        type: boolean
+        name: oscillate
+  - entity: switch
+    name: Vertical oscillation
+    icon: "mdi:pan-vertical"
+    category: config
+    dps:
+      - id: 4
+        type: boolean
+        name: switch
+  - entity: select
+    name: "On timer"
+    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: "4h"
+            value: "4h"
+          - dps_val: "6h"
+            value: "6h"
+          - dps_val: "8h"
+            value: "8h"
+  - entity: select
+    translation_key: timer
+    name: "Off timer"
+    category: config
+    dps:
+      - id: 101
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancel
+            value: cancel
+          - dps_val: "1H"
+            value: "1h"
+          - dps_val: "2H"
+            value: "2h"
+          - dps_val: "4H"
+            value: "4h"
+          - dps_val: "6H"
+            value: "6h"
+          - dps_val: "8H"
+            value: "8h"
+  - entity: switch
+    name: Turbo
+    dps:
+      - id: 104
+        type: boolean
+        name: switch