Explorar o código

Add support for FlinQ Breeze fan

Issue #2256
Jason Rumney hai 1 ano
pai
achega
340783f812

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -657,3 +657,4 @@ Further device support has been made with the assistance of users. Please consid
 - [chadtheriault](https://github.com/chadtheriault) for assisting with Zemismart AM25 roller blinds.
 - [fmonday](https://github.com/fmonday) for assisting with Enlighten Café string lights.
 - [plopezllorca](https://github.com/plopezllorca) for assisting with support for Lefant T700 vacuum.
+- [vrolijkj2](https://github.com/vrolijkj2) for contributing support for FlinQ Breeze fan.

+ 1 - 0
DEVICES.md

@@ -218,6 +218,7 @@
 - Duux Whisper Flex Ultimate
 - Eglo 5 speed + sleep ceiling fan
 - Fanco Eco Silent Deluxe ceiling fan with LED light
+- FlinQ Breeze indoor pedestal fan
 - Goldair GCPF315 fan
 - Goldair Platinum tower fan (2 variants)
 - Hiper T3 bladeless fan

+ 67 - 0
custom_components/tuya_local/devices/flinq_breeze_pedestalfan.yaml

@@ -0,0 +1,67 @@
+name: Pedestal fan
+# products:
+#   - id: unknown
+#     name: FlinQ Breeze
+primary_entity:
+  entity: fan
+  translation_only_key: fan_with_presets
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+    - id: 2
+      name: preset_mode
+      type: string
+      mapping:
+        - dps_val: normal
+          value: normal
+        - dps_val: nature
+          value: nature
+        - dps_val: sleep
+          value: sleep
+        - dps_val: eco
+          value: eco
+    - id: 3
+      name: speed
+      type: integer
+      range:
+        min: 1
+        max: 12
+    - id: 5
+      name: oscillate
+      type: boolean
+secondary_entities:
+  - entity: sensor
+    class: temperature
+    dps:
+      - id: 21
+        type: integer
+        name: sensor
+        class: measurement
+        unit: C
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 22
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0h"
+            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"