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

ERROR! UNKNOWN ERROR 400 | aurora.on = True #17

Open
4k1x opened this issue Oct 28, 2019 · 3 comments
Open

ERROR! UNKNOWN ERROR 400 | aurora.on = True #17

4k1x opened this issue Oct 28, 2019 · 3 comments

Comments

@4k1x
Copy link

4k1x commented Oct 28, 2019

Hello, after installing the application and when turning on the lamp through the function aurora.on = True I get the following error:

ERROR! UNKNOWN ERROR 400. Please post an issue on the GitHub page: https://github.com/software-2/nanoleaf/issues

I have checked the Nanoleaf code APi and have seen that the following Json is sent to turn it on {"on": value}, and in the Nanoleaf API they indicate that the following Json must be sent to turn on: {"on" : {"value": true}} and to turn off {"on": {"value": false}}.

I have made the change in the file and tested the change and it works correctly.

@Nathan1258
Copy link

same ^^

@Ash-Ranjan
Copy link

You can use my fork which fixes the issue, I have opened a pull request for it https://github.com/Ash-Ranjan/nanoleaf/edit/master/nanoleaf/aurora.py

coisme pushed a commit to coisme/nanoleaf that referenced this issue Nov 27, 2020
Fix a bug on software-2#17
This was referenced Nov 27, 2020
@coisme
Copy link

coisme commented Nov 27, 2020

@Ash-Ranjan Oh, you had the same trouble almost same time. I also created a PR bharat#5
to the forked repository which I use

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

4 participants