Closed tetzlav closed 10 years ago
Ah, i found https://github.com/cees-elzinga/script.xbmc.hue.ambilight/issues/15 But if i disable initial flashing the script dims the light, but after stopping playback it does not undim and i get
17:11:34 T:2971519808 NOTICE: XBMC Hue: DEBUG state changed to: stopped
17:11:34 T:2971519808 NOTICE: XBMC Hue: DEBUG class Hue: brighter lights
17:11:34 T:2753579840 NOTICE: Thread BackgroundLoader start, auto delete: false
17:11:34 T:3018188544 NOTICE: CDVDPlayer::CloseFile()
17:11:34 T:3018188544 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
17:11:34 T:3018188544 NOTICE: DVDPlayer: waiting for threads to exit
17:11:34 T:3018188544 NOTICE: DVDPlayer: finished waiting
17:11:34 T:2971519808 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.KeyError'>
Error Contents: ('hue',)
Traceback (most recent call last):
File "/storage/.xbmc/addons/script.xbmc.hue.ambilight-master/default.py", line 70, in onPlayBackStopped
state_changed("stopped")
File "/storage/.xbmc/addons/script.xbmc.hue.ambilight-master/default.py", line 443, in state_changed
hue.brighter_lights()
File "/storage/.xbmc/addons/script.xbmc.hue.ambilight-master/default.py", line 170, in brighter_lights
self.light[0].brighter_light()
File "/storage/.xbmc/addons/script.xbmc.hue.ambilight-master/resources/lib/tools.py", line 181, in brighter_light
data += ',"hue":%s' % self.start_setting['hue']
KeyError: ('hue',)
-->End of Python script error report<--
17:11:34 T:2770365248 NOTICE: Thread Jobworker start, auto delete: true
This should be fixed in version 0.6.1.
(The bug is in the "brighter_lights" function that did not check if the bulb was a LW bulb. In issue #15 it showed when flashing the lights, and in this case when playback stops, but it's the same code triggering the error)
Please try again with version 0.6.1 and let me know if I can close the issue.
YES, it works now with version 0.6.1! Thank you a lot for fast fixing this bug.
If i try to dim only one of my LW plug in Theatre mode i get:
Version: 0.6.0 Settings: