Hue Lights discussion

Posted on
Fri Nov 16, 2012 4:22 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Hue Lights discussion

Feel free to post questions and comments on the Hue Lights plugin in this thread.

Posted on
Mon Nov 19, 2012 2:13 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Hue Lights discussion

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.

Posted on
Wed Nov 21, 2012 2:38 am
keifer1 offline
Posts: 87
Joined: Oct 21, 2012

Re: Hue Lights discussion

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

Computer Keith
Mt Pleasant SC - Charleston
Indi-Go -Go-Go

Posted on
Wed Nov 21, 2012 3:45 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Hue Lights discussion

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.

Posted on
Wed Nov 21, 2012 3:47 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Hue Lights discussion

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.

Posted on
Tue Nov 27, 2012 8:32 pm
keifer1 offline
Posts: 87
Joined: Oct 21, 2012

Re: Hue Lights discussion

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

Computer Keith
Mt Pleasant SC - Charleston
Indi-Go -Go-Go

Posted on
Tue Nov 27, 2012 10:36 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Hue Lights discussion

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.

Posted on
Tue Nov 27, 2012 10:44 pm
keifer1 offline
Posts: 87
Joined: Oct 21, 2012

Re: Hue Lights discussion

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}}]

Computer Keith
Mt Pleasant SC - Charleston
Indi-Go -Go-Go

Posted on
Tue Nov 27, 2012 11:12 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Hue Lights discussion

Ah! Thanks! That's what I needed.

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

Posted on
Wed Nov 28, 2012 6:09 am
keifer1 offline
Posts: 87
Joined: Oct 21, 2012

Re: Hue Lights discussion

Looks to be working perfectly now :)

Thank you again
Keith Dutton

Computer Keith
Mt Pleasant SC - Charleston
Indi-Go -Go-Go

Posted on
Wed Nov 28, 2012 10:01 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Hue Lights discussion

Excellent! Let me know if you see any more errors.

Posted on
Wed Nov 28, 2012 10:37 am
ckeyes888 offline
Posts: 2417
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Hue Lights discussion

Yikes, where are you guys getting these bulbs? The Apple store states a 3 to 4 month
shipping estimate.

Thanks,

Carl

Posted on
Wed Nov 28, 2012 10:55 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Hue Lights discussion

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.

Posted on
Wed Nov 28, 2012 2:27 pm
ckeyes888 offline
Posts: 2417
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Hue Lights discussion

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

Posted on
Wed Nov 28, 2012 3:55 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Hue Lights discussion

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.

Who is online

Users browsing this forum: No registered users and 1 guest