Hue Lights discussion

This forum is archived topics from before the plugin was moved to the new owner. All topics are locked, but are preserved here for future reference.
kennybroh
Posts: 532
Joined: Sun Dec 13, 2009 8:12 pm
Location: Baltimore

Re: Hue Lights discussion

Post by kennybroh »

Still having the problem but we may be making progress. It appears to go for longer periods without reporting the error, but once it does it will give the error multiple times in a row, and then it will resume connecting to the hub. Here are a few things I noticed.

First, after I installed the new version, it told me it loaded 10 bulbs. Then I got the error about 20 times followed by:

Code: Select all

  Hue Lights                      Error retrieving Hue bulb status: No JSON object could be decoded
So I turned debugging back on, and this is what I got. For a while it successfully gets the information from the hub, but then it stops.

Code: Select all

Sep 4, 2013 4:18:56 AMHue Lights Debug                Get device status for landing table lamp
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/5
  Hue Lights Debug                Data from hub: {"state": {"on":true,"bri":255,"hue":14922,"sat":144,"xy":[0.4595,0.4105],"ct":369,"alert":"none","effect":"none","colormode":"hs","reachable":true}, "type": "Extended color light", "name": "Landing ", "modelid": "LCT001", "swversion": "65003148", "pointsymbol": { "1":"none", "2":"none", "3":"none", "4":"none", "5":"none", "6":"none", "7":"none", "8":"none" }}
  Hue Lights Debug                Get device status for over tub bulb
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/2
  Hue Lights Debug                Data from hub: {"state": {"on":true,"bri":254,"hue":14922,"sat":144,"xy":[0.4595,0.4105],"ct":369,"alert":"none","effect":"none","colormode":"ct","reachable":true}, "type": "Extended color light", "name": "Over Tub", "modelid": "LCT001", "swversion": "65003148", "pointsymbol": { "1":"none", "2":"none", "3":"none", "4":"none", "5":"none", "6":"none", "7":"none", "8":"none" }}
  Hue Lights Debug                Get device status for Stainless steel lamp bulb
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/1
  Hue Lights ,..                Data from hub: {"state": {"on":true,"bri":254,"hue":14922,"sat":144,"xy":[0.4595,0.4105],"ct":369,"alert":"none","effect":"none","colormode":"hs","reachable":true}, "type": "Extended color light", "name": "MBR stainless lamp ", "modelid": "LCT001", "swversion": "65003148", "pointsymbol": { "1":"none", "2":"none", "3":"none", "4":"none", "5":"none", "6":"none", "7":"none", "8":"none" }}
  Hue Lights Debug                Get device status for Stefan's Room
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/9
  Hue Lights Debug                Data from hub: {"state": {"on":true,"bri":60,"hue":0,"sat":0,"xy":[0.0000,0.0000],"ct":0,"alert":"none","effect":"none","colormode":"hs","reachable":true}, "type": "Extended color light", "name": "Stefan's Room", "modelid": "LCT001", "swversion": "65003148", "pointsymbol": { "1":"none", "2":"none", "3":"none", "4":"none", "5":"none", "6":"none", "7":"none", "8":"none" }}
  Hue Lights Debug                Get device status for  entry hanging bulb
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/6
  Hue Lights Debug                Data from hub: {"state": {"on":true,"bri":254,"hue":14922,"sat":144,"xy":[0.4595,0.4105],"ct":369,"alert":"none","effect":"none","colormode":"ct","reachable":true}, "type": "Extended color light", "name": "Entry Chandelier", "modelid": "LCT001", "swversion": "65003148", "pointsymbol": { "1":"none", "2":"none", "3":"none", "4":"none", "5":"none", "6":"none", "7":"none", "8":"none" }}
  Hue Lights Debug                Get device status for  my reading light
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/7
  Hue Lights Debug                Data from hub: {"state": {"on":false,"bri":1,"hue":14922,"sat":144,"xy":[0.4595,0.4105],"ct":369,"alert":"none","effect":"none","colormode":"hs","reachable":true}, "type": "Extended color light", "name": "My Reading Light", "modelid": "LCT001", "swversion": "65003148", "pointsymbol": { "1":"none", "2":"none", "3":"none", "4":"none", "5":"none", "6":"none", "7":"none", "8":"none" }}
  Hue Lights Debug                Get device status for Darcy's Reading Lamp
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/4
  Hue Lights Debug                Data from hub: {"state": {"on":true,"bri":255,"hue":0,"sat":0,"xy":[0.0000,0.0000],"ct":0,"alert":"none","effect":"none","colormode":"hs","reachable":true}, "type": "Extended color light", "name": "Darcy's Reading Light ", "modelid": "LCT001", "swversion": "65003148", "pointsymbol": { "1":"none", "2":"none", "3":"none", "4":"none", "5":"none", "6":"none", "7":"none", "8":"none" }}
  Hue Lights Debug                Get device status for landing table lamp
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/5
  Hue Lights Debug                Data from hub: {"state": {"on":true,"bri":255,"hue":14922,"sat":144,"xy":[0.4595,0.4105],"ct":369,"alert":"none","effect":"none","colormode":"hs","reachable":true}, "type": "Extended color light", "name": "Landing ", "modelid": "LCT001", "swversion": "65003148", "pointsymbol": { "1":"none", "2":"none", "3":"none", "4":"none", "5":"none", "6":"none", "7":"none", "8":"none" }}
  Hue Lights Debug                Get device status for over tub bulb
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/2
  Hue Lights Debug                Data from hub: {"state": {"on":true,"bri":254,"hue":14922,"sat":144,"xy":[0.4595,0.4105],"ct":369,"alert":"none","effect":"none","colormode":"ct","reachable":true}, "type": "Extended color light", "name": "Over Tub", "modelid": "LCT001", "swversion": "65003148", "pointsymbol": { "1":"none", "2":"none", "3":"none", "4":"none", "5":"none", "6":"none", "7":"none", "8":"none" }}
  Hue Lights Debug                Get device status for Stainless steel lamp bulb
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/1
  Hue Lights Debug                Data from hub: {"state": {"on":true,"bri":254,"hue":14922,"sat":144,"xy":[0.4595,0.4105],"ct":369,"alert":"none","effect":"none","colormode":"hs","reachable":true}, "type": "Extended color light", "name": "MBR stainless lamp ", "modelid": "LCT001", "swversion": "65003148", "pointsymbol": { "1":"none", "2":"none", "3":"none", "4":"none", "5":"none", "6":"none", "7":"none", "8":"none" }}
  Hue Lights Debug                Get device status for Stefan's Room
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/9
  Hue Lights Debug                Data from hub: {"state": {"on":true,"bri":60,"hue":0,"sat":0,"xy":[0.0000,0.0000],"ct":0,"alert":"none","effect":"none","colormode":"hs","reachable":true}, "type": "Extended color light", "name": "Stefan's Room", "modelid": "LCT001", "swversion": "65003148", "pointsymbol": { "1":"none", "2":"none", "3":"none", "4":"none", "5":"none", "6":"none", "7":"none", "8":"none" }}
  Hue Lights Debug                Get device status for  entry hanging bulb
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/6
  Hue Lights                      Failed to connect to the Hue hub at 192.168.10.23. - Check that the hub is connected and turned on.
  Hue Lights Debug                Get device status for  my reading light
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/7
  Hue Lights                      Failed to connect to the Hue hub at 192.168.10.23. - Check that the hub is connected and turned on.
  Hue Lights Debug                Get device status for Darcy's Reading Lamp
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/4
  Hue Lights                      Failed to connect to the Hue hub at 192.168.10.23. - Check that the hub is connected and turned on.
  Hue Lights Debug                Get device status for landing table lamp
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/5
  Hue Lights                      Failed to connect to the Hue hub at 192.168.10.23. - Check that the hub is connected and turned on.
  Hue Lights Debug                Get device status for over tub bulb
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/2
  Hue Lights                      Failed to connect to the Hue hub at 192.168.10.23. - Check that the hub is connected and turned on.
  Hue Lights Debug                Get device status for Stainless steel lamp bulb
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/1
  Hue Lights                      Failed to connect to the Hue hub at 192.168.10.23. - Check that the hub is connected and turned on.
  Hue Lights Debug                Get device status for Stefan's Room
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1ebug                
  Hue Lights Debug                Get device status for  entry hanging bulb
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/6
  Hue Lights                      Failed to connect to the Hue hub at 192.168.10.23. - Check that the hub is connected and turned on.
  Hue Lights Debug                Get device status for  my reading light
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/7
  Hue Lights                      Failed to connect to the Hue hub at 192.168.10.23. - Check that the hub is connected and turned on.
  Hue Lights Debug                Get device status for Darcy's Reading Lamp
  Hue Lights Debug                Sending URL request: http://192.168.10.23/api/1a998f006eecb203930b5b7f7cf8b4fd/lights/4
