Sfoglia il codice sorgente

Add support for Arlec 6-speed floor fan

Issue #541
Jason Rumney 2 anni fa
parent
commit
c42798ac5c

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -222,4 +222,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [AdamB2023](https://github.com/AdamB2023) for assisting with support for Klarta Humea humidifiers.
 - [M4R7IN5](https://github.com/M4R7IN5) for assisting with support for Lenovo E1 vacuum cleaners.
 - [pmazz](https://github.com/pmazz) for contributing Italian translations.
-- [thewolf-oz](https://github.com/thewolf-oz) for assisting with support for Arlec 12-speed tower fans.
+- [thewolf-oz](https://github.com/thewolf-oz) for assisting with support for Arlec 12-speed tower fans, 6-speed floor fans.

+ 2 - 1
DEVICES.md

@@ -100,7 +100,8 @@
 
 - Anko HEGSM40 fan
 - Arlec Grid Connect smart ceiling fan (with and without light)
-- Arlec 12 speed Tower fan
+- Arlec 12 speed tower fan
+- Arlec 6 speed floor fan
 - Aspen ASP 200 fan
 - Deta fan controller
 - Fanco Eco Silent Deluxe ceiling fan with LED light

+ 86 - 0
custom_components/tuya_local/devices/arlec_6speed_fan.yaml

@@ -0,0 +1,86 @@
+name: Arlec floor fan
+products:
+  - id: tsgf7ywzeit2d90b
+    name: Arlec 45cm black floor fan
+primary_entity:
+  entity: fan
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+    - id: 2
+      name: preset_mode
+      type: string
+      mapping:
+        - dps_val: nature
+          value: Natural
+        - dps_val: sleep
+          value: Sleep
+        - dps_val: fresh
+          value: Fresh
+        - dps_val: smart
+          value: Smart
+        - dps_val: strong
+          value: Strong
+        - dps_val: closed
+          value: "Off"
+        - dps_val: ordinary
+          value: Normal
+    - id: 3
+      name: speed
+      type: string
+      mapping:
+        - dps_val: 1
+          value: 17
+        - dps_val: 2
+          value: 33
+        - dps_val: 3
+          value: 50
+        - dps_val: 4
+          value: 67
+        - dps_val: 5
+          value: 83
+        - dps_val: 6
+          value: 100
+    - id: 101
+      type: boolean
+      name: oscillate
+    - id: 8
+      type: bitfield
+      name: fault_code
+secondary_entities:
+  - entity: binary_sensor
+    name: Fault
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 8
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+  - entity: select
+    name: Timer
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 6
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: "Off"
+          - dps_val: "1"
+            value: "1 hour"
+          - dps_val: "2"
+            value: "2 hours"
+          - dps_val: "3"
+            value: "3 hours"
+          - dps_val: "4"
+            value: "4 hours"
+          - dps_val: "5"
+            value: "5 hours"
+          - dps_val: "6"
+            value: "6 hours"