Does anyone know how to resolve these errors , as far as I can tell there is a problem reading a json file - but the only json I know of in this context is the octopusagile,json file but if I delete that the problem just reappears a a hort while later. In any case the problem does not appear to happen every half hour when I expect that that particular file is read.
2021-04-20 10:00:01 ERROR (SyncWorker_2) [custom_components.octopusagile] Expecting value: line 1 column 1 (char 0)
2021-04-20 10:00:25 ERROR (SyncWorker_5) [custom_components.octopusagile] Expecting value: line 1 column 1 (char 0)
2021-04-20 11:30:16 ERROR (SyncWorker_0) [custom_components.octopusagile] Expecting value: line 1 column 1 (char 0)
2021-04-20 12:00:00 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.octopus_agile_previous_rate fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 292, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 490, in async_device_update
raise exc
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/octopusagile/sensor.py", line 85, in update
rate = round(self.myrates.get_previous_rate(), 2)
File "/config/custom_components/octopusagile/OctopusAgile/Agile.py", line 302, in get_previous_rate
date_rates = self.get_rates(prev_time, rounded_time)["date_rates"]
File "/config/custom_components/octopusagile/OctopusAgile/Agile.py", line 219, in get_rates
results = self.get_raw_rates(date_from, date_to)
File "/config/custom_components/octopusagile/OctopusAgile/Agile.py", line 210, in get_raw_rates
results = self.get_raw_rates_json(date_from, date_to)["results"]
File "/config/custom_components/octopusagile/OctopusAgile/Agile.py", line 195, in get_raw_rates_json
results = r.json()
File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.8/site-packages/simplejson/__init__.py", line 525, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2021-04-20 12:00:00 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.octopus_agile_min_rate fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 292, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 490, in async_device_update
raise exc
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/octopusagile/sensor.py", line 277, in update
new_rates = self.myrates.get_new_rates()["date_rates"]
File "/config/custom_components/octopusagile/OctopusAgile/Agile.py", line 216, in get_new_rates
return self.get_rates(date_from)
File "/config/custom_components/octopusagile/OctopusAgile/Agile.py", line 219, in get_rates
results = self.get_raw_rates(date_from, date_to)
File "/config/custom_components/octopusagile/OctopusAgile/Agile.py", line 210, in get_raw_rates
results = self.get_raw_rates_json(date_from, date_to)["results"]
File "/config/custom_components/octopusagile/OctopusAgile/Agile.py", line 195, in get_raw_rates_json
results = r.json()
File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.8/site-packages/simplejson/__init__.py", line 525, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2021-04-20 12:00:00 ERROR (SyncWorker_8) [custom_components.octopusagile] Expecting value: line 1 column 1 (char 0)
2021-04-20 15:00:00 ERROR (SyncWorker_2) [custom_components.octopusagile] Expecting value: line 1 column 1 (char 0)
2021-04-20 15:30:13 ERROR (SyncWorker_1) [custom_components.octopusagile] Expecting value: line 1 column 1 (char 0)
2021-04-20 16:10:49 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Unexpected error for call_service at pos 1: Expecting value: line 1 column 1 (char 0)