Open hvrivera opened 2 years ago
This is a bug from the car not having a remote connection subscription. It should be fixed in the next version.
What about if you have a subscription and have this error?
I did renew services earlier today. Maybe there is backed propagation time? Although, my mobile app says it is active. Upgraded to 9.0
Home Assistant 2022.9.4 Supervisor 2022.08.6 Operating System 9.0 Frontend 20220907.2 - latest
I have tried removing the integration, rebooting, and reinstalling.
What about if you have a subscription and have this error?
I did renew services earlier today. Maybe there is backed propagation time? Although, my mobile app says it is active. You have this exact error even though you have a remote connect subscription?
Paid for toyota subscription and the problem continues....help
Logger: custom_components.toyota_na Source: custom_components/toyota_na/init.py:104 Integration: Toyota (North America) (documentation, issues) First occurred: September 15, 2022 at 7:12:19 PM (6 occurrences) Last logged: 10:32:52 AM
Error fetching data Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1154, in _create_direct_connection hosts = await asyncio.shield(host_resolved) File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 880, in _resolve_host addrs = await self._resolver.resolve(host, port, family=self._family) File "/usr/local/lib/python3.10/site-packages/aiohttp/resolver.py", line 33, in resolve infos = await self._loop.getaddrinfo( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 860, in getaddrinfo return await self.run_in_executor( File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.10/socket.py", line 955, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -3] Try again
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/config/custom_components/toyota_na/init.py", line 104, in update_vehicles_status raw_vehicles = await get_vehicles(client) File "/usr/local/lib/python3.10/site-packages/toyota_na/vehicle/vehicle.py", line 36, in get_vehicles await vehicle.update() File "/usr/local/lib/python3.10/site-packages/toyota_na/vehicle/vehicle_generations/seventeen_cy.py", line 86, in update vehicle_status = await self._client.get_vehicle_status( File "/usr/local/lib/python3.10/site-packages/toyota_na/client.py", line 65, in get_vehicle_status return await self.get_vehicle_status_17cy(vin) File "/usr/local/lib/python3.10/site-packages/toyota_na/client.py", line 75, in get_vehicle_status_17cy return await self.api_get( File "/usr/local/lib/python3.10/site-packages/toyota_na/client.py", line 41, in api_get return await self.api_request("GET", endpoint, header_params) File "/usr/local/lib/python3.10/site-packages/toyota_na/client.py", line 24, in api_request headers = await self._auth_headers() File "/usr/local/lib/python3.10/site-packages/toyota_na/client.py", line 18, in _auth_headers "AUTHORIZATION": "Bearer " + await self.auth.get_access_token(), File "/usr/local/lib/python3.10/site-packages/toyota_na/auth.py", line 158, in get_access_token await self.check_tokens() File "/usr/local/lib/python3.10/site-packages/toyota_na/auth.py", line 123, in check_tokens await self.refresh_tokens() File "/usr/local/lib/python3.10/site-packages/toyota_na/auth.py", line 92, in refresh_tokens async with session.post(ToyotaOneAuth.ACCESS_TOKEN_URL, data=data) as resp: File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 1138, in aenter self._resp = await self._coro File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 535, in _request conn = await self._connector.connect( File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 542, in connect proto = await self._create_connection(req, traces, timeout) File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 907, in _createconnection , proto = await self._create_direct_connection(req, traces, timeout) File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1166, in _create_direct_connection raise ClientConnectorError(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host login.toyotadriverslogin.com:443 ssl:default [Try again]
Retrying setup: 500, message='Internal Server Error', url=URL('https://oneapi.telematicsct.com/v2/legacy/remote/status')
What about if you have a subscription and have this error? I did renew services earlier today. Maybe there is backed propagation time? Although, my mobile app says it is active. You have this exact error even though you have a remote connect subscription?
Since my first post, I left it disabled to see if it was some backend accounting issue even though I had used the app to lock my doors and start my truck. Enabled the module a few minutes ago:
Logger: custom_components.toyota_na
Source: custom_components/toyota_na/__init__.py:104
Integration: Toyota (North America) ([documentation](https://github.com/widewing/ha_toyota_na), [issues](https://github.com/widewing/ha-toyota-na/issues))
First occurred: 3:36:12 PM (6 occurrences)
Last logged: 3:39:25 PM
Error fetching data
Traceback (most recent call last):
File "/config/custom_components/toyota_na/__init__.py", line 104, in update_vehicles_status
raw_vehicles = await get_vehicles(client)
File "/usr/local/lib/python3.10/site-packages/toyota_na/vehicle/vehicle.py", line 36, in get_vehicles
await vehicle.update()
File "/usr/local/lib/python3.10/site-packages/toyota_na/vehicle/vehicle_generations/seventeen_cy_plus.py", line 77, in update
vehicle_status = await self._client.get_vehicle_status(self._vin)
File "/usr/local/lib/python3.10/site-packages/toyota_na/client.py", line 67, in get_vehicle_status
return await self.get_vehicle_status_17cyplus(vin)
File "/usr/local/lib/python3.10/site-packages/toyota_na/client.py", line 80, in get_vehicle_status_17cyplus
return await self.api_get("v1/global/remote/status", {"VIN": vin})
File "/usr/local/lib/python3.10/site-packages/toyota_na/client.py", line 41, in api_get
return await self.api_request("GET", endpoint, header_params)
File "/usr/local/lib/python3.10/site-packages/toyota_na/client.py", line 31, in api_request
resp.raise_for_status()
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 500, message='Internal Server Error', url=URL('https://oneapi.telematicsct.com/v1/global/remote/status')
Actually, it looks like the HTTP response is 500 but the reason is no longer Integration not ready yet.
Looks like it changed for @hvrivera as well. @hvrivera has an error login endpoint. Maybe his account is locked out for failed attempts?
Never mind, I found Integration not ready yet
on the first attempt today:
Logger: homeassistant.config_entries
Source: config_entries.py:388
First occurred: 3:36:12 PM (1 occurrences)
Last logged: 3:36:12 PM
Config entry 'xxxx@gmail.com' for toyota_na integration not ready yet: 500, message='Internal Server Error', url=URL('https://oneapi.telematicsct.com/v1/global/remote/status'); Retrying in background
This is happening for myself as well. I managed to get it semi-working once by seemingly luck. I could see within the files that my car was added. No sensors or anything of the sort associated with it, though.
Update: Played around with it some more. If you remove and re-add the vehicle from your account on the Toyota app, the integration won't fail. I was able to view the config files for my account and my vehicle is saved there. Unsure where the problem lies but it seems it can communicate with the Toyota back end at some point. There's an issue recognizing the sensors and updating those values however.
Receiving the same errors. Removed my vehicle from the app and it appeared to log in HA. Note that removing your vehicle cancels the Toyota subscription. Added a sub back in again and tried it within HA and now receiving a 500 error again. Think I will leave it disabled for now as I’m afraid it might make too many attempts.
As a side-note, the app seemed to have terrible issues connecting to my vehicle and starting the climate this morning. Appears nothing has changed over the past year when it comes to how terrible the app works…
New to HA, and interiation is not loging in and getting the following error, need help thanks, Retrying setup: 500, message='Internal Server Error', url=URL('https://oneapi.telematicsct.com/v2/legacy/remote/status')
log: 2022-09-04 10:14:17.781 ERROR (MainThread) [custom_components.toyota_na] Error fetching data Traceback (most recent call last): File "/config/custom_components/toyota_na/init.py", line 104, in update_vehicles_status raw_vehicles = await get_vehicles(client) File "/usr/local/lib/python3.10/site-packages/toyota_na/vehicle/vehicle.py", line 36, in get_vehicles await vehicle.update() File "/usr/local/lib/python3.10/site-packages/toyota_na/vehicle/vehicle_generations/seventeen_cy.py", line 86, in update vehicle_status = await self._client.get_vehicle_status( File "/usr/local/lib/python3.10/site-packages/toyota_na/client.py", line 65, in get_vehicle_status return await self.get_vehicle_status_17cy(vin) File "/usr/local/lib/python3.10/site-packages/toyota_na/client.py", line 75, in get_vehicle_status_17cy return await self.api_get( File "/usr/local/lib/python3.10/site-packages/toyota_na/client.py", line 41, in api_get return await self.api_request("GET", endpoint, header_params) File "/usr/local/lib/python3.10/site-packages/toyota_na/client.py", line 31, in api_request resp.raise_for_status() File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 500, message='Internal Server Error', url=URL('https://oneapi.telematicsct.com/v2/legacy/remote/status') 2022-09-04 10:14:17.793 WARNING (MainThread) [homeassistant.config_entries] Config entry 'hvriverl@xxxx.com' for toyota_na integration not ready yet: 500, message='Internal Server Error', url=URL('https://oneapi.telematicsct.com/v2/legacy/remote/status'); Retrying in background