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.
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

Sounds good. Thanks for checking it out Jay.
ckeyes888
Posts: 2438
Joined: Thu Nov 26, 2009 2:41 pm
Location: Kalispell, MT

Re: Hue Lights discussion

Post by ckeyes888 »

My Indigo 6 folder is about 426 Mb's. I'll try to zip it and send. Maybe use Dropbox
or something similar?

Thanks,

Carl
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

Version 1.0.1 Posted

(See main Hue Lights announcement thread for download link).
  • Added: optional automatic version checking (enabled by default) and email notification (configurable in the plugin configuration window).
symo
Posts: 9
Joined: Sun Sep 16, 2012 9:46 pm

Re: Hue Lights - Free Philips Hue Plugin

Post by symo »

nsheldon wrote:Hi Jon.

The only time I've seen that error in the log is when I'm having network issues and my Indigo server is unable to connect to the Hue hub for some reason. The Hue Lights plugin attempts to check the Hue lights status every 8 seconds, so if your Indigo server doesn't have continuous network access to the Hue hub for more than 8 seconds, you'll see that error. If communication becomes unreliable, you'll probably want to start troubleshooting the network connections involved. That can become complicated fairly quickly, but I'd start by using the Hue app on an iPhone, iPod touch or iPad to make sure you can communicate with the Hue hub. If that works, then there might be an intermittent network issue between your Indigo server and the router, or between the router and the Hue hub.

Note also that, in order to work properly, the Hue Lights plugin requires that your Hue hub always have the same IP address. You might need to set your router to always give your Hue hub the same IP address every time it asks for one.
Sorry for the delay in my reply. Well everything on my network is wired, all addresses are static.
The Indigo server still spits out the:
"Failed to connect to the Hue hub at 192.168.1.195. - Check that the hub is connected and turned on."
This occurs approximately every 2 minutes...

During this same time frame I've had a continuous ping going from the server to the Hue hub, and it hasn't missed a single ping, and ping times are under 0.2 ms. I too am confused as to what might be the cause. It seems as though the commands still go through to the lights with no problems. Let me know if there is anything I can do to help figure this out. I am using version 1.0.1 of the plugin.

Thank you!
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights - Free Philips Hue Plugin

Post by nsheldon »

symo wrote:Sorry for the delay in my reply. Well everything on my network is wired, all addresses are static.
The Indigo server still spits out the:
"Failed to connect to the Hue hub at 192.168.1.195. - Check that the hub is connected and turned on."
This occurs approximately every 2 minutes...

During this same time frame I've had a continuous ping going from the server to the Hue hub, and it hasn't missed a single ping, and ping times are under 0.2 ms. I too am confused as to what might be the cause. It seems as though the commands still go through to the lights with no problems. Let me know if there is anything I can do to help figure this out. I am using version 1.0.1 of the plugin.

Thank you!
No worries. That's helpful. At least we know its not because the hub is completely unreachable
and that it's not because it's changing IP addresses. How many Hue bulbs do you have? If you have a lot, maybe all the status requests are overloading the hub. Not sure. Shouldn't be though. That its happening every 2 minutes doesn't seem to correspond with anything in the Hue Loghts plugin timing.

Could you turn on debug logging in the Hue Lights configuration just before these errors start to appear? Paste the result in your response. That may help figure it out too.
midd
Posts: 374
Joined: Sun Apr 18, 2010 3:00 pm

Re: Hue Lights discussion

Post by midd »

M4 Mac mini.
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Hue Lights discussion

Post by jay (support) »

I think ZigBee LightLink might just be the driver that ZigBee has been needing to kick-start it's home automation profile.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

Interesting. I hope the price isn't as predicted though. $90 for a 2-foot LED strip is ridiculous (especially given that you have to already have a Hue starter kit for an additional $200).

Yea, LightLink may indeed be what kickstarts ZigBee's long overdue entry into more mainstream home automation. Let's hope so.
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Hue Lights discussion

Post by jay (support) »

2 feet != 2 meters... ;)

Still pricey for a 6' strip though LED strips are still pricey compared to incandescent rope lights...
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

jay (support) wrote:2 feet != 2 meters... ;)
Ha! True, true. Good catch. :-D
DU Lou
Posts: 279
Joined: Thu Mar 08, 2012 7:18 pm
Location: Florida

Re: Hue Lights discussion

Post by DU Lou »

ssciboz wrote:I'll test the new version tomorrow. Thanks

Also in the meantime I have another problem (since begining but I have 6.0.0 b7), when I put a ramp rate value for any lamp, HUE of Whites, it works only for 60 seconds or less. If I put more it make the correct dimming during the first 60s (for example from 100% to 50% if I put ramp rate to 120), but then it turns off suddenly.

