Преглед изворни кода

feat(devices): add support for Aziot fan modular switch

Issue #3604
Jason Rumney пре 5 месеци
родитељ
комит
67ec0834cd
3 измењених фајлова са 32 додато и 1 уклоњено
  1. 1 1
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 30 0
      custom_components/tuya_local/devices/aziot_fan_switch.yaml

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -1015,7 +1015,7 @@ Further device support has been made with the assistance of users. Please consid
 - [JakubMadro](https://github.com/JakubMadro) for contributing support for EARU PC473 3-phase energy monitor.
 - [jlg78fr](https://github.com/jlg78fr) for assisting with support for Unistyle WT-04W water timer.
 - [KoenVanduffel](https://github.com/KoenVanduffel) for assisting with support for Oscal PowerMax 6000 portable power station.
-- [pranjal-joshi](https://github.com/pranjal-joshi) for contributing support for Aziot 7 and 8 gang multi-switches and assisting with support for Aziot 4 gang switches.
+- [pranjal-joshi](https://github.com/pranjal-joshi) for contributing support for Aziot 7 and 8 gang multi-switches and assisting with support for Aziot 4 gang switches and Aziot fan modular switch.
 - [AFumi39](https://github.com/AFumi39) for contributing support for Puppy Kitty F14-W pet feeder.
 - [hussainaljamri](https://github.com/hussainaljamri) for contributing support for Moes Star Feather series switches.
 - [FritzeF](https://github.com/FritzeF) for assisting with support for Kavunion C1 100 ventilation fan.

+ 1 - 0
DEVICES.md

@@ -255,6 +255,7 @@
 - Atomberg Gorilla fan V2
 - Atomi 52 inch ceiling fan
 - Aygrochy ventilation duct fan
+- Aziot fan modular switch
 - Blitzwill ceiling fan with light
 - Brandson A307362x3 tower fan
 - Breville AirDynamic 3D pedestal fan

+ 30 - 0
custom_components/tuya_local/devices/aziot_fan_switch.yaml

@@ -0,0 +1,30 @@
+name: Fan switch
+products:
+  - id: sqxyktpwizo2yuhc
+    manufacturer: Aziot
+    model: Fan modular switch
+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: Normal
+            value: normal
+          - dps_val: Nature
+            value: nature
+          - dps_val: Sleep
+            value: sleep
+          - dps_val: Breeze
+            value: fresh
+      - id: 3
+        type: integer
+        name: speed
+        range:
+          min: 1
+          max: 5