Page 2 of 2

Re: Nanoleaf Controller - Version 1.0.5 Available

PostPosted: Fri Jun 30, 2017 8:01 pm
by chasyori
Thanks... I'm going to reset it and try again..


Sent from my iPhone using Tapatalk

Re: Nanoleaf Controller - Version 1.0.5 Available

PostPosted: Sat Jul 01, 2017 10:01 pm
by chasyori
Thanks guys for your help... I finally got it working..

I did I a reset of it and now it's working like a charm...

after removing it from HomeKit and setting it up again, the plugin found the correct IP address..


Sent from my iPhone using Tapatalk

Re: Nanoleaf Controller - Version 1.0.5 Available

PostPosted: Sun Jul 02, 2017 1:00 am
by autolog
Different Computers wrote:
Somewhere between the plugin and my network, there's trouble.
Code: Select all
Nanoleaf Error                  Discovering nanoleaf devices failed: Socket error while setting up discovery of nanoleaf devices!: [Errno 49] Can't assign requested address


The odd thing is that a few times, the plugin has found the device and it works for a while. But mostly not.


Once the device has been discovered and you have set-up an Indigo Nanoleaf device, the discovery isn't needed. It runs at plugin start or on demand (via an Action) to check the network for new Nanoleaf devices.

So are you saying that when you try and control a Nanoleaf from Indigo (once it has been set-up) that from time to time it doesn't work?

Re: Nanoleaf Controller - Version 1.0.5 Available

PostPosted: Sun Jul 02, 2017 1:02 am
by autolog
chasyori wrote:
Thanks guys for your help... I finally got it working..

I did I a reset of it and now it's working like a charm...

after removing it from HomeKit and setting it up again, the plugin found the correct IP address.

That's good news - I am glad you finally got it working. :D

Re: Nanoleaf Controller - Version 1.0.5 Available

PostPosted: Sun Jul 02, 2017 7:18 am
by Different Computers
I think it’s safe to say that now, it has completely stopped working. All I get is a No ack status on the device. Is it possibly storing a bad IP address that the Aurora doesn’t actually have? The reason I did not suspect this until now is that when I restart the plug and it says it finds the Aurora.

Re: Nanoleaf Controller - Version 1.0.5 Available

PostPosted: Sun Jul 02, 2017 7:37 am
by autolog
You just beat me to it with this problem - I think I have a fix for it :D

I had been playing around with DHCP allocations and realised that re-allocating the IP address was going to confuse the plugin. :?

The good news is that I have just finished the updates for V1.0.6 which will warn of this situation and allow you to correct it. I am just finishing off the documentation for this and expect to have the new release available within the hour. :)

Re: Nanoleaf Controller - Version 1.0.5 Available

PostPosted: Sun Jul 02, 2017 9:14 am
by autolog
Different Computers wrote:
I think it’s safe to say that now, it has completely stopped working. All I get is a No ack status on the device. Is it possibly storing a bad IP address that the Aurora doesn’t actually have? The reason I did not suspect this until now is that when I restart the plug and it says it finds the Aurora.

V 1.0.6 now available which will hopefully allow you to resolve this problem. :)

Re: Nanoleaf Controller - Version 1.0.5 Available

PostPosted: Sun Jul 02, 2017 9:43 am
by Different Computers
I really appreciate your plugging away at this, but still no joy with the 1.0.6:

Code: Select all
 Nanoleaf Error                  Discovering nanoleaf devices failed: Socket error while setting up host 'Unknown.domain' discovery of nanoleaf devices!: [Errno 49] Can't assign requested address
   Nanoleaf Error                  Problem retrieving status for device 'Wall Art': Failed to establish a new connection: [Errno 61] Connection refused


Not sure I've seen "connection refused" before. Should I perhaps delete the device and re-add it?

Re: Nanoleaf Controller - Version 1.0.5 Available

