4
0
Эх сурвалжийг харах

feat(devices): add support for Hombli 6-speed ceiling fan with light

Issue #3389
Jason Rumney 8 сар өмнө
parent
commit
8bbedc7681

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -972,3 +972,4 @@ Further device support has been made with the assistance of users. Please consid
 - [theqz](https://github.com/theqz) for assisting with support for Nedis WIFIPD10WT pill dispenser.
 - [LunarEclipse363](https://github.com/LunarEclipse363) for contributing support for Fral FSC08 air conditioner.
 - [UsefulVid](https://github.com/UsefulVid) for assisting with support for Brandson A307362x3 fan.
+- [ZorkaTheDog](https://github.com/ZorkaTheDog) for assisting with support for Hombli Ceiling fan.

+ 1 - 0
DEVICES.md

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

+ 167 - 0
custom_components/tuya_local/devices/hombli_6speed_ceilingfan.yaml

@@ -0,0 +1,167 @@
+name: Ceiling fan
+products:
+  - id: rdadbolinmhmxuss
+    manufacturer: Hombli
+entities:
+  - entity: fan
+    dps:
+      - id: 60
+        type: boolean
+        name: switch
+      - id: 63
+        type: string
+        name: direction
+      - id: 71
+        type: string
+        name: speed
+        mapping:
+          - dps_val: "3"
+            value: 16
+          - dps_val: "4"
+            value: 33
+          - dps_val: "5"
+            value: 50
+          - dps_val: "6"
+            value: 66
+          - dps_val: "7"
+            value: 83
+          - dps_val: "8"
+            value: 100
+  - entity: light
+    dps:
+      - id: 20
+        type: boolean
+        name: switch
+      - id: 21
+        name: color_mode
+        type: string
+        mapping:
+          - dps_val: white
+            value: color_temp
+          - dps_val: colour
+            value: hs
+          - dps_val: scene
+            value: Scene
+          - dps_val: music
+            value: Music
+      - id: 22
+        name: brightness
+        type: integer
+        range:
+          min: 10
+          max: 1000
+      - id: 23
+        name: color_temp
+        type: integer
+        range:
+          min: 0
+          max: 1000
+        mapping:
+          - target_range:
+              min: 3000
+              max: 6000
+      - id: 24
+        name: rgbhsv
+        type: hex
+        format:
+          - name: h
+            bytes: 2
+            range:
+              min: 0
+              max: 360
+          - name: s
+            bytes: 2
+            range:
+              min: 0
+              max: 1000
+          - name: v
+            bytes: 2
+            range:
+              min: 0
+              max: 1000
+  - entity: number
+    translation_key: timer
+    class: duration
+    category: config
+    dps:
+      - id: 26
+        type: integer
+        name: value
+        unit: s
+        range:
+          min: 0
+          max: 86400
+  - entity: text
+    name: Light control
+    category: config
+    icon: "mdi:cogs"
+    hidden: true
+    dps:
+      - id: 28
+        type: string
+        optional: true
+        name: value
+  - entity: text
+    name: Power memory
+    category: config
+    icon: "mdi:memory"
+    hidden: true
+    dps:
+      - id: 33
+        type: base64
+        optional: true
+        name: value
+  - entity: switch
+    name: Do not disturb
+    icon: "mdi:sleep"
+    category: config
+    dps:
+      - id: 34
+        type: boolean
+        name: switch
+  - entity: text
+    name: Light transition
+    category: config
+    icon: "mdi:transition"
+    hidden: true
+    dps:
+      - id: 35
+        type: base64
+        optional: true
+        name: value
+  - entity: number
+    translation_key: timer_x
+    translation_placeholders:
+      x: fan
+    category: config
+    class: duration
+    dps:
+      - id: 64
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 540
+  - entity: switch
+    translation_key: keytone
+    category: config
+    dps:
+      - id: 66
+        type: boolean
+        name: switch
+  - entity: event
+    name: Reconnection
+    dps:
+      - id: 101
+        type: string
+        name: event
+        optional: true
+        mapping:
+          - dps_val: null
+            value: null
+          - value: connected
+      - id: 101
+        type: string
+        optional: true
+        name: message