Преглед изворни кода

feat: add support for Roomratv ceiling fan with light

Issue #3397
Jason Rumney пре 7 месеци
родитељ
комит
4473b800e3

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -990,3 +990,4 @@ Further device support has been made with the assistance of users. Please consid
 - [kfussmann](https://github.com/kfussmann) for assisting with support for Sundream LC-Series salt pool chlorinator.
 - [stepheninuk](https://github.com/stepheninuk) for assisting with support for MeacoCool MC Series Pro portable air conditioners.
 - [damru](https://github.com/damru) for contributing improvements to Windcalm fans.
+- [sam7567](https://github.com/sam7567) for assisting with support for Roomratv ceiling fan with light.

+ 1 - 0
DEVICES.md

@@ -303,6 +303,7 @@
 - Prestige M3 ceiling fan with light
 - Princess DC pedestal fan
 - Reiga ceiling fans with and without light
+- Roomratv ceiling fan with light
 - Royal Clima RCB 150 ventilation system
 - Scheeair Nova 100 ventilation fan
 - Siguro SGR-FN-U32xx tower fan

+ 60 - 0
custom_components/tuya_local/devices/roomratv_ceiling_fanlight.yaml

@@ -0,0 +1,60 @@
+name: Ceiling fan
+products:
+  - id: t0qzrmur7pyzjuco
+    manufacturer: Roomratv
+    model: "9003"
+entities:
+  - entity: fan
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 3
+        type: integer
+        optional: true
+        name: speed
+        range:
+          min: 1
+          max: 6
+      - id: 8
+        type: string
+        name: direction
+  - entity: light
+    dps:
+      - id: 15
+        type: boolean
+        name: switch
+      - id: 16
+        name: brightness
+        type: integer
+        range:
+          min: 0
+          max: 100
+        mapping:
+          - step: 2
+      - id: 17
+        name: color_temp
+        type: integer
+        range:
+          min: 0
+          max: 100
+        mapping:
+          - target_range:
+              min: 3000
+              max: 6000
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 22
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancel
+            value: cancel
+          - dps_val: "1h"
+            value: "1h"
+          - dps_val: "2h"
+            value: "2h"
+          - dps_val: "4h"
+            value: "4h"