core: CO2 Signal with the new Energy integration stopped working
The problem
The CO2 Signal integration stopped working after a couple of days. Error message: Retrying setup Check the logs.
What is version of Home Assistant Core has the issue?
core-2021.8.6
What was the last working version of Home Assistant Core?
core-2021.8.6
What type of installation are you running?
Home Assistant OS
Integration causing the issue
CO2 Signal
Link to integration documentation on our website
https://www.home-assistant.io/integrations/co2signal/
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.config_entries
Source: config_entries.py:324
First occurred: 12:55:06 PM (2 occurrences)
Last logged: 12:55:17 PM
Config entry 'CO2 Signal' for co2signal integration not ready yet; Retrying in background
Config entry 'Veste Zonnepanelen' for forecast_solar integration not ready yet: 502, message='Bad Gateway', url=URL('https://91.228.53.233/estimate/52.51956842555332/5.4729482531547555/23/-90/3.6?time=iso8601&damping=0.0'); Retrying in background
Logger: homeassistant.components.co2signal
Source: components/co2signal/__init__.py:119
Integration: CO2 Signal (documentation, issues)
First occurred: 12:55:01 PM (12 occurrences)
Last logged: 1:06:06 PM
Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/co2signal/__init__.py", line 119, in get_data
data = CO2Signal.get_latest(
File "/usr/local/lib/python3.9/site-packages/CO2Signal/co2signal.py", line 34, in get_latest
latest_data = (requests
File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.9/site-packages/simplejson/__init__.py", line 525, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.9/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.9/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)
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 10
- Comments: 28 (2 by maintainers)
Got my hopes up but no, that’s not it for me, I was already using the correct country code 😦
For anyone else the list of country code seems to be here : https://api.electricitymap.org/v3/zones
@OzGav: Just tried it and yep, that does indeed work right now. And unlike when I use the country code, the entities are actually showing values now, looks much better ! Thanks !
Broken here in Italy too, but re-configuring with specific country code instead of system one fixed the issue. ‘IT’ country code returns null data (tested with curl cli), while ‘IT-NO’ country code (North Italy) returns a correct value and integration works as expected.
There hasn’t been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.