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

Add support for Brilliant Smart security motion lights

Issue #2672
Jason Rumney 1 год назад
Родитель
Сommit
91116438a6

+ 2 - 0
ACKNOWLEDGEMENTS.md

@@ -805,3 +805,5 @@ Further device support has been made with the assistance of users. Please consid
 - [theqz](https://github.com/theqz) for assisting with support for A03 siren.
 - [luisolavea](https://github.com/luisolavea) for assisting with support for Zemismart ZMAi-90 energy meter smart switch.
 - [City-Zero](https://github.com/City-Zero) for contributing support for airx H8 humidifier.
+- [rackxp](https://github.com/rackxp) for assisting with support for Brilliant Smart twin flood lights with motion detection.
+

+ 1 - 0
DEVICES.md

@@ -613,6 +613,7 @@ of device.
 - Asahom S105A-C outdoor lighting
 - Atomi smart color string light
 - Blitzwolf BW-LT31 LED strip
+- Brilliant Smart 22W twin flood lights with motion sensor
 - Brizlabs string lights
 - Calex S45 Clear E27 lightbulb
 - Deltaco LED Strip (SH-LW5M)

+ 91 - 0
custom_components/tuya_local/devices/brilliant_securitylights.yaml

@@ -0,0 +1,91 @@
+name: Security light
+products:
+  - id: WdI9bsgv2MKAhzxe
+    manufacturer: Brilliant Smart
+    model: Frontier 22W twin flood light with sensor
+entities:
+  - entity: light
+    icon: "mdi:light-flood-down"
+    dps:
+      - id: 107
+        type: boolean
+        name: switch
+      - id: 101
+        name: brightness
+        type: integer
+        range:
+          min: 25
+          max: 255
+      - id: 105
+        name: color_temp
+        type: integer
+        range:
+          min: 0
+          max: 255
+        mapping:
+          - target_range:
+              min: 3000
+              max: 6000
+  - entity: number
+    name: Daylight threshold
+    class: illuminance
+    category: config
+    icon: "mdi:theme-light-dark"
+    dps:
+      - id: 102
+        type: integer
+        name: value
+        unit: lx
+        range:
+          min: 0
+          max: 2000
+  - entity: number
+    class: duration
+    category: config
+    dps:
+      - id: 103
+        type: integer
+        name: value
+        unit: s
+        range:
+          min: 10
+          max: 600
+  - entity: select
+    name: Operation mode
+    category: config
+    dps:
+      - id: 104
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: auto
+            icon: "mdi:motion-sensor"
+          - dps_val: "1"
+            value: "on"
+            icon: "mdi:motion-sensor-off"
+          - dps_val: "2"
+            value: flash
+            icon: "mdi:flash"
+  - entity: select
+    name: Sensitivity
+    icon: "mdi:motion-sensor"
+    category: config
+    dps:
+      - id: 106
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: low
+          - dps_val: "1"
+            value: medium
+          - dps_val: "2"
+            value: high
+  - entity: binary_sensor
+    class: motion
+    category: diagnostic
+    dps:
+      - id: 108
+        type: boolean
+        name: sensor