Thanks !
Just got the bulbs and the plugin. I set a default ramp rate for one of the bulbs to 5 seconds and when I turn the bulb on and off there is a jolt to about 15-20% brightness then a smooth ramp up to 100% over that time. Is this expected behaviour or should it be smooth from 0-100 and 100-0? I haven't had time to play with the plugin fully, though from reading the other comments it seems pretty baked and I am looking forward to further experimentation.

Indigo 6.0.0 beta 13
Hue Lights 1.0.1

Code: Select all

Aug 8, 2013 8:19:01 PM
  Sent Hue Lights                 "Hue Bulb Bed" on to 100 at ramp rate 5.0 sec.
  Sent Hue Lights                 "Hue Bulb Bed" off at ramp rate 5.0 sec.
  Schedule                        Landscape Lights On
  Sent INSTEON                    "PowerLinc Interface" on (scene 3 - Landscape Lights)
  Trigger                         CollectionOutsideOn
  Sent INSTEON                    "Landscape Left Light" on (scene 3 cleanup)
  Sent INSTEON                    "Landscape Right Light" on (scene 3 cleanup)
  Hue Lights                      Debug logging enabled
  Hue Lights Debug                actionControlDimmerRelay called for device Hue Bulb Bed. action: actionValue : 0
delayAmount : 900
description : turn on device
deviceAction : TurnOn
deviceId : 554399095
replaceExisting : True
textToSpeak : 

device: address : 192.168.1.12 (ID 3)
batteryLevel : None
brightness : 0
buttonGroupCount : 0
configured : True
defaultBrightness : 100
description : 
deviceTypeId : hueBulb
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState : 
folderId : 1527945443
globalProps : MetaProps : (dict)
     com.nathansheldon.indigoplugin.HueLights : (dict)
          address : 192.168.1.12 (ID 3) (string)
          bulbId : 3 (string)
          defaultBrightness : 100 (string)
          nameOnHub : Hue Bulb Bed (string)
          rate : 5 (string)
          savedBrightness : 0 (integer)
id : 554399095
lastChanged : 2013-08-08 20:19:16
ledStates : []
model : Hue Bulb
name : Hue Bulb Bed
onBrightensToDefaultToggle : False
onBrightensToLast : False
onState : False
pluginId : com.nathansheldon.indigoplugin.HueLights
pluginProps : com.nathansheldon.indigoplugin.HueLights : (dict)
     address : 192.168.1.12 (ID 3) (string)
     bulbId : 3 (string)
     defaultBrightness : 100 (string)
     nameOnHub : Hue Bulb Bed (string)
     rate : 5 (string)
     savedBrightness : 0 (integer)
protocol : Plugin
remoteDisplay : True
states : States : (dict)
     alertMode : none (string)
     brightnessLevel : 0 (integer)
     colorBlue : 0 (integer)
     colorGreen : 0 (integer)
     colorMode : ct (string)
     colorRed : 0 (integer)
     colorTemp : 4329 (integer)
     colorX : 0.3680 (real)
     colorY : 0.3686 (real)
     effect : none (string)
     hue : 186 (integer)
     onOffState : off (on/off bool)
     online : true (bool)
     saturation : 19 (integer)
subModel : 
supportsAllLightsOnOff : False
supportsAllOff : False
supportsStatusRequest : True
version : 0
  Hue Lights Debug                Command is TurnOn, Bulb is 3
  Hue Lights Debug                device on:
actionValue : 0
delayAmount : 900
description : turn on device
deviceAction : TurnOn
deviceId : 554399095
replaceExisting : True
textToSpeak : 
  Hue Lights Debug                Sending URL request: http://192.168.1.12/api/1b996af92f245d8616f958c9be2ab2ea/lights/3/state
  Hue Lights Debug                Got response - [{"success":{"/lights/3/state/transitiontime":50}},{"success":{"/lights/3/state/on":true}},{"success":{"/lights/3/state/bri":255}}]
  Sent Hue Lights                 "Hue Bulb Bed" on to 100 at ramp rate 5.0 sec.
  Hue Lights Debug                updateDeviceState: Updating device Hue Bulb Bed state: brightnessLevel = 100
  Hue Lights Debug                didDeviceCommPropertyChange called.
  Hue Lights Debug                "Hue Bulb Bed" has a model ID of "LCT001". It supports color.
  Hue Lights Debug                updateDeviceState: Updating device Hue Bulb Bed state: colorRed = 255
  Hue Lights Debug                updateDeviceState: Updating device Hue Bulb Bed state: colorGreen = 254
  Hue Lights Debug                updateDeviceState: Updating device Hue Bulb Bed state: colorBlue = 214
  Hue Lights Debug                didDeviceCommPropertyChange called.
  Hue Lights Debug                didDeviceCommPropertyChange called.
  Hue Lights Debug                didDeviceCommPropertyChange called.
  Hue Lights Debug                "Hue Bulb Bed" has a model ID of "LCT001". It supports color.
  Hue Lights Debug                "Hue Bulb Bed" has a model ID of "LCT001". It supports color.
  Hue Lights Debug                "Hue Bulb Bed" has a model ID of "LCT001". It supports color.
  Hue Lights Debug                updateDeviceState: Updating device Hue Bulb Bed state: colorRed = 254
  Hue Lights Debug                updateDeviceState: Updating device Hue Bulb Bed state: colorGreen = 252
  Hue Lights Debug                updateDeviceState: Updating device Hue Bulb Bed state: colorBlue = 212
  Hue Lights Debug                didDeviceCommPropertyChange called.
  Hue Lights Debug                didDeviceCommPropertyChange called.
  Hue Lights Debug                didDeviceCommPropertyChange called.
  Hue Lights Debug                "Hue Bulb Bed" has a model ID of "LCT001". It supports color.
  Hue Lights Debug                "Hue Bulb Bed" has a model ID of "LCT001". It supports color.
  Hue Lights Debug                "Hue Bulb Bed" has a model ID of "LCT001". It supports color.
  Hue Lights Debug                "Hue Bulb Bed" has a model ID of "LCT001". It supports color.
  Hue Lights Debug                actionControlDimmerRelay called for device Hue Bulb Bed. action: actionValue : 0
