Explorar el Código

feat (devices): add Ledvance ceiling fan with light

Standard dp layout for CCT light, offset dp layout for fan

Issue #1800
Jason Rumney hace 3 meses
padre
commit
c7e30d4556

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1090,3 +1090,4 @@ Further device support has been made with the assistance of users. Please consid
 - [davidmurdoch](https://github.com/davidmurdoch) for contributing support for Elegrp DTR10 dimmer light switch.
 - [nitedani](https://github.com/nitedani) for contributing support for Fisher F-ERVQ-B150CO2-I heat recovery ventilator.
 - [kbeanio](https://github.com/kbeanio) for assisting with support for Atorch DT20HBW battery monitor.
+- [pbambr](https://github.com/pbambr) for assisting with support for Ledvance ceiling fan with light.

+ 1 - 0
DEVICES.md

@@ -316,6 +316,7 @@
 - Keyun MKCFE002 RGB chandelier fan
 - Kogan bladeless fans
 - Ledkia fan and light controller
+^ Ledvance Ceiling fan with light
 - Lexy F501 fan
 - Ligency E26 socket ceiling fan with RGBCW light
 - Living Comfort LC310S twin window fan

+ 81 - 0
custom_components/tuya_local/devices/ledvance_smart_ceilingfan.yaml

@@ -0,0 +1,81 @@
+name: Ceiling fan
+products:
+  - id: h2xswd4oyce7bikh
+    manufacturer: Ledvance
+    model: Ceiling fan with light
+entities:
+  - entity: fan
+    dps:
+      - id: 51
+        type: boolean
+        name: switch
+      - id: 53
+        type: integer
+        name: speed
+        range:
+          min: 1
+          max: 3
+  - 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: 2700
+              max: 6500
+  - entity: text
+    name: Scene
+    category: config
+    icon: "mdi:palette"
+    hidden: true
+    dps:
+      - id: 25
+        type: hex
+        name: value
+  - entity: time
+    name: Light timer
+    translation_key: timer
+    category: config
+    dps:
+      - id: 26
+        type: integer
+        name: second
+        range:
+          min: 0
+          max: 86399
+  - entity: time
+    name:  Fan timer
+    translation_key: timer
+    category: config
+    dps:
+      - id: 55
+        type: integer
+        name: second
+        range:
+          min: 0
+          max: 86399