cannot register plugin with hue hub

Posted on
Tue Jan 13, 2015 5:33 am
Jesse offline
Posts: 8
Joined: Jan 11, 2015

cannot register plugin with hue hub

Hello,

I am hoping for a bit of help. I am unable to get the plugin to register with the hue hub. I suspect that this may somehow be due to my botching my first attempt at installation. I fat fingered the entry of the hub's ip and entered it incorrectly. I caught the error when I tried to create my first hue device (bulb) and I got an error indicating that I was not paired with the hub. I went back into config and spotted the incorrect ip. I changed the ip, hit start/finish, pressed the button on the hub, and hit start finish again. No go. I tried reloading hue devices but that made no difference.

At that point I tried deleting the prefs file and reconfiguring numerous times, removing the entire plugin and starting over numerous times, resetting the hue hub to its default settings (button on the bottom of the hub), upgrading the hub's firmware, restarting the router, changing the ip reservation for the hub, etc. All to no effect. I am still seeing the same error when trying to create and configure a device.

I have verified the ip of the hub both on my router and on the meet hue website. It is correct. I can control the bulbs through my ios devices just fine.

I have noticed that when I click the start/finish button a message saying something about waiting for the hub flashes for just a split second at the bottom of the config pane. Should this message be persisting until I hit the button on the hub?

Here is my log file:

2015-01-11 21:32:35.732 Application Starting Indigo Server version 6.0.19 (Mac OS X 10.5.8)
2015-01-11 21:32:35.732 Application Loading attachments
2015-01-11 21:32:35.743 Application "device target attachment.scpt" script loaded
2015-01-11 21:32:35.751 Application "group target attachment.scpt" script loaded
2015-01-11 21:32:35.762 Application "growl attachment.scpt" script loaded
2015-01-11 21:32:35.791 Application "iTunes attachment.scpt" script loaded
2015-01-11 21:32:35.799 Application "scenes attachment.scpt" script loaded
2015-01-11 21:32:35.811 Application "time stamp attachment.scpt" script loaded
2015-01-11 21:32:36.212 Application Loading plugin "Action Collection 1.4.13"
2015-01-11 21:32:36.251 Application Starting plugin "Action Collection 1.4.13" (pid 320)
2015-01-11 21:32:36.254 Application Loading interface "INSTEON Commands 2.0.5"
2015-01-11 21:32:36.287 Application Starting interface "INSTEON Commands 2.0.5" (pid 321)
2015-01-11 21:32:36.290 Application Loading interface "Z-Wave 1.0.301"
2015-01-11 21:32:36.320 Application Starting interface "Z-Wave 1.0.301" (pid 322)
2015-01-11 21:32:36.325 Application Found disabled plugin "Airfoil 1.1.7"
2015-01-11 21:32:36.327 Application Found disabled plugin "DIRECTV DVR Control 1.0.0"
2015-01-11 21:32:36.329 Application Found disabled plugin "EasyDAQ Relay Card 1.1.7"
2015-01-11 21:32:36.330 Application Found disabled plugin "Growl 1.1.2"
2015-01-11 21:32:36.397 Application Found disabled plugin "Hue Lights 1.3.10"
2015-01-11 21:32:36.399 Application Found disabled plugin "iCal Alarm Processor 1.1.0"
2015-01-11 21:32:36.401 Application Found disabled plugin "iTunes 1.1.5"
2015-01-11 21:32:36.403 Application Found disabled plugin "NOAA Weather 1.1.1"
2015-01-11 21:32:36.405 Application Found disabled plugin "SQL Logger 1.1.8"
2015-01-11 21:32:36.406 Application Found disabled plugin "Timers and Pesters 1.1.5"
2015-01-11 21:32:36.443 Application Found disabled plugin "Vera Bridge 1.0.6"
2015-01-11 21:32:36.444 Application Found disabled interface "Virtual Devices 1.0.11"
2015-01-11 21:32:36.446 Application Found disabled plugin "WeatherSnoop 2.0.5"
2015-01-11 21:32:36.478 Application Bonjour registered "Indigo - Sample House"
2015-01-11 21:32:36.929 Application Indigo Cocoa client connected
2015-01-11 21:32:39.964 Application Started plugin "Action Collection 1.4.13"
2015-01-11 21:32:40.252 Application Started interface "INSTEON Commands 2.0.5"
2015-01-11 21:32:42.789 Application Started interface "Z-Wave 1.0.301"
2015-01-11 21:32:43.115 Z-Wave connected to Z-Stick S2 interface on /dev/cu.SLAB_USBtoUART (firmware 3.07)
2015-01-11 21:32:44.676 Application WebServer client connected
2015-01-11 21:32:44.695 WebServer started on port 8176 -- digest authentication enabled
2015-01-11 21:32:46.216 Application Connected to PowerLinc 2413U interface on port usbserial-A603342I
2015-01-11 21:32:46.216 Application PowerLinc address 33.E3.CE, firmware version 9.14
2015-01-11 21:32:57.450 Schedule Basement stairway lights (delayed action)
2015-01-11 21:32:57.729 Sent INSTEON "Basement stairway dimmer" off
2015-01-11 21:32:59.401 Application Enabling plugin "Hue Lights 1.3.10"
2015-01-11 21:32:59.410 Application Starting plugin "Hue Lights 1.3.10" (pid 324)
2015-01-11 21:33:00.970 Application Started plugin "Hue Lights 1.3.10"
2015-01-11 21:33:01.183 Z-Wave received "002 - Luminance" sensor update to 6 lux
2015-01-11 21:33:01.219 Z-Wave received "002 - Humidity" sensor update to 29%
2015-01-11 21:33:01.253 Z-Wave received "002 - Temperature" sensor update to 65.3 °F
2015-01-11 21:33:01.703 Hue Lights Your plugin version, v1.3.10, is current.
2015-01-11 21:33:01.707 Hue Lights Error No IP address set for the Hue hub. You can get this information from the My Settings page at http://www.meethue.com.
2015-01-11 21:33:01.710 Hue Lights Error No IP address set for the Hue hub. You can get this information from the My Settings page at http://www.meethue.com.
2015-01-11 21:33:10.659 Hue Lights Debug logging enabled
2015-01-11 21:34:52.430 Hue Lights Checking with the Hue hub at for pairing state...
2015-01-11 21:34:52.431 Hue Lights Debug Request is {"username": "1e70b00cb07269f3995d6cf86e4b7a54", "devicetype": "Indigo Hue Plugin"}
2015-01-11 21:34:52.976 Hue Lights Error Failed to connect to the Hue hub at . - Check that the hub is connected and turned on and that the network settings are correct.
2015-01-11 21:35:03.852 Z-Wave received "Basement stairway - Motion Sensor" status update is on
2015-01-11 21:35:03.853 Trigger Basement stairway lights
2015-01-11 21:35:04.200 Sent INSTEON "Basement stairway dimmer" on to 100
2015-01-11 21:35:23.391 Z-Wave received "Basement stairway - Motion Sensor" status update is off
2015-01-11 21:35:32.180 Z-Wave received "Basement stairway - Motion Sensor" status update is on
2015-01-11 21:35:32.181 Trigger Basement stairway lights
2015-01-11 21:35:32.461 Sent INSTEON "Basement stairway dimmer" on to 100
2015-01-11 21:35:48.983 Hue Lights Checking with the Hue hub at for pairing state...
2015-01-11 21:35:48.984 Hue Lights Debug Request is {"username": "1e70b00cb07269f3995d6cf86e4b7a54", "devicetype": "Indigo Hue Plugin"}
2015-01-11 21:35:48.984 Hue Lights Error Failed to connect to the Hue hub at . - Check that the hub is connected and turned on and that the network settings are correct.
2015-01-11 21:35:51.020 Hue Lights Debug closedPrefsConfigUi called
2015-01-11 21:35:51.020 Hue Lights Debug logging enabled
2015-01-11 21:35:51.409 Z-Wave received "Basement stairway - Motion Sensor" status update is off
2015-01-11 21:36:15.655 Hue Lights Debug closedPrefsConfigUi called
2015-01-11 21:36:15.655 Hue Lights Debug logging disabled

I do not know why it indicates that there is no ip set for the hub. I opened up the prefs file for the plugin and saw that it did have the correct ip as set in the config pane.

Thanks in advance. Any help will be very much appreciated.

Yours,
Jesse

Posted on
Tue Jan 13, 2015 12:16 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: cannot register plugin with hue hub

Hi Jesse.

Sorry to hear you're having trouble getting the plugin to work.

