core: Homekit Controller - Netatmo Relay - Error doing job: Task exception was never retrieved
The problem
After upgrading to 2021.7.0 having this error in some integration. The main is homekit controller, this error is filling my log.
What is version of Home Assistant Core has the issue?
core-2021.7.0
What was the last working version of Home Assistant Core?
core-2021.6.6
What type of installation are you running?
Home Assistant Core
Integration causing the issue
Homekit Controller
Link to integration documentation on our website
https://www.home-assistant.io/integrations/homekit_controller/
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Jul 7 18:26:02 raspberrypi hass[23810]: 2021-07-07 18:26:02 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Jul 7 18:26:02 raspberrypi hass[23810]: Traceback (most recent call last):
Jul 7 18:26:02 raspberrypi hass[23810]: File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/homekit_controller/connection.py", line 424, in async_update
Jul 7 18:26:02 raspberrypi hass[23810]: new_values_dict = await self.get_characteristics(
Jul 7 18:26:02 raspberrypi hass[23810]: File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/homekit_controller/connection.py", line 464, in get_characteristics
Jul 7 18:26:02 raspberrypi hass[23810]: return await self.pairing.get_characteristics(*args, **kwargs)
Jul 7 18:26:02 raspberrypi hass[23810]: File "/srv/homeassistant/lib/python3.8/site-packages/aiohomekit/controller/ip/pairing.py", line 243, in get_characteristics
Jul 7 18:26:02 raspberrypi hass[23810]: response = await self.connection.get_json(url)
Jul 7 18:26:02 raspberrypi hass[23810]: File "/srv/homeassistant/lib/python3.8/site-packages/aiohomekit/controller/ip/connection.py", line 318, in get_json
Jul 7 18:26:02 raspberrypi hass[23810]: return json.loads(body)
Jul 7 18:26:02 raspberrypi hass[23810]: File "/usr/local/lib/python3.8/json/__init__.py", line 357, in loads
Jul 7 18:26:02 raspberrypi hass[23810]: return _default_decoder.decode(s)
Jul 7 18:26:02 raspberrypi hass[23810]: File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode
Jul 7 18:26:02 raspberrypi hass[23810]: obj, end = self.raw_decode(s, idx=_w(s, 0).end())
Jul 7 18:26:02 raspberrypi hass[23810]: File "/usr/local/lib/python3.8/json/decoder.py", line 355, in raw_decode
Jul 7 18:26:02 raspberrypi hass[23810]: raise JSONDecodeError("Expecting value", s, err.value) from None
Jul 7 18:26:02 raspberrypi hass[23810]: json.decoder.JSONDecodeError: Expecting value: line 1 column 872 (char 871)
Jul 7 18:27:01 raspberrypi hass[23810]: 2021-07-07 18:27:01 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Jul 7 18:27:01 raspberrypi hass[23810]: Traceback (most recent call last):
Jul 7 18:27:01 raspberrypi hass[23810]: File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/homekit_controller/connection.py", line 424, in async_update
Jul 7 18:27:01 raspberrypi hass[23810]: new_values_dict = await self.get_characteristics(
Jul 7 18:27:01 raspberrypi hass[23810]: File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/homekit_controller/connection.py", line 464, in get_characteristics
Jul 7 18:27:01 raspberrypi hass[23810]: return await self.pairing.get_characteristics(*args, **kwargs)
Jul 7 18:27:01 raspberrypi hass[23810]: File "/srv/homeassistant/lib/python3.8/site-packages/aiohomekit/controller/ip/pairing.py", line 243, in get_characteristics
Jul 7 18:27:01 raspberrypi hass[23810]: response = await self.connection.get_json(url)
Jul 7 18:27:01 raspberrypi hass[23810]: File "/srv/homeassistant/lib/python3.8/site-packages/aiohomekit/controller/ip/connection.py", line 318, in get_json
Jul 7 18:27:01 raspberrypi hass[23810]: return json.loads(body)
Jul 7 18:27:01 raspberrypi hass[23810]: File "/usr/local/lib/python3.8/json/__init__.py", line 357, in loads
Jul 7 18:27:01 raspberrypi hass[23810]: return _default_decoder.decode(s)
Jul 7 18:27:01 raspberrypi hass[23810]: File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode
Jul 7 18:27:01 raspberrypi hass[23810]: obj, end = self.raw_decode(s, idx=_w(s, 0).end())
Jul 7 18:27:01 raspberrypi hass[23810]: File "/usr/local/lib/python3.8/json/decoder.py", line 355, in raw_decode
Jul 7 18:27:01 raspberrypi hass[23810]: raise JSONDecodeError("Expecting value", s, err.value) from None
Jul 7 18:27:01 raspberrypi hass[23810]: json.decoder.JSONDecodeError: Expecting value: line 1 column 872 (char 871)
Jul 7 18:27:23 raspberrypi hass[23810]: 2021-07-07 18:27:23 INFO (MainThread) [homeassistant.components.generic_thermostat.climate] Turning off heater switch.fan_shim
Jul 7 18:28:01 raspberrypi hass[23810]: 2021-07-07 18:28:01 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Jul 7 18:28:01 raspberrypi hass[23810]: Traceback (most recent call last):
Jul 7 18:28:01 raspberrypi hass[23810]: File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/homekit_controller/connection.py", line 424, in async_update
Jul 7 18:28:01 raspberrypi hass[23810]: new_values_dict = await self.get_characteristics(
Jul 7 18:28:01 raspberrypi hass[23810]: File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/homekit_controller/connection.py", line 464, in get_characteristics
Jul 7 18:28:01 raspberrypi hass[23810]: return await self.pairing.get_characteristics(*args, **kwargs)
Jul 7 18:28:01 raspberrypi hass[23810]: File "/srv/homeassistant/lib/python3.8/site-packages/aiohomekit/controller/ip/pairing.py", line 243, in get_characteristics
Jul 7 18:28:01 raspberrypi hass[23810]: response = await self.connection.get_json(url)
Jul 7 18:28:01 raspberrypi hass[23810]: File "/srv/homeassistant/lib/python3.8/site-packages/aiohomekit/controller/ip/connection.py", line 318, in get_json
Jul 7 18:28:01 raspberrypi hass[23810]: return json.loads(body)
Jul 7 18:28:01 raspberrypi hass[23810]: File "/usr/local/lib/python3.8/json/__init__.py", line 357, in loads
Jul 7 18:28:01 raspberrypi hass[23810]: return _default_decoder.decode(s)
Jul 7 18:28:01 raspberrypi hass[23810]: File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode
Jul 7 18:28:01 raspberrypi hass[23810]: obj, end = self.raw_decode(s, idx=_w(s, 0).end())
Jul 7 18:28:01 raspberrypi hass[23810]: File "/usr/local/lib/python3.8/json/decoder.py", line 355, in raw_decode
Jul 7 18:28:01 raspberrypi hass[23810]: raise JSONDecodeError("Expecting value", s, err.value) from None
Jul 7 18:28:01 raspberrypi hass[23810]: json.decoder.JSONDecodeError: Expecting value: line 1 column 872 (char 871)
Jul 7 18:28:48 raspberrypi hass[23810]: 2021-07-07 18:28:48 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.netatmo
Jul 7 18:29:01 raspberrypi hass[23810]: 2021-07-07 18:29:01 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Jul 7 18:29:01 raspberrypi hass[23810]: Traceback (most recent call last):
Jul 7 18:29:01 raspberrypi hass[23810]: File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/homekit_controller/connection.py", line 424, in async_update
Jul 7 18:29:01 raspberrypi hass[23810]: new_values_dict = await self.get_characteristics(
Jul 7 18:29:01 raspberrypi hass[23810]: File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/homekit_controller/connection.py", line 464, in get_characteristics
Jul 7 18:29:01 raspberrypi hass[23810]: return await self.pairing.get_characteristics(*args, **kwargs)
Jul 7 18:29:01 raspberrypi hass[23810]: File "/srv/homeassistant/lib/python3.8/site-packages/aiohomekit/controller/ip/pairing.py", line 243, in get_characteristics
Jul 7 18:29:01 raspberrypi hass[23810]: response = await self.connection.get_json(url)
Jul 7 18:29:01 raspberrypi hass[23810]: File "/srv/homeassistant/lib/python3.8/site-packages/aiohomekit/controller/ip/connection.py", line 318, in get_json
Jul 7 18:29:01 raspberrypi hass[23810]: return json.loads(body)
Jul 7 18:29:01 raspberrypi hass[23810]: File "/usr/local/lib/python3.8/json/__init__.py", line 357, in loads
Jul 7 18:29:01 raspberrypi hass[23810]: return _default_decoder.decode(s)
Jul 7 18:29:01 raspberrypi hass[23810]: File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode
Jul 7 18:29:01 raspberrypi hass[23810]: obj, end = self.raw_decode(s, idx=_w(s, 0).end())
Jul 7 18:29:01 raspberrypi hass[23810]: File "/usr/local/lib/python3.8/json/decoder.py", line 355, in raw_decode
Jul 7 18:29:01 raspberrypi hass[23810]: raise JSONDecodeError("Expecting value", s, err.value) from None
Jul 7 18:29:01 raspberrypi hass[23810]: json.decoder.JSONDecodeError: Expecting value: line 1 column 872 (char 871)
### Additional information
_No response_
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 27 (14 by maintainers)
It looks like the device is probably certified based on the vendors website.
https://github.com/vaidik/commentjson might be a reasonable solution
The device is producing invalid json