Skip to content
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

Unable to clear group information off a bulb #8

Open
lightbow opened this issue Mar 13, 2018 · 5 comments
Open

Unable to clear group information off a bulb #8

lightbow opened this issue Mar 13, 2018 · 5 comments

Comments

@lightbow
Copy link
Collaborator

Currently there is no way to remove a bulb from a group using RxLifx-Swift, from what I can tell. I'm trying to figure out the right data to send, and hope to hear back from LIFX on this thread

@flowsprenger
Copy link
Owner

To my understanding the apps will treat group ids with all bytes set to 0 as no group assigned, afterwards it will still respond to GetGroup messages and return the 0 id, but your findings sounds like that is not enough.

@flowsprenger
Copy link
Owner

@lightbow try also setting the Location to a 0 id I think that will have the desired effect

@flowsprenger
Copy link
Owner

@lightbow I tried to get someone from LIFX to officially comment, but seems I didn't have more luck than you :(
There is some undocumented information that we cannot read or write (and that I cannot comment on any further myself), so there is not much we can do at this stage to reset a bulb from group and location for the LIFX app. Well, we can reset group and locations but the LIFX app itself additionally does something else...

@lightbow
Copy link
Collaborator Author

Mark from LIFX just supplied the following information:

A brand new light that has never had a group set will respond to GetGroup with this response :
{"group": "00000000000000000000000000000000", "label": "", "updated_at": 0}

The LIFX apps treat a group id of all zeros as NULL id value and doesn’t display it as a real group.
If you want to delete the group information on a light, you should set the group id to all zeros and the label to be empty. eg.
{"group": "00000000000000000000000000000000", "label": "", "updated_at": 1526875910236}

@flowsprenger
Copy link
Owner

I guess that leaves us with as much information as we already had, no?
Yes you can set the group and location to all 0, like Mark and I suggested, but the LIFX app might not treat the light like an unclaimed light.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants