Просмотр исходного кода

feat (devices): add Brilliant ceiling fan remote controller

Issue #3837
Jason Rumney 10 часов назад
Родитель
Сommit
272f3a007b

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1295,3 +1295,4 @@ Further device support has been made with the assistance of users. Please consid
 - [ClarkAlmazan](https://github.com/ClarkAlmazan) for assisting with support for Suntree SPG3 EV charger.
 - [wan0net](https://github.com/wan0net) for contributing support for Kogan  Vostok portable air conditioner.
 - [penguin00xx](https://github.com/penguin00xx) for assisting with support for Koenic KTM-221723-M kettle.
+- [dodhouse](https://github.com/dodhouse) for assisting with support for Brilliant ceiling fan remote controller.

+ 1 - 1
DEVICES.md

@@ -315,7 +315,7 @@ devices # Supported
 - Blitzwill ceiling fan with light
 - Brandson A307362x3 tower fan
 - Breville AirDynamic 3D pedestal fan
-- Brilliant Ceiling fan with light
+- Brilliant Ceiling fan with light, and remote controller
 - Calibo Cloudfan DC ceiling fan with light
 - Carro ceiling fan with cool and warm white lights
 - Carro PN-04F02D fan with dimmable light

+ 95 - 0
custom_components/tuya_local/devices/brilliant_ceiling fancontroller.yaml

@@ -0,0 +1,95 @@
+name: Ceiling fan
+products:
+  - id: 3dqkjstvaybnlaye
+    manufacturer: Brilliant Smart
+    model: Ceiling fan remote controller
+entities:
+  - entity: fan
+    translation_key: fan_with_presets
+    dps:
+      - id: 101
+        type: boolean
+        name: switch
+      - id: 103
+        type: string
+        name: speed
+        mapping:
+          - dps_val: "1"
+            value: 33
+          - dps_val: "2"
+            value: 66
+          - dps_val: "3"
+            value: 100
+      - id: 102
+        type: string
+        name: preset_mode
+        mapping:
+          - dps_val: Nature
+            value: nature
+          - dps_val: Normal
+            value: normal
+          - dps_val: Sleep
+            value: sleep
+          - dps_val: WakeUp
+            value: fresh
+  - entity: light
+    dps:
+      - id: 115
+        type: boolean
+        name: switch
+      - id: 116
+        name: brightness
+        type: integer
+        range:
+          min: 1
+          max: 100
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 67
+        type: bitfield
+        optional: true
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: null
+            value: false
+          - value: true
+      - id: 67
+        type: bitfield
+        optional: true
+        name: fault_code
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 122
+        type: string
+        optional: true
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: cancel
+          - dps_val: "1"
+            value: "10m"
+          - dps_val: "2"
+            value: "30m"
+          - dps_val: "3"
+            value: "1h"
+          - dps_val: "4"
+            value: "2h"
+          - dps_val: "5"
+            value: "3h"
+          - dps_val: "6"
+            value: "4h"
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 123
+        type: integer
+        name: sensor
+        unit: min