That kind of pattern repeats itself, although the bulb that starts the errors appears to be random. It may go as much as a minute or a minute and a half sometimes before it goes through a series of errors, and then resumes connecting. When I said we were making some progress, the interval between bursts of errors is greater than before. With the previous version they were pretty much constant.
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

Okay. Thanks for the additional info. It appears that increasing the number of connection attempts and disabling keep-alive connections merely delays the problem, and the point at which the errors begin does not appear to related to any one Hue device. All of which indicates to me that there's something going on outside the Hue Lights plugin's control. It's now down to either the Indigo server, the network or the hub, or some combination. One other user on this forum encountered the same issue you're seeing. Their chosen solution (which did work) was to reinstall Indigo and the Hue Lights plugin. A drastic measure, but it required less troubleshooting I guess. It didn't reveal the problem though.

Let's try some other things first.

1) Disable the Hue Lights plugin then turn off the Hue hub (unplug the power). Leave it powered off for about 10 seconds and plug the power back in. Then enable the Hue Lights plugin again.

If that fails...

2) Shut down the computer running Indigo. Let it sit go a few seconds before turning it on again. Powering it off helps clear any hardware buffers (like network hardware caches, etc).

Finally...

3) Make sure your Hue hub has the latest firmware. Use the Hue app from Philips to view your hub settings and check for updates. If its out of date, update it and see if that helps.
sandconformgorgecloud
Posts: 85
Joined: Fri Jun 22, 2007 7:26 am

