Page 1 of 103

Hue Lights discussion

PostPosted: Fri Nov 16, 2012 4:22 am
by nsheldon
Feel free to post questions and comments on the Hue Lights plugin in this thread.

Re: Hue Lights discussion

PostPosted: Mon Nov 19, 2012 2:13 am
by nsheldon
Version 0.9.2 Posted

See original topic for download link.

Changes since version 0.9
0.9.2
  • Corrected error in actionControlDimmerRelay that prevented setBrightness call from working.
0.9.1
  • Added "Set Brightness with Ramp Rate" action, similar in functionality to the action available in Dimmer Extender.
  • Refined brightening and dimming action speed to more closely match the brightening and dimming speed of SwitchLinc Dimmers when their paddle is held down.
  • Modified internal method names to make plugin scripting easier and more consistent with the way Dimmer Extender can be scripted.

Re: Hue Lights discussion

PostPosted: Wed Nov 21, 2012 2:38 am
by keifer1
Started having these errors on my system, Love your work... and contributions,

Nov 21, 2012 3:25:34 AM
Hue Lights Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 206, in runConcurrentThread
File "plugin.py", line 726, in getBulbStatus
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Hue Lights.indigoPlugin/Contents/Server Plugin/colormath/color_objects.py", line 93, in convert_to
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Hue Lights.indigoPlugin/Contents/Server Plugin/colormath/color_conversions.py", line 305, in xyY_to_XYZ
<type 'exceptions.ZeroDivisionError'>: float division

Hue Lights Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)


Any Ideas, have restarted indigo and plugin a few times.

Thankx
Keith

Re: Hue Lights discussion

PostPosted: Wed Nov 21, 2012 3:45 am
by nsheldon
Version 0.9.3 Posted

See original topic for download link.

Changes since version 0.9
0.9.3
  • Added more error checking. Worked around a bug in the "colormath" library that would throw a ZeroDivisionError if the "y" color component were zero.
0.9.2
  • Corrected error in actionControlDimmerRelay that prevented setBrightness call from working.
0.9.1
  • Added "Set Brightness with Ramp Rate" action, similar in functionality to the action available in Dimmer Extender.
  • Refined brightening and dimming action speed to more closely match the brightening and dimming speed of SwitchLinc Dimmers when their paddle is held down.
  • Modified internal method names to make plugin scripting easier and more consistent with the way Dimmer Extender can be scripted.

Re: Hue Lights discussion

PostPosted: Wed Nov 21, 2012 3:47 am
by nsheldon
keifer1 wrote:
Any Ideas, have restarted indigo and plugin a few times.

Thankx
Keith

Hey Keith.

Yep. That started showing up on mine as well a few days ago. I'd fixed it but just hadn't posted the update yet. Try out the 0.9.3 version. Let me know if you see any other errors.

Re: Hue Lights discussion

PostPosted: Tue Nov 27, 2012 8:32 pm
by keifer1
Not sure if related but upgraded indigo to 6-b2 and added a couple more hue lamps and started getting this error on new lamps.

Hue Hall no problems installed a few days ago.
Hue GR Right and Hue GR Left have err below.



Hue Lights "Hue Hall" on to 100 at ramp rate 0.0 sec.
Hue Lights Error Default ramp rate could not be obtained: empty string for float()
Hue Lights "Hue GR Right" on to 100 at ramp rate 0.5 sec.
Hue Lights Error Default ramp rate could not be obtained: empty string for float()
Hue Lights "Hue GR LEFT" on to 100 at ramp rate 0.5 sec.
Hue Lights Error Default ramp rate could not be obtained: empty string for float()
Hue Lights "Hue GR LEFT" off at ramp rate 0.5 sec.
Hue Lights Error Default ramp rate could not be obtained: empty string for float()
Hue Lights "Hue GR Right" off at ramp rate 0.5 sec.
Hue Lights "Hue Hall" off at ramp rate 0.0 sec.

If you need anything else let me know i've got 9 more bulbs to setup and figure out how to control.

Many thanks and great work

Keith Dutton

Re: Hue Lights discussion

PostPosted: Tue Nov 27, 2012 10:36 pm
by nsheldon
Hi Keith.

Thanks for the report. Though the log does give some clues as to possible problems, I'll need a bit more info if you could. Could you please turn on debug logging in the Hue Lights configuration (Plugins -> Hue Lights -> Configure... -> Enable Debugging)? Once that's turned on, try to reproduce the errors you showed in the logs above then copy and paste the output from the Indigo log into your reply.

Re: Hue Lights discussion

PostPosted: Tue Nov 27, 2012 10:44 pm
by keifer1
Let me know if this is not what you need...

version : 0
Hue Lights Debug Command is TurnOn, Bulb is 1
Hue Lights Debug device on:
actionValue : 0
delayAmount : 900
description : turn on device
deviceAction : TurnOn
deviceId : 1857648473
replaceExisting : True
textToSpeak :
Hue Lights Error Default ramp rate could not be obtained: empty string for float()
Hue Lights Debug Sending URL request: http://10.0.1.61/api/67ea91faa8738a08da ... ts/1/state
Hue Lights Debug Got response - [{"success":{"/lights/1/state/transitiontime":5}},{"success":{"/lights/1/state/bri":255}},{"success":{"/lights/1/state/on":true}}]
Hue Lights Debug updateDeviceState: Updating device Hue GR Right Front state: brightnessLevel = 100
Hue Lights "Hue GR Right Front" on to 100 at ramp rate 0.5 sec.
Hue Lights Debug updateDeviceState: Updating device Hue GR Right Front state: colorRed = 255
Hue Lights Debug updateDeviceState: Updating device Hue GR Right Front state: colorGreen = 215
Hue Lights Debug updateDeviceState: Updating device Hue GR Right Front state: colorBlue = 112
Hue Lights Debug updateDeviceProps: Updating device Hue GR Right Front properties.
Hue Lights Debug didDeviceCommPropertyChange called.
Hue Lights Debug actionControlDimmerRelay called for device Hue GR Right Front. action: actionValue : 0
delayAmount : 900
description : turn off device
deviceAction : TurnOff
deviceId : 1857648473
replaceExisting : True
textToSpeak :

device: address : 10.0.1.61 (ID 1)
brightness : 100
buttonGroupCount : 0
configured : True
defaultBrightness : 100
description :
deviceTypeId : hueBulb
enabled : True
errorState :
folderId : 0
globalProps : MetaProps : (dict)
com.nathansheldon.indigoplugin.HueLights : (dict)
address : 10.0.1.61 (ID 1) (string)
bulbId : 1 (string)
nameOnHub : GR F Right (string)
rate : (string)
savedBrightness : 255 (integer)
id : 1857648473
lastChanged : 2012-11-27 23:37:59
ledStates : []
model : Hue Bulb
name : Hue GR Right Front
onBrightensToDefaultToggle : False
onBrightensToLast : False
onState : True
pluginId : com.nathansheldon.indigoplugin.HueLights
pluginProps : com.nathansheldon.indigoplugin.HueLights : (dict)
address : 10.0.1.61 (ID 1) (string)
bulbId : 1 (string)
nameOnHub : GR F Right (string)
rate : (string)
savedBrightness : 255 (integer)
protocol : Plugin
remoteDisplay : True
states : States : (dict)
alertMode : none (string)
brightnessLevel : 100 (integer)
colorBlue : 112 (integer)
colorGreen : 215 (integer)
colorMode : xy (string)
colorRed : 255 (integer)
colorTemp : 2000 (integer)
colorX : 0.5609 (real)
colorY : 0.4016 (real)
effect : none (string)
hue : 58 (integer)
onOffState : on (on/off bool)
online : true (bool)
saturation : 97 (integer)
subModel :
supportsAllLightsOnOff : False
supportsAllOff : False
supportsStatusRequest : True
version : 0
Hue Lights Debug Command is TurnOff, Bulb is 1
Hue Lights Debug device off:
actionValue : 0
delayAmount : 900
description : turn off device
deviceAction : TurnOff
deviceId : 1857648473
replaceExisting : True
textToSpeak :
Hue Lights Error Default ramp rate could not be obtained: empty string for float()
Hue Lights Debug Sending URL request: http://10.0.1.61/api/67ea91faa8738a08da ... ts/1/state
Hue Lights Debug Got response - [{"success":{"/lights/1/state/transitiontime":5}},{"success":{"/lights/1/state/on":false}}]

Re: Hue Lights discussion

PostPosted: Tue Nov 27, 2012 11:12 pm
by nsheldon
Ah! Thanks! That's what I needed.

I think I've fixed it. Give this version a try. :-)

Re: Hue Lights discussion

PostPosted: Wed Nov 28, 2012 6:09 am
by keifer1
Looks to be working perfectly now :)

Thank you again
Keith Dutton

Re: Hue Lights discussion

PostPosted: Wed Nov 28, 2012 10:01 am
by nsheldon
Excellent! Let me know if you see any more errors.

Re: Hue Lights discussion

PostPosted: Wed Nov 28, 2012 10:37 am
by ckeyes888
Yikes, where are you guys getting these bulbs? The Apple store states a 3 to 4 month
shipping estimate.

Thanks,

Carl

Re: Hue Lights discussion

PostPosted: Wed Nov 28, 2012 10:55 am
by nsheldon
ckeyes888 wrote:
Yikes, where are you guys getting these bulbs? The Apple store states a 3 to 4 month
shipping estimate.

I had to walk into my local Apple Store to pick up my kit (it was the last kit on the shelf). You can check your local Apple Store's stock online by adding a bulb or kit to your cart then selecting Pick up as the delivery option, then select your closest store. You can also see which stores have them in stock by clicking the Change store link.

Re: Hue Lights discussion

PostPosted: Wed Nov 28, 2012 2:27 pm
by ckeyes888
Thanks, but I'm a long way from any Apple store these days here in Montana.
I see them being hawked on eBay for ridiculous prices...maybe get anxious and
cave on some.

Carl

Re: Hue Lights discussion

PostPosted: Wed Nov 28, 2012 3:55 pm
by nsheldon
Hmmm... yea, that'd make it difficult. Perhaps if you know someone near an Apple Store who could go and get some for you and then mail them to you.