u'53': {u'swversion': u'1.0.2', u'name': u'Kitchen Top Right', u'swupdate': {u'state': u'notupdatable', u'lastinstall': None}, u'uniqueid': u'00:12:4b:00:18:57:12:61-0b', u'capabilities': {u'control': {u'ct': {u'max': 65535, u'min': 0}, u'colorgamuttype': u'other'}, u'streaming': {u'renderer': False, u'proxy': False}, u'certified': False}, u'productname': u'Extended color light', u'state': {u'on': False, u'hue': 34816, u'colormode': u'ct', u'effect': u'none', u'alert': u'select', u'xy': [0.4372, 0.3474], u'reachable': True, u'mode': u'homeautomation', u'bri': 16, u'ct': 447, u'sat': 108}, u'manufacturername': u'Feibit Inc co. ', u'config': {u'function': u'mixed', u'direction': u'omnidirectional', u'archetype': u'classicbulb'}, u'type': u'Extended color light', u'modelid': u'FB56-ZCW08KU1.1'}, u'24':
Hue Lights Error Error in plugin execution UiValidate:
Traceback (most recent call last):
File "plugin.py", line 554, in validateDeviceConfigUi
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 225: ordinal not in range(128)
nsheldon wrote:Make sure you use only ASCII characters for light names in Indigo and possibly in the Hue app too. Python 2.x (the programming language used for all Indigo Plugins) is notoriously bad with non ASCII (I.e. non-English) characters. This was addressed in Python 3 but Indigo and a lot of other systems still rely on Python 2.
steinis wrote:Thanks that did it!:) Strange as this was working fine before.
Another question, I have added 3 Ikea bulbs model LED1545G12, but I can't see it anywhere when I try to add a new light in Indigo.
[url]https://www.ikea.com/gb/en/products/lighting/smart-lighting/trådfri-led-bulb-e27-980-lumen-wireless-dimmable-white-spectrum-opal-white-art-10318263/[/url]
jay (support) wrote:nsheldon wrote:Make sure you use only ASCII characters for light names in Indigo and possibly in the Hue app too. Python 2.x (the programming language used for all Indigo Plugins) is notoriously bad with non ASCII (I.e. non-English) characters. This was addressed in Python 3 but Indigo and a lot of other systems still rely on Python 2.
Well, not exactly. The Indigo server handles unicode characters correctly, as do all of our plugins. Plugin developers have to take special care when dealing with fields that may contain unicode characters - but it most definitely can be done (Python 2 does support unicode, just not as invisibly as Python 3 does).
Now, it's possible that the Hue API doesn't deal well with unicode characters, but that's outside of Indigo and Indigo plugins.
u'21': {u'swversion': u'1.2.217', u'name': u'Lasse_taklys1', u'swupdate': {u'state': u'notupdatable', u'lastinstall': None}, u'uniqueid': u'90:fd:9f:ff:fe:07:a3:40-01', u'capabilities': {u'control': {u'ct': {u'max': 454, u'min': 250}}, u'streaming': {u'renderer': False, u'proxy': False}, u'certified': False}, u'productname': u'Color temperature light', u'state': {u'on': True, u'colormode': u'ct', u'alert': u'select', u'reachable': False, u'mode': u'homeautomation', u'bri': 254, u'ct': 370}, u'manufacturername': u'IKEA of Sweden', u'config': {u'function': u'functional', u'direction': u'omnidirectional', u'archetype': u'classicbulb'}, u'type': u'Color temperature light', u'modelid': u'TRADFRI bulb E27 WS opal 980lm'}
Users browsing this forum: No registered users and 15 guests