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

Add new device Blitzwolf BW-LT31 LED Strip

MiciMacko` 2 лет назад
Родитель
Сommit
092e7d20fd
1 измененных файлов с 155 добавлено и 0 удалено
  1. 155 0
      custom_components/tuya_local/devices/blitzwolf_bw_lt31.yaml

+ 155 - 0
custom_components/tuya_local/devices/blitzwolf_bw_lt31.yaml

@@ -0,0 +1,155 @@
+name: Blitzwolf BW-LT31 LED Strip
+products:
+  - id: 66072501f4cfa2fe2887
+    name: Blitzwolf BW-LT31 LED Strip
+primary_entity:
+  entity: light
+  icon: "mdi:led-strip-variant"
+  dps:
+    - id: 20
+      type: boolean
+      name: switch
+    - id: 21
+      type: string
+      name: color_mode
+      mapping:
+        - dps_val: dynamic_mod
+          value: Dynamic
+        - dps_val: colour
+          value: hs
+        - dps_val: scene_mod
+          value: Scene
+        - dps_val: music
+          value: Music
+    - id: 22
+      name: brightness
+      type: integer
+      range:
+        min: 10
+        max: 1000
+      mapping:
+        - dps_val: null
+          value: 0
+        - scale: 3.92
+    - 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
+    - id: 102
+      name: music_data
+      type: integer
+    - id: 103
+      name: line_sequence_adjustment
+      # 线序调整
+      type: integer
+      hidden: true
+    - id: 104
+      name: strip_points
+      # 灯带点数
+      type: integer
+      hidden: true
+    - id: 106
+      name: dynamic_data
+      type: hex
+    - id: 108
+      name: scene_data
+      type: base64
+secondary_entities:
+  - entity: select
+    name: Music
+    icon: "mdi:palette"
+    category: config
+    dps:
+      - id: 102
+        type: string
+        name: option
+        optional: true
+        mapping:
+          - dps_val: 164
+            value: "Classic"
+          - dps_val: 264
+            value: "Soft"
+          - dps_val: 364
+            value: "Dynamic"
+          - dps_val: 414
+            value: "Disco"
+  - entity: select
+    name: Dynamic
+    icon: "mdi:palette"
+    category: config
+    dps:
+      - id: 106
+        type: string
+        name: option
+        optional: true
+        mapping:
+          - dps_val: "010148000003e803e8008d03e803e800ee03e803e8003803e803e8012a03e803e8011a03e803e8"
+            value: "Breath"
+            # color* R+G+B+Y+C+P, breath, Low speed
+          - dps_val: "02321e003503e803e8001a03e803e8"
+            value: "Flash"
+            # color* Y+O, Flash, Mid speed
+          - dps_val: "03281e000003e803e8007803e803e800f003e803e8003b03e803e8013603e803e8010e03e803e8"
+            value: "Jump"
+            # color* R+G+B+Y+C+P, jump, Mid speed
+          - dps_val: "041e3c002303e803e8003a03e803e8"
+            value: "Gradient"
+            # color* O+Y, flash, Low speed
+          - dps_val: "053264"
+            value: "Symphony"
+            # color* All, wave, Mid speed
+          - dps_val: "063264000003e803e8"
+            value: "Chasing"
+            # color* R, chasing, Mid speed
+          - dps_val: "073264000003e803e8"
+            value: "Meteor"
+            # color* R, wave, Mid speed
+          - dps_val: "083228003203e803e8"
+            value: "Stacking"
+            # color* Y, wave, Mid speed
+          - dps_val: "093264003603e803e8"
+            value: "Adjoint"
+            # color* Y, wave, Mid speed
+  - entity: select
+    name: Scene
+    icon: "mdi:palette"
+    category: config
+    dps:
+      - id: 108
+        type: string
+        name: option
+        optional: true
+        mapping:
+          - dps_val: "CJ_YD"
+            value: "Reading"
+            # color: white, static
+          - dps_val: "CJ_QC"
+            value: "Get Up"
+            # color: white, yellow, static
+          - dps_val: "CJ_WA"
+            value: "Good Night"
+            # color: red, static
+          - dps_val: "CJ_XK"
+            value: "Starry"
+            # color: blue, flash
+          - dps_val: "CJ_JH"
+            value: "Party"
+            # color* All, Flash, Mid speed
+          - dps_val: "CJ_YS"
+            value: "Film"
+            # color: lightblue, static