I've learned how to create packets to turn on/off and set color to my lights/bulbs (in python3). I cannot figure out for the life of me how to craft a packet to control multi-zones individually on a Z strip.
Please give me just a little hint .
Here’s an example packet that I created to change the Z strips color;
3100 0014 00000000 d073d5???0000 000000000000 00 00 0000000000000000 6600 0000 00 b600 ffff 6626 0000 00000000.
What do I change to make it just change a single zone?
For that you’ll need a SetColorZones packet
So if you want to set zone 10, then you’d set start_index and end_index to 10
For example:
3300001401000000d073d5000000000000000000000002010000000000000000f50100000a0a1c47ffffff7fac0de803000001
size : 51
protocol : 1024
addressable : True
tagged : False
reserved1 : b'\x00'
source : 1
target : b'\xd0s\xd5\x00\x00\x00\x00\x00'
reserved2 : b'\x00\x00\x00\x00\x00\x00'
res_required : False
ack_required : True
reserved3 : b'\x00'
sequence : 1
reserved4 : b'\x00\x00\x00\x00\x00\x00\x00\x00'
pkt_type : 501
reserved5 : b'\x00\x00'
start_index : 10
end_index : 10
hue : 18204
saturation : 65535
brightness : 32767
kelvin : 3500
duration : 1000
apply : 1
2 Likes
Thank you Delfick, This is EXACTLY the hint that I needed. I was close but your example showed me what I was missing.
1 Like
Awesome! Glad to have helped 