Cant connect via python

Started by MT_07
53e82f56fb7357003792fa2e0b4766dd?s=128&d=mm

MT_07

Hello, i am trying to connect to the Nanoleaf Rythm Edition. It works fine over the IOS App. For my project i need to use python though. I imported Nanoleaf and Aurora vom Nanoleaf, but if i run: "setup.find_auroras()" i get the following return "Starting discovery. This will continue for 30 seconds.
Discovery complete, but no Auroras found!" Any help would be great :)

280fc1be3e59afee6f397463eecec64e?s=128&d=mm

ssnover

I'm not sure which python package you're using, but I suspect it's this one: https://github.com/software-2/nanoleaf. That library performs discovery over SSDP, and I saw some notes in the source that this is unreliable. I've gotten mDNS working reliably using my Rust crate: https://github.com/ssnover95/borealis. If you build you could use it to determine at least the IP address of your Aurora, however it may change if you can't set a static IP. You can use Wireshark to debug what's going wrong with the SSDP discovery on your network.

C39416f4bdabbd5010f596095fb24348?s=128&d=mm

Aliakbar Eski

@MT_07

I would also check if your router is blocking traffic on UDP Port 1900.
SSDP traffic might be blocked on your network by default, which is required for discovery.

Regards