I have a many Hue device types (i think 5 or 6...)
I'll change them all...
Hue Lights Error Error in plugin execution ExecuteAction:
Traceback (most recent call last):
File "plugin.py", line 3443, in actionControlDimmerRelay
File "plugin.py", line 4784, in getBulbStatus
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 176: ordinal not in range(128)
self.debugLog(u"Data from hub: {}".format(r.content))
# self.debugLog(u"Data from hub: {}".format(r.content))
replace self.debugLog with # self.debugLog
Jann wrote:I'm a programmer and didn't think of this. I am just not a PYTHON programmer. BTW: what is the best way to restart after changing the python plugin? I rebooted the mini to make sure but Plug ins->Hue Lights->reload didn't seem to load the newly changed python script?
nsheldon wrote:In order for me to fix the debug lines, I need to be able to test this error condition, so it’d be gelpful to see the actual data coming from the Hue hub. Hard to get that if the debug lines are commented out though. Haha.
print(u"Something interesting: {0}".format(some_var.decode('utf-8')))
Users browsing this forum: No registered users and 0 guests