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

feat (devices): add support for Qiachip QI-FLRC-1 ceiling fan light

Issue #4445
Jason Rumney пре 18 часа
родитељ
комит
49e0bc11c7
3 измењених фајлова са 86 додато и 0 уклоњено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 84 0
      custom_components/tuya_local/devices/qiachip_qiflrc1_fanlight.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1290,3 +1290,4 @@ Further device support has been made with the assistance of users. Please consid
 - [TheAdamGalloway](https://github.com/TheAdamGalloway) for contributing support for Curv alarm panel that was merged to the Nivian above.
 - [LeeRuMax](https://github.com/LeeRuMax) for assisting with support for Avonflow AFD14-H thermostat.
 - [arayanhasgithub](https://github.com/arayanhasgithub) for contributing support for A.O. Smith HeatBot 15L water heater.
+- [jmlugo15](https://github.com/jmlugo15) for assisting with support for Qiachipceiling fan with light.

+ 1 - 0
DEVICES.md

@@ -390,6 +390,7 @@ devices # Supported
 - Princess Smart Tower fan
 - Prism+ Oasis Pro ceiling fan with RGBCCT light
 - Pro Breeze AirFlo 43" pedestal fan
+- Qiachip QI-FLRC-1 ceiling fan with light
 - Reiga ceiling fans with and without light
 - Riyue Box 3 fan with light
 - Roomratv ceiling fan with light

+ 84 - 0
custom_components/tuya_local/devices/qiachip_qiflrc1_fanlight.yaml

@@ -0,0 +1,84 @@
+name: Ceiling fan and light
+products:
+  - id: fcldsaadc3hzf9ey
+    manufacturer: Qiachip
+    model: QI-FLRC-1
+entities:
+  - entity: fan
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 3
+        type: string
+        name: speed
+        mapping:
+          - dps_val: "1"
+            value: 33
+          - dps_val: "2"
+            value: 66
+          - dps_val: "3"
+            value: 100
+  - entity: light
+    dps:
+      - id: 9
+        type: boolean
+        name: switch
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 6
+        name: option
+        type: string
+        mapping:
+          - dps_val: "0"
+            value: cancel
+          - dps_val: "1"
+            value: "1h"
+          - dps_val: "2"
+            value: "2h"
+          - dps_val: "3"
+            value: "3h"
+          - dps_val: "4"
+            value: "4h"
+          - dps_val: "5"
+            value: "5h"
+          - dps_val: "6"
+            value: "6h"
+          - dps_val: "7"
+            value: "7h"
+          - dps_val: "8"
+            value: "8h"
+          - dps_val: "9"
+            value: "9h"
+          - dps_val: "10"
+            value: "10h"
+          - dps_val: "11"
+            value: "11h"
+          - dps_val: "12"
+            value: "12h"
+          - dps_val: "13"
+            value: "13h"
+          - dps_val: "14"
+            value: "14h"
+          - dps_val: "15"
+            value: "15h"
+          - dps_val: "16"
+            value: "16h"
+  - entity: sensor
+    translation_key: time_remaining
+    category: diagnostic
+    class: duration
+    dps:
+      - id: 7
+        name: sensor
+        type: integer
+        unit: min
+  - entity: switch
+    translation_key: sound
+    category: config
+    dps:
+      - id: 17
+        type: boolean
+        name: switch