Skip to content

Commit f6b25f0

Browse files
committed
fix(blitzwolf_bw_lt31): support Casalux LR1321
Changes in addition to additional product details: - color_mode only has one valid color mode in it, so it would be better as effect. - dynamic scene should be exposed as a text entity to allow any scene to be used. - RGB order should be exposed as a select entity. Issue #3642
1 parent 6d986ca commit f6b25f0

File tree

1 file changed

+36
-6
lines changed

1 file changed

+36
-6
lines changed

custom_components/tuya_local/devices/blitzwolf_bw_lt31.yaml

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ products:
33
- id: khu3zzkkjemj6oat
44
manufacturer: Blitzwolf
55
model: BW-LT31
6+
- id: mzlyh8vz7p33qbz9
7+
manufacturer: Casalux
8+
model: LR1321
69
entities:
710
- entity: light
811
icon: "mdi:led-strip-variant"
@@ -12,12 +15,12 @@ entities:
1215
name: switch
1316
- id: 21
1417
type: string
15-
name: color_mode
18+
name: effect
1619
mapping:
20+
- dps_val: color
21+
value: "off"
1722
- dps_val: dynamic_mod
1823
value: Dynamic
19-
- dps_val: color
20-
value: hs
2124
- dps_val: scene_mod
2225
value: Scene
2326
- dps_val: music
@@ -49,9 +52,6 @@ entities:
4952
range:
5053
min: 0
5154
max: 1000
52-
- id: 103
53-
name: line_sequence_adjustment
54-
type: integer
5555
- entity: select
5656
name: Music
5757
icon: "mdi:palette"
@@ -132,6 +132,16 @@ entities:
132132
- dps_val: "0932640000000003e8"
133133
value: "Adjoint"
134134
# color1 W, speed 50, bright 100
135+
- entity: text
136+
name: Dynamic scene
137+
category: config
138+
icon: "mdi:palette"
139+
hidden: true
140+
dps:
141+
- id: 106
142+
type: hex
143+
optional: true
144+
name: value
135145
- entity: select
136146
translation_key: scene
137147
category: config
@@ -159,6 +169,26 @@ entities:
159169
- dps_val: CJ_YS
160170
value: movie
161171
# color: lightblue, static
172+
- entity: select
173+
name: RGB order
174+
category: config
175+
dps:
176+
- id: 103
177+
type: integer
178+
name: option
179+
mapping:
180+
- dps_val: 1
181+
value: RGB
182+
- dps_val: 2
183+
value: RBG
184+
- dps_val: 3
185+
value: GRB
186+
- dps_val: 4
187+
value: GBR
188+
- dps_val: 5
189+
value: BRG
190+
- dps_val: 6
191+
value: BGR
162192
- entity: number
163193
name: Strip points
164194
category: config

0 commit comments

Comments
 (0)