-
Notifications
You must be signed in to change notification settings - Fork 266
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
Error in get_light_objects #29
Comments
I think I've figured it out. I'm not totally sure what happened to make it stop working but giving the bridge a username as part of the bridge init (which in phue.py says is optional, and is not used in examples). In the past whenever there was an update I would just get an error telling me to push the button and then it would work, this time I actually had to put in the username. Did some API change or is this just my computers being weird? |
It's probably because your api key got deleted in the bridge after the update. lecaude.com
|
I actually changed the bridge init method because I didnt want to go though and change all my scripts. # def __init__(self, ip=None, username=None):
def __init__(self, ip=None, username="newdeveloper"): when I change back to username=None, I get the error above. I remember throwing in some prints to debug what might be the problem (wish I had logged them!) and remember seeing somewhere that it was trying to interact with the bridge using some seemingly random username (along the lines of /api/asd6sdf6876sdf/...). I dont know if this helps at all but it would explain the error above since it a random username would be invalid. I actually figured out it was a username issue originally by printing the light object from the error above (before crashing) and got this output:
I dont know if that helps at all... I'm not much of a python developer, I mostly work with AVR micros so this is mostly just me fumbling around. |
Having this same issue, after not running my script for a long time debug info:
|
Perhaps your API key isn't valid anymore. Try deleting the .python_hue file and doing the registration/button push again |
That worked, thanks! I just had to push the button again too. Otherwise, I got this error:
|
Whenever I try to run the get_light_objects method I get the following error:
The error started appearing for me about 2 or 3 weeks ago. I noticed it after a base station update (maybe the problem?) but I dont think there was an API change. I dont think its my code either since I get this error while running the examples as well (the error above came from the "random_colors.py" example).
Any idea why this started happening?
The text was updated successfully, but these errors were encountered: