cees-elzinga / script.xbmc.hue.ambilight

XBMC add-on for Philips Hue lights with ambilight support
Do What The F*ck You Want To Public License
127 stars 123 forks source link

Script Error #8

Closed defuuss closed 11 years ago

defuuss commented 11 years ago

I get this error all the time I enable the plugin

20:04:23 T:140521322309376 NOTICE: XBMC Hue: Service started 20:04:23 T:140521322309376 ERROR: EXCEPTION Thrown (PythonToCppException) : –>Python callback/script returned the following error<– – NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: Error Contents: (‘hue’,) Traceback (most recent call last): File “/storage/.xbmc/addons/script.xbmc.hue.ambilight-master/default.py”, line 295, in hue = Hue(settings, args) File “/storage/.xbmc/addons/script.xbmc.hue.ambilight-master/default.py”, line 86, in init self.update_settings() File “/storage/.xbmc/addons/script.xbmc.hue.ambilight-master/default.py”, line 162, in update_settings self.settings.undim_hue, File “/storage/.xbmc/addons/script.xbmc.hue.ambilight-master/resources/lib/tools.py”, line 79, in init self.get_current_setting() File “/storage/.xbmc/addons/script.xbmc.hue.ambilight-master/resources/lib/tools.py”, line 97, in get_current_setting “hue”: j['state']['hue'], KeyError: (‘hue’,) –>End of Python script error report<– 20:04:23 T:140523914131264 DEBUG: —— Window Init (DialogKaiToast.xml) ——

It's seems that the auto registration doen'st work but I get a username but everytime is start sbmc or restart the script the error appears .

cees-elzinga commented 11 years ago

are you using philips hue lights only? or livingwhite lights as well?

defuuss commented 11 years ago

Hi there , yes i have also 2 living whites in a group

2013/5/25 cees-elzinga notifications@github.com

are you using philips hue lights only? or livingwhite lights as well?

— Reply to this email directly or view it on GitHubhttps://github.com/cees-elzinga/script.xbmc.hue.ambilight/issues/8#issuecomment-18434111 .

cees-elzinga commented 11 years ago

Hi Defuuss,

That makes sense. The add-on tries to read the "hue" settings of the light. LivingWhite lights don't have a Hue settings, so that's what caused the crash. I pushed an new version (0.5.1) onto github last weekend that support livingwhite lights as well.

Please give it a try and let me know if that works for you :)

defuuss commented 11 years ago

New Version works thank you