delayAmount : 900
description : turn off device
deviceAction : TurnOff
deviceId : 554399095
replaceExisting : True
textToSpeak : 

device: address : 192.168.1.12 (ID 3)
batteryLevel : None
brightness : 100
buttonGroupCount : 0
configured : True
defaultBrightness : 100
description : 
deviceTypeId : hueBulb
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState : 
folderId : 1527945443
globalProps : MetaProps : (dict)
     com.nathansheldon.indigoplugin.HueLights : (dict)
          address : 192.168.1.12 (ID 3) (string)
          bulbId : 3 (string)
          defaultBrightness : 100 (string)
          nameOnHub : Hue Bulb Bed (string)
          rate : 5 (string)
          savedBrightness : 0 (integer)
id : 554399095
lastChanged : 2013-08-08 20:20:05
ledStates : []
model : Hue Bulb
name : Hue Bulb Bed
onBrightensToDefaultToggle : False
onBrightensToLast : False
onState : True
pluginId : com.nathansheldon.indigoplugin.HueLights
pluginProps : com.nathansheldon.indigoplugin.HueLights : (dict)
     address : 192.168.1.12 (ID 3) (string)
     bulbId : 3 (string)
     defaultBrightness : 100 (string)
     nameOnHub : Hue Bulb Bed (string)
     rate : 5 (string)
     savedBrightness : 0 (integer)
protocol : Plugin
remoteDisplay : True
states : States : (dict)
     alertMode : none (string)
     brightnessLevel : 100 (integer)
     colorBlue : 212 (integer)
     colorGreen : 252 (integer)
     colorMode : ct (string)
     colorRed : 254 (integer)
     colorTemp : 4329 (integer)
     colorX : 0.3680 (real)
     colorY : 0.3686 (real)
     effect : none (string)
     hue : 186 (integer)
     onOffState : on (on/off bool)
     online : true (bool)
     saturation : 19 (integer)
subModel : 
supportsAllLightsOnOff : False
supportsAllOff : False
supportsStatusRequest : True
version : 0
  Hue Lights Debug                Command is TurnOff, Bulb is 3
  Hue Lights Debug                device off:
actionValue : 0
delayAmount : 900
description : turn off device
deviceAction : TurnOff
deviceId : 554399095
replaceExisting : True
textToSpeak : 
  Hue Lights Debug                Sending URL request: http://192.168.1.12/api/1b996af92f245d8616f958c9be2ab2ea/lights/3/state
  Hue Lights Debug                Got response - [{"success":{"/lights/3/state/transitiontime":50}},{"success":{"/lights/3/state/on":false}}]
  Sent Hue Lights                 "Hue Bulb Bed" off at ramp rate 5.0 sec.
  Hue Lights Debug                updateDeviceState: Updating device Hue Bulb Bed state: brightnessLevel = 0
  Hue Lights Debug                didDeviceCommPropertyChange called.
  Hue Lights Debug                updateDeviceState: Updating device Hue Bulb Bed state: colorRed = 0
  Hue Lights Debug                updateDeviceState: Updating device Hue Bulb Bed state: colorGreen = 0
  Hue Lights Debug                updateDeviceState: Updating device Hue Bulb Bed state: colorBlue = 0
  Hue Lights Debug                didDeviceCommPropertyChange called.
  Hue Lights Debug                didDeviceCommPropertyChange called.
  Hue Lights Debug                didDeviceCommPropertyChange called.
ALSO!!
I did splurge and picked up both the wall washer and the lightstrip. I took a gamble knowing one of two possible outcomes :) So come to find out the pugin does not recognize them:

