Explorar o código

feat (devices): add InTec ceiling fan with light

Issue #4095
Jason Rumney hai 2 meses
pai
achega
2c7a86fad5

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1165,3 +1165,4 @@ Further device support has been made with the assistance of users. Please consid
 - [m4rt0s](https://github.com/m4rt0s) for contributing support for Sime EcoMaxi VB200 heat pump water heater.
 - [chumbazoid](https://github.com/chumbazoid) for assisting with support for Happy Llama Tech SoCool pet feeder.
 - [HW-YUN](https://github.com/HW-YUN) for contributing support for Smartmi Air Circulating fan.
+- [flemmingkok](https://github.com/flemmingkok) for assisting with support for InTec ceiling fan with light.

+ 1 - 0
DEVICES.md

@@ -323,6 +323,7 @@
 - Hunter Pacific 9 speed ceiling fan with light
 - HYD WeAir Plus bladeless fan with heating function
 - Immax Neo Lite Vento ceiling fan with light
+- InTec ceiling fan with light
 - Kavunion C1 100 ventilation fan
 - KCvents VT501-W heat recovery ventilation
 - Klarstein Skyscaper Ice cooling fan

+ 37 - 0
custom_components/tuya_local/devices/intec_ceilingfanlight.yaml

@@ -0,0 +1,37 @@
+name: Ceiling fan
+entities:
+  - entity: fan
+    dps:
+      - id: 101
+        type: boolean
+        name: switch
+      - id: 53
+        type: integer
+        name: speed
+        range:
+          min: 1
+          max: 3
+      - id: 54
+        type: string
+        name: direction
+  - entity: light
+    dps:
+      - id: 102
+        type: boolean
+        name: switch
+      - 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