Explorar o código

Add config for Pirnar SmartLux Door Light (#5451)

* Add config for Pirnar SmartLux Door Light

* fix(smartlux): update name and remove unused entities

* missed exterior

* Refactor entity names and clean up comments

- rename file to include brand and device type
- Updated entity names to use proper casing and removed comments for clarity.

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
Florian Moker hai 6 días
pai
achega
4dc545dfdf

+ 51 - 0
custom_components/tuya_local/devices/pirnar_smartlux_lights.yaml

@@ -0,0 +1,51 @@
+name: Door Light
+products:
+  - id: jahu6lbhx0o5opo2
+    manufacturer: Pirnar
+    model: SmartLux
+entities:
+  - entity: light
+    name: Exterior
+    dps:
+      - id: 102
+        name: switch
+        type: boolean
+      - id: 104
+        name: brightness
+        type: integer
+        range:
+          min: 10
+          max: 1000
+      - id: 105
+        name: color_temp
+        type: integer
+        range:
+          min: 0
+          max: 1000
+        mapping:
+          - target_range:
+              min: 2700
+              max: 6500
+
+  - entity: light
+    name: Interior
+    dps:
+      - id: 20
+        name: switch
+        type: boolean
+      - 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