software-2 / nanoleaf

A python interface for Nanoleaf Aurora lighting
Other
90 stars 30 forks source link

Error 400: No Solution #19

Open ghost opened 3 years ago

ghost commented 3 years ago

Hello, I have write a script and want to implement my Nanoleaf Aurora... When i used this aurora.on method the Script is telling me about a "UNKNOWN ERROR 400" I have the newest version of the API/Module and my Nanoleaf have also the newest version...

I dont have a clue what is Wrong please Help me!

Thanks! DonMarco

        if "abschalten" in text:              
            aurora = Aurora("xxx.xxx.xxx.xx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            aurora.on = True

        if "abschalten" in text:
            print("Nanoleaf wird abgeschalten")
            aurora = Aurora("xxx.xxx.xxx.xx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            aurora.on = False
Ash-Ranjan commented 3 years ago

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