Ver Fonte

Add support for Hoenofly Smart Amari ceiling fan with light

Issue #2809
Jason Rumney há 1 ano atrás
pai
commit
24ea391ff5

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -833,3 +833,4 @@ Further device support has been made with the assistance of users. Please consid
 - [maLLoud86](https://github.com/maLLoud86) for assisting with support for iSparkle Curtain Micro Lights.
 - [josvink66](https://github.com/josvink66) for assisting with support for Easybaby GS-801 infant formula maker.
 - [Karlsons88](https://github.com/Karlsons88) for assisting with support for Nulite monobloc heat pump.
+- [Watanuki-kun](https://github.com/Watanuki-kun) for assisting with support for Smart Amari ceiling fan with light.

+ 1 - 0
DEVICES.md

@@ -270,6 +270,7 @@
 - Goldair GCPF315 fan
 - Goldair Platinum tower fan (2 variants)
 - Hiper T3 bladeless fan
+- Hoenofly Smart Amari ceiling fan with light
 - Homebase 12" oscillating fan
 - Hunter Pacific 9 speed ceiling fan with light
 - HYD WeAir Plus bladeless fan with heating function

+ 95 - 0
custom_components/tuya_local/devices/amari_ceiling_fanlight.yaml

@@ -0,0 +1,95 @@
+name: Ceiling fan
+products:
+  - id: zjqqpvhra3ep0fpk
+    manufacturer: Hoenofly
+    model: Smart Amari
+entities:
+  - entity: light
+    dps:
+      - id: 20
+        type: boolean
+        name: switch
+      - id: 22
+        type: integer
+        name: brightness
+        range:
+          min: 10
+          max: 1000
+      - id: 23
+        type: integer
+        name: color_temp
+        range:
+          min: 0
+          max: 1000
+        mapping:
+          - target_range:
+              min: 3000
+              max: 5000
+            step: 500
+  - entity: number
+    translation_key: timer
+    category: config
+    dps:
+      - id: 26
+        type: integer
+        optional: true
+        name: value
+        unit: min
+        precision: 0
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: text
+    name: Light control
+    hidden: true
+    dps:
+      - id: 28
+        type: string
+        optional: true
+        name: value
+  - entity: fan
+    translation_only_key: fan_with_presets
+    dps:
+      - id: 60
+        type: boolean
+        name: switch
+      - id: 61
+        type: string
+        name: preset_mode
+        mapping:
+          - dps_val: Natural
+            value: nature
+          - dps_val: Normal
+            value: normal
+          - dps_val: Sleep
+            value: sleep
+          - dps_val: WakeUp
+            value: fresh
+      - id: 62
+        type: integer
+        optional: true
+        name: speed
+        range:
+          min: 1
+          max: 100
+      - id: 63
+        type: string
+        optional: true
+        name: direction
+  - entity: number
+    name: Fan timer
+    translation_key: timer
+    category: config
+    icon: "mdi:fan-clock"
+    dps:
+      - id: 64
+        type: integer
+        optional: true
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 540