|
Does photons support getting information from light strips with more than 82 zones? My goal is to try and get the initial value of all 120 zones of my light strip. Right now, I have this:
zone_count is 120 as expected, however len(zone_buff) only has 82 values with the actual color information. I was reading that only 82 values can be returned in the first packet, but I'm not sure how I can check for a second packet to get the rest of the values - is this something that is possible? I'm relatively new to Python, and learning as I go, but examples are appreciated! |
Replies: 5 comments 7 replies
|
hi @rh37hd , I believe you'll have a better time if you use the gatherer instead. So something like That code will already handle for you how the extended multizone messages will return multiple packets if the device has more than 82 zones. |
|
I don't have it quite working yet, but it may just be my lack of python experience. here is my function Which I'm calling this way: And here is the output: To me, it looks like it's not seeing the "zones" plan, that's why I added the"capability" plan just to make sure communication with the device is successful and it looks like that one is working. |
|
Thank you for the help - this is what I get back. |
|
I'll answer what I can right away. I trimmed some of the extra logging from the output last time. For a full picture view, here is a copy of the entire script. And here is the full output: I modified the function to this: And here is the output: |
|
Sounds good, I appreciate your response and assistance! |
hi @rh37hd , I believe you'll have a better time if you use the gatherer instead.
So something like
That code will already handle for you how the extended multizone messages will return multiple packets if the device has more than 82 zones.