Code: Select all

 Hue Lights Error                The "LightStrip" device has an unrecognized model ID of "LST001". Hue Lights plugin does not support this device.

Code: Select all

Hue Lights Error                The "Wall Washer" device has an unrecognized model ID of "LLC012". Hue Lights plugin does not support this device.
How critical is it that you need them on hand to add support?

Thanks again for an awesome plugin and integration!
~Lou
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

DU Lou wrote:I set a default ramp rate for one of the bulbs to 5 seconds and when I turn the bulb on and off there is a jolt to about 15-20% brightness then a smooth ramp up to 100% over that time. Is this expected behaviour or should it be smooth from 0-100 and 100-0? I haven't had time to play with the plugin fully, though from reading the other comments it seems pretty baked and I am looking forward to further experimentation.
That's normal behavior for the Hue bulbs. If you use the Hue app on your phone or tablet you'll see the same behavior. Strictly speaking, they do go from 1% to 100%, it's just that the Hue's version of 1% is about the same as an incandescent light's 15% (similar to how fluorescent lights "dim"). I was a bit disappointed myself when I found this out.
DU Lou wrote:ALSO!!
I did splurge and picked up both the wall washer and the lightstrip. I took a gamble knowing one of two possible outcomes :) So come to find out the pugin does not recognize them:

Code: Select all

 Hue Lights Error                The "LightStrip" device has an unrecognized model ID of "LST001". Hue Lights plugin does not support this device.

Code: Select all

Hue Lights Error                The "Wall Washer" device has an unrecognized model ID of "LLC012". Hue Lights plugin does not support this device.
How critical is it that you need them on hand to add support?
I can add those IDs to the recognized IDs in the plugin. I'd like to fully support everything that the Hue hub can control, but I can't justify spending $90 for a 6-foot LED strip (for which I don't currently have a use) and $80 for a Bloom LED ambient light device (which I can't find a use for as yet either). So until I can get my hands on those for less I can only make the Hue Lights plugin pretend like those are Hue bulbs. This should work in most cases, but there are always quirks between what manufacturers say devices are going to do in the specs and APIs and what those devices actually do. I'll post a plugin update soon that should work with those models, but I won't be able to officially support them until I can get my hands on the hardware itself.
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

Version 1.0.2 Posted

(See main Hue Lights announcement thread for download link).
  • Added: ability to recognize LED LightStrips and Wall Washers.
DU Lou
Posts: 279
Joined: Thu Mar 08, 2012 7:18 pm
Location: Florida

Re: Hue Lights discussion

Post by DU Lou »

nsheldon wrote:That's normal behavior for the Hue bulbs. If you use the Hue app on your phone or tablet you'll see the same behavior. Strictly speaking, they do go from 1% to 100%, it's just that the Hue's version of 1% is about the same as an incandescent light's 15% (similar to how fluorescent lights "dim"). I was a bit disappointed myself when I found this out.
Booo on Hue!!!!! :?

I pledged 4 LIFX bulbs through Kickstarter and I am curious if LIFX hardware behaves similarly to Hue's. I posted a question on their campaign to see if they are willing to show a video from off to 100% and vice versa.
Version 1.0.2 Posted

(See main Hue Lights announcement thread for download link).

Added: ability to recognize LED LightStrips and Wall Washers.
So far so good. Minus the error below but after I added the lightstrip I was able to create a device and control basic on/off dim/brighten. Still haven't had a chance to experiment with other functionality (even with the standard bulbs) but will report back any anomalies.

Code: Select all

  Hue Lights Error                Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 360, in runConcurrentThread
  File "plugin.py", line 982, in getBulbStatus
<type 'exceptions.KeyError'>: 'ct'

  Hue Lights Error                plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

DU Lou wrote:I pledged 4 LIFX bulbs through Kickstarter and I am curious if LIFX hardware behaves similarly to Hue's. I posted a question on their campaign to see if they are willing to show a video from off to 100% and vice versa.
I'd be interested in seeing the results of that too if you end up hearing back from them on that.
So far so good. Minus the error below but after I added the lightstrip I was able to create a device and control basic on/off dim/brighten. Still haven't had a chance to experiment with other functionality (even with the standard bulbs) but will report back any anomalies.

Code: Select all

  Hue Lights Error                Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 360, in runConcurrentThread
  File "plugin.py", line 982, in getBulbStatus
<type 'exceptions.KeyError'>: 'ct'

  Hue Lights Error                plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
I'll try to clear up that error with another update. It appears that Philips hasn't yet posted any information in their API docs regarding which parameters are and are not valid for the LightStrips and other newly supported lights, so it's kind of trial-and-error at this point until they share more details. The "ct" parameter is for color temperature, which (apparently) the LightStrips don't support.
Locked

Return to “Archives”