PostPosted: Sun Jul 02, 2017 9:55 am
by autolog
Different Computers wrote:
I really appreciate your plugging away at this, but still no joy with the 1.0.6:

Code: Select all
 Nanoleaf Error                  Discovering nanoleaf devices failed: Socket error while setting up host 'Unknown.domain' discovery of nanoleaf devices!: [Errno 49] Can't assign requested address
   Nanoleaf Error                  Problem retrieving status for device 'Wall Art': Failed to establish a new connection: [Errno 61] Connection refused


Not sure I've seen "connection refused" before. Should I perhaps delete the device and re-add it?

I don't like the look of the 'Unknown.domain' in your discovery. Can you use the host override to specify the actual IP Address of your Apple Mac running the Indigo server. Then reload the plugin and see what happens. You could always turn on full debugging and attach the log so that I can take a look at what is going on.

Connection refused might be because the plugin isn't authorised to access the Nanoleaf device. Have you done a full reset on it recently?

Re: Nanoleaf Controller - Version 1.0.5 Available

PostPosted: Sun Jul 02, 2017 10:09 am
by Different Computers
"Unknown" was the unset hostname of the Mac. I've just noticed that problem and set it to Indigo. My dumbass CenturyLink DSL modem says the domain is "domain".

But I did as you said, and
Code: Select all
   Nanoleaf Error                  Problem retrieving status for device 'Wall Art': Failed to establish a new connection: [Errno 61] Connection refused
after reloading the plugin.

OH! here's some progress:
Code: Select all
   Nanoleaf Error                  WARNING: IP Address changed for Nanoleaf 'Wall Art', it was '192.168.0.29' and is now '192.168.0.6' - Edit Device and Update IP Address.


Updated and now it's working! Many thanks.

Re: Nanoleaf Controller - Version 1.0.5 Available

PostPosted: Sun Jul 02, 2017 10:19 am
by autolog
Great - that is excellent news :D

The checking of the IP Address occurs in the Discovery processing - it double checks what it found against what has been saved in the Indigo device and warns if it doesn't agree. The message won't display until the discovery ends. :)

Re: Nanoleaf Controller - Version 1.0.5 Available

PostPosted: Sun Jul 02, 2017 9:45 pm
by howartp
Jon, I'm completely outside of this as I don't own any Nanoleafs so don't even have the plugin installed but following the threads here and thinking out loud...

Is it worth, based on your last update and reply to DC, automatically updating the stored IP address of your plugin nanoleaf device to that which you've discovered, now that you can detect mis-matches?

Or, if not possible/practical, set the ui display state to say "mismatched IP" and enable error state (so it goes red) - this will prompt users to check log and find your nudging to update IP?


Sent from my iPhone using Tapatalk Pro

Re: Nanoleaf Controller - Version 1.0.5 Available

PostPosted: Mon Jul 03, 2017 12:39 am
by autolog
Hi Peter,
Thanks for the suggestions. :D

howartp wrote:
... Is it worth, based on your last update and reply to DC, automatically updating the stored IP address of your plugin nanoleaf device to that which you've discovered, now that you can detect mis-matches?

I did consider that (and may still do so) but thought it best for the user to take a specific action to correct the issue in case it indicated a wider network problem. I could potentially add a user option to enable auto-correct or similar.

howartp wrote:
Or, if not possible/practical, set the ui display state to say "mismatched IP" and enable error state (so it goes red) - this will prompt users to check log and find your nudging to update IP?

It will currently show no ack - your suggestion is more user friendly and helpful. I will look at including it in the next release. :)

Re: Nanoleaf Controller - Version 1.0.5 Available

PostPosted: Sun Jul 23, 2017 8:03 am
by Different Computers
Just some kudos where they're due: Last night I had a power outage (and of course I was in the midst of an OS X install, but that's unrelated) and this morning I happened to notice that my Aurora is not responding to scene commands from HomeKit or from the Nanoleaf app.

But commands from Indigo via your plugin are working just fine!