Re: Hue Lights discussion

Post by sandconformgorgecloud »

Hello.
I was stuck with version 1, because the "About…" was referencing to your website. Now I found the 1.2.2 and the email is very welcome :)
I so updated from 1.0 to 1.2.2. It seems to works fine, but only I'm trying to change an existing command (set brightness) but I can't validate it.
In beta I had this one time and had to delete all the lines, and make them form scratch again, or sometimes just to retype the values. But here it's not working and as I have now 10 devices I wanted to ask if there is any issue ?
Thanks for the help.
Great big up for this plugin. It really makes a lot of sense, a perfect bridge from HUE to Indigo, and it's really well dev. Thanks again for it !
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

Thanks. I'm glad you like the plugin!

Yea. Sorry about that. I haven't updated my web site with the latest version in a while. Thanks for the reminder.

I believe the easiest way to fix the problem you're seeing is to...
  1. Edit the Hue device in Indigo (double-click the device in the Indigo client).
  2. Click the "Edit Device Settings..." button.
  3. Without making any changes (unless you want to), click the "Save" button.
  4. Repeat the entire process for every Hue device in your Indigo system.
While I tried to automate the device upgrade process within the plugin, it's difficult to test every circumstance, so many of your Hue devices created while the plugin was in beta (or even version 1.0) were probably not upgraded correctly. By following the above procedure, the device should be updated with all the latest properties and states. If that doesn't work, you may need to select a different Hue device model from the "Model" pop-up menu in the Edit Device window from step 1 above, then re-select the original Hue device model. This should do the same thing as the above procedure, but in a more thorough fashion.
sandconformgorgecloud
Posts: 85
Joined: Fri Jun 22, 2007 7:26 am

Re: Hue Lights discussion

Post by sandconformgorgecloud »

