script.kodi.hue.ambilight
script.kodi.hue.ambilight copied to clipboard
issue/request: On-Off switch (osram smart plug) crashes plugin
Hi, I was wondering if it would be possible to get an On-Off switch working within this awesome Kodi plugin. In my Hue setup there is 1 Osram Smart plug present to switch on/off some lights in a Lego Millenium Falcon :-). Would be cool to light it up when the movie pauses, only the plugin crashes when the device is added. Works fine in all Hue applications by the way.
Guess the problem is that the plug has no brightness attribute in it, just on or off. Is it possible to somehow trick the plugin/device?
Below the plugin log with errors.
Thanks in advance. Regards Ralph
20:46:34.654 T:10152 DEBUG: Kodi Hue: In .(argv=['']) service started, version: 1.0
20:46:34.959 T:1696 DEBUG: ------ Window Init (DialogNotification.xml) ------
20:46:35.073 T:10152 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: 'Light' object has no attribute 'bri'
Traceback (most recent call last):
File "C:\Users\Ralph\AppData\Roaming\Kodi\addons\script.kodi.hue.ambilight\default.py", line 313, in