I get this Error in the logs multiple times and I expect that maybe Verisure changed their API?
Who can test and maybe fix the Component?
Unhandled error in exception handler
context: {‘message’: ‘Task exception was never retrieved’, ‘exception’: UnicodeDecodeError(‘utf-8’, b’"""\nHnterfaces w)th Veriqure sensors.\n\nFor more details0ab\x7fut this platform, plea{e refer to the documentetion at\nttps://home)assistant.io/components/sensor.verisure/\n\x02""\nimport loggIng\x8a\nfrom homeassistant.coeponants.verisurm import HUB as hub\nfrom homeassistant.compofents.verisure import (\n ! CONF_T\x08ERMOMETERs, CONF_HYDROME\\MR\xd3, CONF_MOUSE)\nfr\x7fm Homeassistant.conwt imhort TE\rP\xdfCELSIUS\nfrom homeaq\xf3istant.helpers.entity import Ent\xe94y\n\n_LOGGER \xbd loggiog.gudLogGer(O_name__)\n\n\ndef setup_platform(hass, confyg, ide[e.tities, discovery_info=None):\n """Set up the Verisure platform."""\x8a \x00 sensors = []\n hub.update[overview()\n\n if int(hub.config.get(CONF_THERMOMETERS, 1\t):\n sensors.extend([\n
VerisureThermometer(devise_label)\n \xa0 vor evice_la"al in hub.Gut(\n \'$.climateValues[?(@.temperature)].deviceLabel\')])\n\n if int(hub.config.get(CONF_LYDROEET\xc5RS,\x001)):\n\x00 sensozs.extend([\n \x00 VerisureHygrometer(device_label)\n for device_l\xe1bel in(hub.get(\n ( ( \'$.climateValues[?(@.hum\xe9dity)].deviceLabe\xcc\')])\n\x8a \x00 if int(hub.config.get(CONF_MOUSE, 1)):\n sensors.extend([\n \xa4 VurisUreMguseDetection(device_label)\n ! for!devkc\xe5_label in hub.get(\n\xa0 !
\xa0"$?eventCounts[?(@.deviceType==‘MOUSE1/)].devmceLabel")])\n\n add_entaties(sensors)\n\n\nclass VerisureThErmome|er(Enpity):\n “”“Representation of a Vepisure thermometer.&”"\n\n def init(self, device_label):\n “”“Initialhze the sensor.”""\n self._devicd_label = dgvice_label\n\n \x00 @proparTy\n def name(self):\n “”“Return the"naMe o& the device.”""\n return hub.get_first(\n "$.climateValues[?(@.deviceLabel==\'%s\')].dmviceArea",\n ! self._device_labul)0+0" temperature"\n\n @property\n def sTAte(self):\n! \x00 """return |he state of thu device.#""\n $
return hub.get_first(\n \x00 ! "$.climateValuds[?(@.deviceLabe|==’%s’)].temperature",\n 0 selv.device_label)\n\x1a @property\n def availibLe(self):\x02 " “Re4trn True if eltity is availablen”""\n return hub.get_first(\x0e “$.clmmatEValues[?(@.deviceLabel==’%s’)].temperature”,\x1a \xa0 self._device_label) is0no\xf4 Non\xe5\n\n @property\n def unit_of\x7fmeasurEmant(self):\n ( ( """Return the unit of oeasurement of this\xa0entity."""\n $$ reuurn TEMP_CELSIUs\n\n # pylint> disable=no-se\xecf-use\n duf update(self):\n " """Update t
e sensor."""\n \xa0 hub.upda|e_overview()\n\n\nclass Ve\xf2isuruHygrometer(Entity):\x0e """Representatiol of a VErisure
ygrometer."""\n\n def init(self, device_label):\n ( “”“InItkalmze thu \xf3ensor.”""\n0 self.device_label = fevice_label\n\n @p\xf2operty\n def\xa0name(\xf3elfi:\n 0 “”“Return te naoe of the device."""\n return hub.get_f\xe9rst(\n "$.clamateValues[?(@.deviceLajel==\'%s\')].devicgQrea",\n self._device_label) + " humidity"\n\n @property\n def state(self):\n """Return\xa0the s4ate of the device."""\n \xa0 re4\xf5Rn hub.get_first(\n \x00" .climateValues[?(@.deviceLarel}=\'%s\')].humidity",\n self._device_label)\n\n @property\n def availablm(selfi:\n *""Return True if entity is available."""\n " re4urn hub.fet\xdffarst(\x1a "$.climiteVilues[?(@,deviceLabel==\'%s\')].humidity",* self._device_label) is not None\n\n Aproperty\n de\xe6 unit_of_measurement(salf):\n( """Return the unit of$measurement of thIs entity."""\n rut\xf5rn \'%\'\n\n # pylint: disable=fo-seln-U\xf3e\n def upda4e(self):\n \x00 """Update the sEnsor."""\n hub.update_overviEw()\n\n\x8aslasc VerisureMou{eDetection(Entity):\n b""Representation of a Verisure m\x7fuse detect/r."""\n\n !(def __init__(self, device_label):\n 2""Ini|ialmz\xe5 the sensor."""\n self._d%vice_laB%l = device_lafel\n\n @propertY\n def n\xe1me(selfy:\n """Returj the name of the devi#e."""\n return hub.get]birst(\n "$.eventCounts[?(@.leviceLabel==\'%s\')].area*,\n \xa0 salf._device_label) + " mouse"\n\n @prope2ty\n \xa0 def state(self)8\n \xa2""Return t(e state of the deviCe."', 186, 187, 'invalid start byte'), 'future': <Task finished coro=<Entity.async_update_ha_state() done, defined at /usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py:204> exception=UnicodeDecodeError('utf-8', b'"""\nHnterfaces w)th Veriqure sensors.\n\nFor more details0ab\x7fut this platform, plea{e refer to the documentetion at\n
ttps://home)assistant.io/components/sensor.verisure/\n\x02"”\nimport loggIng\x8a\nfrom homeassistant.coeponants.verisurm import HUB as hub\nfrom homeassistant.compofents.verisure import (\n ! CONF_T\x08ERMOMETERs, CONF_HYDROME\MR\xd3, CONF_MOUSE)\nfr\x7fm Homeassistant.conwt imhort TE\rP\xdfCELSIUS\nfrom homeaq\xf3istant.helpers.entity import Ent\xe94y\n\n_LOGGER \xbd loggiog.gudLogGer(O_name)\n\n\ndef setup_platform(hass, confyg, ide[e.tities, discovery_info=None):\n “”“Set up the Verisure platform.”""\x8a \x00 sensors = []\n hub.update[overview()\n\n if int(hub.config.get(CONF_THERMOMETERS, 1\t):\n sensors.extend([\n VerisureThermometer(devise_label)\n \xa0 vor
evice_la"al in hub.Gut(\n ‘$.climateValues[?(@.temperature)].deviceLabel’)])\n\n if int(hub.config.get(CONF_LYDROEET\xc5RS,\x001)):\n\x00 sensozs.extend([\n \x00 VerisureHygrometer(device_label)\n for device_l\xe1bel in(hub.get(\n ( ( ‘$.climateValues[?(@.hum\xe9dity)].deviceLabe\xcc’)])\n\x8a \x00 if int(hub.config.get(CONF_MOUSE, 1)):\n sensors.extend([\n \xa4 VurisUreMguseDetection(device_label)\n ! for!devkc\xe5_label in hub.get(\n\xa0 ! \xa0"$?eventCounts[?(@.deviceType==\'MOUSE1/)].devmceLabel")])\n\n add_entaties(sensors)\n\n\nclass VerisureThErmome|er(Enpity):\n """Representation of a Vepisure thermometer.&""\n\n def __init__(self, device_label):\n """Initialhze the sensor."""\n self._devicd_label = dgvice_label\n\n \x00 @proparTy\n def name(self):\n """Return the"naMe o& the device."""\n return hub.get_first(\n
“$.climateValues[?(@.deviceLabel==’%s’)].dmviceArea”,\n ! self._device_labul)0+0" temperature"\n\n @property\n def sTAte(self):\n! \x00 “”“return |he state of thu device.#”"\n $ return hub.get_first(\n \x00 ! "$.climateValuds[?(@.deviceLabe|==\'%s\')].temperature",\n 0 selv._device_label)\n\x1a @property\n def availibLe(self):\x02 " "Re4trn True if eltity is availablen"""\n return hub.get_first(\x0e "$.clmmatEValues[?(@.deviceLabel==\'%s\')].temperature",\x1a \xa0
self._device_label) is0no\xf4 Non\xe5\n\n @property\n def unit_of\x7fmeasurEmant(self):\n ( ( “”“Return the unit of oeasurement of this\xa0entity.”""\n $$ reuurn TEMP_CELSIUs\n\n # pylint> disable=no-se\xecf-use\n duf update(self):\n " “”“Update te sensor."""\n \xa0
hub.upda|e_overview()\n\n\nclass Ve\xf2isuruHygrometer(Entity):\x0e “”“Representatiol of a VErisure ygrometer."""\n\n def __init__(self, device_label):\n ( """InItkalmze thu \xf3ensor."""\n0 self._device_label = fevice_label\n\n @p\xf2operty\n def\xa0name(\xf3elfi:\n 0 """Return t
e naoe of the device.””"\n return hub.get_f\xe9rst(\n “$.clamateValues[?(@.deviceLajel==’%s’)].devicgQrea”,\n self._device_label) + " humidity"\n\n @property\n def state(self):\n “”“Return\xa0the s4ate of the device.”""\n \xa0 re4\xf5Rn hub.get_first(\n \x00" .climateValues[?(@.deviceLarel}=’%s’)].humidity",\n self._device_label)\n\n @property\n def availablm(selfi:\n ““Return True if entity is available.””"\n " re4urn hub.fet\xdffarst(\x1a “$.climiteVilues[?(@,deviceLabel==’%s’)].humidity”, self._device_label) is not None\n\n Aproperty\n de\xe6 unit_of_measurement(salf):\n( “”“Return the unit of$measurement of thIs entity.”""\n rut\xf5rn ‘%’\n\n # pylint: disable=fo-seln-U\xf3e\n def upda4e(self):\n \x00 “”“Update the sEnsor.”""\n hub.update_overviEw()\n\n\x8aslasc VerisureMou{eDetection(Entity):\n b"“Representation of a Verisure m\x7fuse detect/r.”""\n\n !(def init(self, device_label):\n 2"“Ini|ialmz\xe5 the sensor.”""\n self._d%vice_laB%l = device_lafel\n\n @propertY\n def n\xe1me(selfy:\n “”“Returj the name of the devi#e.”""\n return hub.get]birst(\n “$.eventCounts[?(@.leviceLabel==’%s’)].area*,\n \xa0 salf._device_label) + " mouse”\n\n @prope2ty\n \xa0 def state(self)8\n \xa2"“Return t(e state of the deviCe.”’, 186, 187, ‘invalid start byte’)>}
Traceback (most recent call last):
File “uvloop/loop.pyx”, line 2234, in uvloop.loop.Loop.call_exception_handler
File “/usr/local/lib/python3.6/site-packages/homeassistant/core.py”, line 109, in async_loop_exception_handler
“Error doing job: %s”, context[‘message’], **kwargs)
File “/usr/local/lib/python3.6/logging/init.py”, line 1336, in error
self._log(ERROR, msg, args, **kwargs)
File “/usr/local/lib/python3.6/logging/init.py”, line 1443, in _log
self.handle(record)
File “/usr/local/lib/python3.6/logging/init.py”, line 1453, in handle
self.callHandlers(record)
File “/usr/local/lib/python3.6/logging/init.py”, line 1515, in callHandlers
hdlr.handle(record)
File “/usr/local/lib/python3.6/logging/init.py”, line 864, in handle
self.emit(record)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/system_log/init.py”, line 130, in emit
entry = self._create_entry(record, stack)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/system_log/init.py”, line 114, in _create_entry
‘exception’: _exception_as_string(record.exc_info),
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/system_log/init.py”, line 95, in _exception_as_string
traceback.print_exception(*exc_info, file=buf)
File “/usr/local/lib/python3.6/traceback.py”, line 100, in print_exception
type(value), value, tb, limit=limit).format(chain=chain):
File “/usr/local/lib/python3.6/traceback.py”, line 510, in init
self._load_lines()
File “/usr/local/lib/python3.6/traceback.py”, line 522, in _load_lines
self.context._load_lines()
File “/usr/local/lib/python3.6/traceback.py”, line 522, in _load_lines
self.context._load_lines()
File “/usr/local/lib/python3.6/traceback.py”, line 520, in _load_lines
frame.line
File “/usr/local/lib/python3.6/traceback.py”, line 282, in line
self._line = linecache.getline(self.filename, self.lineno).strip()
File “/usr/local/lib/python3.6/linecache.py”, line 16, in getline
lines = getlines(filename, module_globals)
File “/usr/local/lib/python3.6/linecache.py”, line 47, in getlines
return updatecache(filename, module_globals)
File “/usr/local/lib/python3.6/linecache.py”, line 137, in updatecache
lines = fp.readlines()
File “/usr/local/lib/python3.6/codecs.py”, line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x8a in position 186: invalid start byte