It looks like you've already done quite a bit of troubleshooting. That's helpful. You mentioned that you'd already tried deleting the preferences. Let's try that again, but this time disable the plugin using the Plugins menu in Indigo first. This first step is important because just before a plugin is disabled or reloaded, it saves the preferences it has in memory back to the plugin preferences file. If it's missing, the file is re-created, so if you'd deleted the preferences before reloading the plugin, it wouldn't necessarily have erased the preferences since they were cached in memory. Try this...

  1. Disable the Hue Lights plugin from the Plugins menu in Indigo (Plugins -> Hue Lights -> Disable).
  2. Delete the Hue Lights plugin preferences at /Library/Application Support/Perceptive Automation/Indigo 6/Preferences/Plugins/com.nathansheldon.indigoplugin.HueLights.indiPref by moving it to the Trash and emptying the Trash. Emptying the Trash is important.
  3. Enable the Hue Lights plugin in Indigo (Plugins -> Hue Lights -> Enable).
  4. Upon enabling the plugin, you should be prompted to configure it. Enter the IP address of your Hue hub.
  5. Click the Start/Finish button but do not click the Save button yet.
  6. Go to the Hue hub and press the center button.
  7. Come back to the plugin configuration window which should still be open and click the Start/Finish button again. A value should appear in the "Host ID" field.
  8. Click the Save button. The Hue Lights plugin should now be registered with the hub.

Also, there is a newer Indigo Pro version out (6.0.20) which addresses some bugs introduced in 6.0.19. They may not be related, but I'd suggest updating to the latest version in addition to the steps above.

Let me know if that works for you.

Posted on
Tue Jan 13, 2015 1:09 pm
Jesse offline
Posts: 8
Joined: Jan 11, 2015

Re: cannot register plugin with hue hub

Thanks for your help!

I am pretty sure I have done exactly this at least once, but I will try again this evening. I will be sure to upgrade Indigo first and then follow the steps exactly as you have laid them out.

Question? When I get to step 4 should I find that the "Host ID" field is empty?

Once again: Thanks

Yours,
Jesse

Posted on
Tue Jan 13, 2015 1:22 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: cannot register plugin with hue hub

Hi Jesse.

Yes. If the preferences were indeed deleted as expected, the Host ID should initially appear blank in the plugin configuration. If it is not blank the first time the configuration window appears, then the preferences were not removed as expected. Once the plugin is registered with the Hue hub, that field should never be blank again. It will also not be editable as the data in that field is a string generated by the plugin itself and used to identify the plugin to the hub when sending communications to the hub.

Posted on
Wed Jan 14, 2015 8:32 pm
Jesse offline
Posts: 8
Joined: Jan 11, 2015

Re: cannot register plugin with hue hub

Hello,

So this evening I have finally had a chance to give this a go. I followed your instructions but found that the Host ID was still populated when I re-enabled the plugin. I disabled the plugin again, completely shut down indigo, and confirmed that the prefs file was gone and that the waste basket had indeed been emptied. I fired up indigo and enabled the plugin. The config pane opened as expected, but the Host ID was still populated.

I once again did a complete shutdown of indigo, but this time I not only deleted the prefs file, I also deleted the plugin. I emptied the waste basket and fired up indigo. I confirmed that the plugin was no longer present. I downloaded a fresh copy of the plugin and re-installed it. The config pane opened and the Host ID was still populated.

Almost forgot - I did begin the whole process by updating to the latest version of indigo.

Any thoughts on what I should try next?

Thanks again,

Jesse

Posted on
Thu Jan 15, 2015 2:22 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: cannot register plugin with hue hub

Hi Jesse.

