-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updating field names for 'Group' and added a new 'Edit' interface #2
base: master
Are you sure you want to change the base?
Conversation
21145af
to
1a31ef3
Compare
Odd - it's been a while since I've used this piece of code, but I'm fairly sure this code worked as-is when I wrote it. Which means that (1) I was completely mistaken (bit hard to believe) (2) you are completely mistaken now (likewise), (3) they've changed the API incompatibly (sadly believable but I'd like to confirm), or (4) it differs product-by-product. I'd like to test this out on my own controller before merging, but I won't have a chance to play with it until this weekend I think. |
The code "works" for the most part, i.e. there's no error. The first commit has fixes that "hides" certain fields because of the mismatch in field names. I can't test it over firmware versions, so YMMV. Background for the second commit: When all 3 Group fields are changed (name, intensity and color) at the same time, the Luxor app makes 2 separate calls in order: (1) GroupListRename to change the name first and (2) uses that changed name as a key inside GroupListEdit to change the intensity + color. This commit adds that second function. |
Sorry, I said I'd look at this like next weekend then I forgot about it for half a year. I noticed it again today when I was playing with this library. This is taken from a reply from my controller:
I don't see the |
Flashed to the latest firmware for my model: Fpack 0.168, 0.16. No change. I don't have the abbreviated field names you do, so merging this would make it no longer work for me. |
Just noticed this and I also have the abbreviated names on my system. Only seems to be present in the GroupListGet response so far (the theme responses use the full names). LMK and I can help debug. Of note I'm converting this to an OpenAPI spec as I need the bindings available in either Python or Typescript: https://github.com/dcramer/luxor-openapi (I've not really used OpenAPI before, but I'm trying it out as it seems like it'd be more value-add for the world then me just rewriting the spec into TS) |
The field names have been updated to unmarshall correctly. I've kept the mnemonic names to make it more readable.