mm I see that now it's in categories :) then I reslected them all correctly.
But I still have the same error in an action group action "The typeId "setBrightness" wasn't recognized.".
Even with a new action group.
kennybroh
Posts: 532
Joined: Sun Dec 13, 2009 8:12 pm
Location: Baltimore

Re: Hue Lights discussion

Post by kennybroh »

OK, think we got it. I started in reverse order for some reason, maybe because it was the simplest, and that seemed to work. I opened the Hue App and right away something was up. It acted flakey and ultimately kept asking me for the IP address for the bridge. Of course that is weird since the Hue Website had no trouble connecting.

So I powered off the bridge and when I turned it on it connected and then told me I needed an update. After I applied the update everything was fine.
The ironic thing is the reason I've been doing all of this is so I can control the lights in Indigo and not have to use the Hue App. So I hadn't seen that message before.

For the most part the errors are gone. But there still are times when the bridge seems to lose its connection to the network. I'm not sure what that's about and have submitted a request to their customer service department. Apparently they have no telephone support which is annoying, but I don't think the problem is with your app or Indigo since even with their app I find myself having to "reconnect" more than once from time to time.

Thanks for your help. I appreciate your responsiveness.
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

Version 1.2.3 Posted
  • Fixed a bug that caused a "typeId 'setBrightness'" error when attempting to create a Set Brightness with Ramp Rate action.
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

ssciboz wrote:mm I see that now it's in categories :) then I reslected them all correctly.
But I still have the same error in an action group action "The typeId "setBrightness" wasn't recognized.".
Even with a new action group.
Okay. I found the bug and fixed it in version 1.2.3. It was a silly typo in the code. Thanks for reporting it. Let me know if 1.2.3 fixes it for you.
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

kennybroh wrote:So I powered off the bridge and when I turned it on it connected and then told me I needed an update. After I applied the update everything was fine.
The ironic thing is the reason I've been doing all of this is so I can control the lights in Indigo and not have to use the Hue App. So I hadn't seen that message before.
Hi kennybroh. I'm glad you were able to find the issue. That is odd that you're still seeing overall local network connection issues. I don't know how you have your hub's network configuration set up, but you might try changing it. If it's currently using a static DHCP assigned IP address (where your router assigns the same IP each time the hub renews the lease), you might try switching the hub to using a manually configured IP rather than relying on your router's (or other local DHCP server's) leases. Or, if you're currently already using a manual IP, you might try switching to DHCP with a static assignment based on the MAC address of the hub. Not sure if it'll help, but might be worth a try.
rickh3255
Posts: 1
Joined: Wed Sep 04, 2013 11:07 am

Re: Hue Lights discussion

Post by rickh3255 »

Great plugin. The 1.2.3 update fixed the "typeId 'setBrightness'" issue for me. Thanks!
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

Awesome! Glad to hear it's working correctly now.
kennybroh
Posts: 532
Joined: Sun Dec 13, 2009 8:12 pm
Location: Baltimore

Re: Hue Lights discussion

Post by kennybroh »

Tried your suggestion. I had set a manual IP address and DHCP was turned off. Turned it on, re-paired, reloaded the plug-in and totally quiet.... not a single error message. Saw status messages as I changed lights from the Hue app.

Just now saw a single error message, but that is a far cry from the constant errors I was seeing before. THis made a huge difference. I'll keep my eye on it. But thanks.
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

Great! I'm glad that helped clear almost everything.
sandconformgorgecloud
Posts: 85
Joined: Fri Jun 22, 2007 7:26 am

Re: Hue Lights discussion

Post by sandconformgorgecloud »

Yep, it's fixed now :)
I'm sorry I should have pasted the error before but I forgot :(
Thanks again !
DU Lou
Posts: 279
Joined: Thu Mar 08, 2012 7:18 pm
Location: Florida

Re: Hue Lights discussion

Post by DU Lou »

Hi Nathan,
The presets feature was an awesome idea! What made you think of it?

Would it be possible to add a ramp rate when recalling a preset?

Thanks for the consideration...
~Lou
Locked

Return to “Archives”