I apologize. I just reviewed the code for the functions in the plugin that work with the Host ID in the plugin configuration. The Host ID isn't generated by the Hue hub but is randomly generated by the plugin itself and automatically populated in that field if there is no Host ID in the plugin preferences already. It is indeed normal for a value to appear in that field even if you haven't registered the plugin with the hub yet. Sorry for the misinformation and confusion. The next Hue Lights plugin update will correct the incorrect instructions in the configuration dialog that indicate the Host ID is provided by the Hue hub (it's not).

Since you've completed all the troubleshooting steps by disabling the plugin, removing the preferences and re-enabling the plugin, go ahead and try to register the plugin with the hub again. Hopefully this will resolve the issue.

Posted on
Thu Jan 15, 2015 10:36 am
Jesse offline
Posts: 8
Joined: Jan 11, 2015

Re: cannot register plugin with hue hub

Hello Nathan,

Thanks very much for the clarification.

I gave it a go this morning but had no success. I followed the process you outlined to pair the plugin with the hub. When I tried to create and configure a device (hue bulb) I got an error message saying "Not currently paired with the hue hub. Close this window and use the configure option in the Plugins -> Hue Lights menu to pair Hue Lights with the hue hub first."

What should I try next?

Thanks again!

Yours,
Jesse

Posted on
Thu Jan 15, 2015 6:45 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: cannot register plugin with hue hub

Hi Jesse.

That's odd. Okay, let's try again. Disable the plugin, delete the com.nathansheldon.indigoplugin.HueLights.indiPlug preferences file from the /Library/Application Support/Personable Automation/Indigo 6/Preferences/Plugins folder, then re-enable the plugin. When the configuration dialog appears, this time only enter the IP address, enable Debug Logging, then click Save. Then re-open the configuration window (Plugins -> Hue Lights -> Configure) and try clicking the Start/Finish button. Press the center button on the hub, then click the Start/Finish button again. Then click Save. Try adding a bulb to Indigo. If that doesn't work, send me the entire log. If copying and pasting doesn't work well due to the size, email the entire log file for the day in the /Library/Application Support/Perceptive Automation/Indigo 6/Logs folder to nsheldon at gmail dot com (at = @ and dot = . obviously). I want to see exactly what's going on every step of the way.

Note that I'll be away from home and unable to provide much more than short replies this Friday through Sunday, but I'll be able to reply more fully on Monday, if needed.

Regards,
Nathan

Posted on
Thu Jan 15, 2015 8:57 pm
Jesse offline
Posts: 8
Joined: Jan 11, 2015

Re: cannot register plugin with hue hub

Hello Nathan,

Thanks very much for your help.

I followed your instructions, but still had no success. The log is too large to paste in here, so I sent it via email.

Have a good trip. !!!!!!UPDATE - SEE NEXT POST!!!!!!!!!!

Yours,
Jesse
Last edited by Jesse on Thu Jan 15, 2015 9:15 pm, edited 1 time in total.

Posted on
Thu Jan 15, 2015 9:13 pm
Jesse offline
Posts: 8
Joined: Jan 11, 2015

Re: cannot register plugin with hue hub

Hello Nathan,

The log I just sent indicates that the hue hub button was not pressed during the pairing process. Well, I know I pushed it. This got me thinking that maybe there is only a short window of time to press the button, and that going from the basement to an upstairs closet to press the button may be causing me to miss that short window. I tried having my son on the hub button while I was at the indigo server running the config and this seems to have worked.

Thanks again for all the help.

Yours,
Jesse

Posted on
Thu Jan 15, 2015 9:22 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: cannot register plugin with hue hub

Hi Jesse.

Good thinking! I'm glad that worked. I had just assumed that the Hue hub was only a few seconds away from the Indigo server and thus easily accessible after clicking the Start/Finish button. But you are correct. There is only a short time frame to perform the whole pairing process. I'm not sure off hand what that time is, I just remember reading somewhere that there was a time limit.

In any case, I'm glad it's working now.

Regards,
Nathan

Posted on
Mon May 09, 2016 9:39 am
odavis offline
Posts: 46
Joined: Jan 14, 2011
Location: El Cerrito, CA

Re: cannot register plugin with hue hub

I'm having very similar struggles to those documented above where the hub won't pair with the plugin. I was having the exact same issues described and tried the reset steps multiple times (disable, delete, enable, enter IP, pair, press button, pair, save) until finally I started getting the error messages shown below. I tried googling the error message but found nothing.

One possibility: while checking the Hue website for firmware updates I saw a notice about new security that was rolled out in a late April firmware update. Perhaps this security update has broken the communication.

I've triple checked the IP and done everything I can think of including restart the server and verify that the hue hub will pair with an iOS app. The only thing I haven't done is reset the Hue hub. Indigo is version 6.1.8.

Oddly the exact same steps repeated eventually yielded a slightly different set of errors in the log. Any ideas or assistance welcome!

Code: Select all
May 9, 2016, 1:43:41 AM
  Enabling plugin "Hue Lights 1.3.19"
  Starting plugin "Hue Lights 1.3.19" (pid 3042)
  Started plugin "Hue Lights 1.3.19"
  Hue Lights                      Your plugin version, v1.3.19, is current.
  Hue Lights Error                No IP address set for the Hue hub. You can get this information from the My Settings page at http://www.meethue.com.
  Hue Lights Error                No IP address set for the Hue hub. You can get this information from the My Settings page at http://www.meethue.com.
  Hue Lights                      Debug logging enabled

May 9, 2016, 1:45:00 AM
  Hue Lights                      Checking with the Hue hub at  for pairing state...
  Hue Lights Debug                Request is {"username": "25421e88831c257652616c860ac9d7ee", "devicetype": "Indigo Hue Plugin"}
  Hue Lights Warning              Retrying (3 attempts remain) after connection broken by 'error(61, 'Connection refused')': /api
  Hue Lights Warning              Retrying (2 attempts remain) after connection broken by 'error(61, 'Connection refused')': /api
  Hue Lights Warning              Retrying (1 attempts remain) after connection broken by 'error(61, 'Connection refused')': /api
  Hue Lights Warning              Retrying (0 attempts remain) after connection broken by 'error(61, 'Connection refused')': /api
  Hue Lights Error                Failed to connect to the Hue hub at . - Check that the hub is connected and turned on and that the network settings are correct.
  Hue Lights                      Checking with the Hue hub at  for pairing state...
  Hue Lights Debug                Request is {"username": "25421e88831c257652616c860ac9d7ee", "devicetype": "Indigo Hue Plugin"}
  Hue Lights Warning              Retrying (3 attempts remain) after connection broken by 'error(61, 'Connection refused')': /api
  Hue Lights Warning              Retrying (2 attempts remain) after connection broken by 'error(61, 'Connection refused')': /api
  Hue Lights Warning              Retrying (1 attempts remain) after connection broken by 'error(61, 'Connection refused')': /api
  Hue Lights Warning              Retrying (0 attempts remain) after connection broken by 'error(61, 'Connection refused')': /api
  Hue Lights Error                Failed to connect to the Hue hub at . - Check that the hub is connected and turned on and that the network settings are correct.

Posted on
Mon May 09, 2016 10:48 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: cannot register plugin with hue hub

Hi.

Sorry to hear you're having trouble with the Hue Lights plugin setup.

The line in the log that is catching my eye is

Code: Select all
Hue Lights Error                No IP address set for the Hue hub. You can get this information from the My Settings page at http://www.meethue.com.
That indicates there's something odd with the IP address entered into the Hue Lights configuration. Any errors after that are likely a result of this first error. Double check the IP address in the Hue Lights configuration (Plugins menu -> Hue Lights -> Configure). I'd recommend deleting everything that's entered into the "IP Address" field and re-typing the IP address. Don't paste in the address as doing so may inadvertently include spaces or other hidden characters that will cause errors. Note that the "IP Address" field only supports IPv4 addresses as shown in the example text under the "IP Address" text entry field. Don't use domain names or IPv6 addresses as they likely will not work. Philips has made it a bit more difficult to find the IP address for the hub than when the Hue Lights plugin was originally released (shortly after the Hue system was released). To find the IP address without digging into your home network router settings, you have to sign into the my.meethue.com web site, click on "Settings", click on "My Bridge", then click on the "More Bridge Details" button once the bridge settings appear. The "Internal IP Address" is what you're looking for in that page. This method does require that you have a My Hue account setup and that your bridge is registered there. Most people will have this, but it's not technically required for the Hue bridge to work within your home network.

Once that first error above is fixed, then we can address any additional errors that might appear.

Posted on
Mon May 09, 2016 11:11 am
odavis offline
Posts: 46
Joined: Jan 14, 2011
Location: El Cerrito, CA

Re: cannot register plugin with hue hub

I've triple checked the IP and know that it is 10.167.168.50. I'm assigning it by DHCP, can ping it, and can confirm it in myhue.com.

I've entered it multiple times after resetting the entire Hue plugin through the disable, delete, enable routine.

Regardless of that line about "no IP" there is a correct IP there as *soon* as I can possibly add it. Just for some reason it's not being recognized.

Posted on
Mon May 09, 2016 11:31 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: cannot register plugin with hue hub

I'll need to see the debug log output then.

Please go to Plugins -> Hue Lights -> Configure and put a check next to "Enable Debugging" then reload the plugin. Paste in the Indigo log from the point where the plugin was reloaded to a few lines after the first error message.

Who is online

Users browsing this forum: No registered users and 0 guests