Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

issue/request: On-Off switch (osram smart plug) crashes plugin #105

Open
RHassW opened this issue Mar 23, 2018 · 0 comments
Open

issue/request: On-Off switch (osram smart plug) crashes plugin #105

RHassW opened this issue Mar 23, 2018 · 0 comments

Comments

@RHassW
Copy link

RHassW commented Mar 23, 2018

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
hue = Hue(settings, args)
File "C:\Users\Ralph\AppData\Roaming\Kodi\addons\script.kodi.hue.ambilight\default.py", line 169, in init
self.update_controllers()
File "C:\Users\Ralph\AppData\Roaming\Kodi\addons\script.kodi.hue.ambilight\default.py", line 227, in update_controllers
self.static_controller,
File "C:\Users\Ralph\AppData\Roaming\Kodi\addons\script.kodi.hue.ambilight\resources\lib\lights.py", line 211, in repr
return ('<{} {}>'.format(self.class.name, self.lights))
File "C:\Users\Ralph\AppData\Roaming\Kodi\addons\script.kodi.hue.ambilight\resources\lib\lights.py", line 96, in repr
self.name, self.light_id, self.hue, self.sat, self.bri, self.on))
AttributeError: 'Light' object has no attribute 'bri'
-->End of Python script error report<--
20:46:35.092 T:10152 INFO: Python script stopped

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant