Procházet zdrojové kódy

feat(devices): add LSC Smart Connect dual-RGB floor lamp

Issue #6221
Jason Rumney před 13 hodinami
rodič
revize
9669480581

+ 2 - 2
DEVICES.md

@@ -995,8 +995,8 @@ of device.
 - Loginovo TV sync backlight
 - LSC Smart Connect CCT + RGB ceiling light
 - LSC Smart Connect CCT+RGB, RGB/IC+CCT/IC, Neon, Party led strips
-- LSC Smart Connect garden spotlights
-- LSC smart connect RGB CCT lightbulb (similar to older generic bulbs, so may work for others)
+- LSC Smart Connect garden spotlights and floor lamp
+- LSC Smart Connect RGB CCT lightbulb (similar to older generic bulbs, so may work for others)
 - Lumary D1 6 inch retrofit downlight (independent RGB ring and CCT centre)
 - Lytmi Fantasy/Neo 3 HDMI sync backlight
 - Malmbergs QS-WIFI-D02-TRIAC single dimmer module

+ 138 - 0
custom_components/tuya_local/devices/lsc_dualrgb_floorlamp.yaml

@@ -0,0 +1,138 @@
+name: Floor lamp
+products:
+  - id: oyvz9kqyvcl7b45n
+    manufacturer: LSC Smart Connect
+    model: RGB Floor lamp
+entities:
+  - entity: light
+    dps:
+      - id: 20
+        type: boolean
+        name: switch
+      - id: 21
+        name: effect
+        type: string
+        mapping:
+          - dps_val: white
+            value: "off"
+            hidden: true
+          - dps_val: colour
+            value: "off"
+          - dps_val: scene
+            value: Scene
+          - dps_val: music
+            value: Music
+      - id: 24
+        name: rgbhsv
+        type: hex
+        format:
+          - name: h
+            bytes: 2
+            range:
+              min: 0
+              max: 360
+          - name: s
+            bytes: 2
+            range:
+              min: 0
+              max: 1000
+          - name: v
+            bytes: 2
+            range:
+              min: 0
+              max: 1000
+  - entity: time
+    translation_key: timer
+    category: config
+    dps:
+      - id: 26
+        type: integer
+        name: second
+        range:
+          min: 0
+          max: 86399
+  - entity: text
+    translation_key: scene
+    category: config
+    hidden: true
+    dps:
+      - id: 51
+        type: base64
+        optional: true
+        name: value
+  - entity: text
+    name: Music
+    category: config
+    icon: "mdi:music"
+    hidden: true
+    dps:
+      - id: 52
+        type: base64
+        optional: true
+        name: value
+  - entity: text
+    name: Paint
+    category: config
+    icon: "mdi:palette"
+    hidden: true
+    dps:
+      - id: 61
+        type: base64
+        optional: true
+        name: value
+  - entity: switch
+    dps:
+      - id: 101
+        type: boolean
+        name: switch
+  - entity: light
+    name: Base
+    dps:
+      - id: 102
+        type: boolean
+        name: switch
+      - id: 103
+        name: brightness
+        type: integer
+        range:
+          min: 10
+          max: 1000
+      - id: 105
+        name: rgbhsv
+        type: hex
+        format:
+          - name: h
+            bytes: 2
+            range:
+              min: 0
+              max: 360
+          - name: s
+            bytes: 2
+            range:
+              min: 0
+              max: 1000
+          - name: v
+            bytes: 2
+            range:
+              min: 0
+              max: 1000
+      - id: 106
+        type: string
+        name: color_mode
+        mapping:
+          - dps_val: white
+            value: white
+          - dps_val: colour
+            value: hs
+          - dps_val: scene
+            value: Scene
+  - entity: text
+    name: Base scene
+    category: config
+    icon: "mdi:palette"
+    hidden: true
+    dps:
+      - id: 107
+        type: string
+        optional: true
+        name: value