Closed benblb closed 1 year ago
Hey there @raman325, @lymanepp, mind taking a look at this issue as it has been labeled with an integration (tomorrowio
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
tomorrowio documentation tomorrowio source (message by IssueLinks)
@raman325, @lymanepp I can confirm this problem, too!
@raman325, @lymanepp I can confirm this problem, too!
@cniweb if you want it to work now, disable, restart, enable. Fixed it for me.
Same here. I’m using last version of HÁ. No success with disable/reboot/reload. log: Logger: homeassistant.config_entries Source: components/tomorrowio/init.py:205 First occurred: June 18, 2023 at 11:14:54 PM (9 occurrences) Last logged: 6:45:37 AM
Error setting up entry Tomorrow.io - CasaHeitor for tomorrowio Error setting up entry Tomorrow.io for tomorrowio Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/tomorrowio/init.py", line 141, in async_setup_entry await coordinator.async_setup_entry(entry) File "/usr/src/homeassistant/homeassistant/components/tomorrowio/init.py", line 205, in async_setup_entry await self._coordinator_ready.wait() File "/usr/local/lib/python3.11/asyncio/locks.py", line 213, in wait await fut asyncio.exceptions.CancelledError
I have the same problem - but the disable/restart/reenable isn't fixing it for me.
Here is my current environment: Home Assistant 2023.6.2 Supervisor 2023.06.2 Operating System 10.3 Frontend 20230608.0 - latest
I have the same problem - but the disable/restart/reenable isn't fixing it for me.
Here is my current environment: Home Assistant 2023.6.2 Supervisor 2023.06.2 Operating System 10.3 Frontend 20230608.0 - latest
Also - found this in my debug logs: 2023-06-22 15:53:13.237 DEBUG (MainThread) [homeassistant.components.tomorrowio] Setting up coordinator for API key ozn6****Tc6c, loading data for all entries 2023-06-22 15:53:13.238 DEBUG (MainThread) [homeassistant.components.tomorrowio] Loaded 1 entries, initiating first refresh 2023-06-22 15:53:13.238 DEBUG (MainThread) [homeassistant.components.tomorrowio] Fetching data for 1 entries 2023-06-22 15:53:13.239 DEBUG (MainThread) [pytomorrowio.pytomorrowio] Sending the following payload to tomorrow.io: {'location': '30.0**61902', 'units': 'metric', 'timesteps': ['5m', '1h', '1d'], 'startTime': '2023-06-22T19:53:13+00:00', 'fields': ['temperatureMin', 'temperatureMax', 'windSpeed', 'windDirection', 'weatherCode', 'precipitationIntensityAvg', 'precipitationProbability']} 2023-06-22 15:53:13.689 DEBUG (MainThread) [pytomorrowio.pytomorrowio] Received a response with status code 403 and headers <CIMultiDictProxy('Date': 'Thu, 22 Jun 2023 19:53:13 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'X-Correlation-Id': '50b8805a-449f-4048-bff5-18d422d70d36', 'X-Request-Id': 'e7a05b34-a814-47a6-ab25-ab015d380967', 'Access-Control-Allow-Origin': '', 'X-Moesif-Transaction-Id': 'ce8b05b5-a868-4254-ab8d-8f56fb2c8848', 'X-Kong-Upstream-Latency': '22', 'X-Kong-Proxy-Latency': '80', 'Content-Encoding': 'gzip', 'Via': '1.1 google', 'CF-Cache-Status': 'DYNAMIC', 'Server': 'cloudflare', 'CF-RAY': '7db709439ff1ad9a-ATL')> 2023-06-22 15:53:13.690 DEBUG (MainThread) [homeassistant.components.tomorrowio] Finished fetching tomorrowio_ozn6Tc6c data in 0.452 seconds (success: False)
Same here. I’m using last version of HÁ. No success with disable/reboot/reload. log: Logger: homeassistant.config_entries Source: components/tomorrowio/init.py:205 First occurred: June 18, 2023 at 11:14:54 PM (9 occurrences) Last logged: 6:45:37 AM
Error setting up entry Tomorrow.io - CasaHeitor for tomorrowio Error setting up entry Tomorrow.io for tomorrowio Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/tomorrowio/init.py", line 141, in async_setup_entry await coordinator.async_setup_entry(entry) File "/usr/src/homeassistant/homeassistant/components/tomorrowio/init.py", line 205, in async_setup_entry await self._coordinator_ready.wait() File "/usr/local/lib/python3.11/asyncio/locks.py", line 213, in wait await fut asyncio.exceptions.CancelledError
The same problem
Conitnuing to see this issue even after numerous "disable, reload, restart". Tried deleting the integration and start afresh but no luck.
Same with me! Suck on initializing. Tried "disable, reload, restart" and "remove, restart, add integration" without success. Tried previous steps waiting days between them, without success. On Tomorrow.io webpage I can see 3 or 4 api requests per day of attempt. I'm in Portugal, just in case I'm "out of coverage"... Am I @raman325?
same here, stuck on inizializing. tried disable/reboot/reenable but didn'tfix. Also tried with new HA 2023.7... no fixed
Also same here. Tried removing and adding. Disable/Enable but still stuck on initializing. HA 2023.7...
Identical problem with this intergration
I'm not making any promises, but I'll try to take a look at this over the weekend.
But since I can't recreate the problem, I need one or more people to enable debug logging and attach the log file to this thread.
How to enable logging: https://www.home-assistant.io/integrations/logger/
Enable both of these in your configuration.yaml
file.
logger:
logs:
homeassistant.components.tomorrowio: debug
pytomorrowio: debug
this is the only log entry I get:
2023-07-14 00:01:27.927 DEBUG (MainThread) [homeassistant.components.tomorrowio] Setting up coordinator for API key <API_KEY>, loading data for all entries 2023-07-14 00:01:27.936 DEBUG (MainThread) [homeassistant.components.tomorrowio] Loaded 1 entries, initiating first refresh 2023-07-14 00:01:27.960 DEBUG (MainThread) [homeassistant.components.tomorrowio] Fetching data for 1 entries 2023-07-14 00:01:27.962 DEBUG (MainThread) [pytomorrowio.pytomorrowio] Sending the following payload to tomorrow.io: {'location': '<lat-long>', 'units': 'metric', 'timesteps': ['1m', '1h', '1d'], 'startTime': '2023-07-14T04:01:27+00:00', 'fields': ['temperatureMin', 'temperatureMax', 'windSpeed', 'windDirection', 'weatherCode', 'precipitationIntensityAvg', 'precipitationProbability']} 2023-07-14 00:01:32.183 DEBUG (MainThread) [pytomorrowio.pytomorrowio] Received a response with status code 403 and headers <CIMultiDictProxy('Date': 'Fri, 14 Jul 2023 04:01:31 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'X-Correlation-Id': '28b65709-6890-419e-a017-95744783679e', 'X-Request-Id': 'ff87a076-8b91-446d-8f50-b4b76323a27b', 'Access-Control-Allow-Origin': '*', 'X-Moesif-Transaction-Id': '1344e6b9-a992-4f92-9259-07f424cdfa3c', 'X-Kong-Upstream-Latency': '22', 'X-Kong-Proxy-Latency': '50', 'Content-Encoding': 'gzip', 'Via': '1.1 google', 'CF-Cache-Status': 'DYNAMIC', 'Server': 'cloudflare', 'CF-RAY': '7e66dd6dadc66300-ORD')> 2023-07-14 00:01:32.185 DEBUG (MainThread) [homeassistant.components.tomorrowio] Finished fetching <tomorrowio_APIKEY> data in 4.225 seconds (success: False)
There are actually six log messages there. Here's the one of interest (reformatted for readability).
2023-07-14 00:01:32.183 DEBUG (MainThread) [pytomorrowio.pytomorrowio] Received a response with status code 403 and headers
{
"Date": "Fri, 14 Jul 2023 04:01:31 GMT",
"Content-Type": "application/json; charset=utf-8",
"Transfer-Encoding": "chunked",
"Connection": "keep-alive",
"X-Correlation-Id": "28b65709-6890-419e-a017-95744783679e",
"X-Request-Id": "ff87a076-8b91-446d-8f50-b4b76323a27b",
"Access-Control-Allow-Origin": "*",
"X-Moesif-Transaction-Id": "1344e6b9-a992-4f92-9259-07f424cdfa3c",
"X-Kong-Upstream-Latency": "22",
"X-Kong-Proxy-Latency": "50",
"Content-Encoding": "gzip",
"Via": "1.1 google",
"CF-Cache-Status": "DYNAMIC",
"Server": "cloudflare",
"CF-RAY": "7e66dd6dadc66300-ORD"
}
The problem is a 403 response code from tomorrow.io API. The integration needs to be updated to log the full error code instead of just 403.
403 FORBIDDEN:
Code | Type | Description |
---|---|---|
403001 | Access Denied | The authentication token in use is restricted and cannot access the requested resource. |
403002 | Account Limit | The plan limit for a resource has been reached. |
403003 | Forbidden Action | The plan is restricted and cannot perform this action. |
The problem
The Tomorrow.io integration was stuck on initializing. I restarted HA Core and updated, but no help. I disabled the integration, restarted HA Core, and re-enabled the integration which fixed the issue. I feel like there was previously a "reload" button for the integration which fixed these types of issues, but it seems to have disappeared.
What version of Home Assistant Core has the issue?
2023.05.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
Tomorrow.io
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response