Open ch604 opened 5 months ago
i checked into the toyota_na code a bit and found that the app likely DID find my vehicle, but failed to get its status:
$:/usr/local/lib/python3.12/site-packages/toyota_na# python -m toyota_na.app get_user_vehicle_list | grep generation
/usr/local/lib/python3.12/site-packages/toyota_na/app.py:127: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
"generation": "17CYPLUS",
this generation feeds into client.py:
async def get_vehicle_status_17cyplus(self, vin):
return await self.api_get("v1/global/remote/status", {"VIN": vin})
even running this directly times out:
$:/usr/local/lib/python3.12/site-packages/toyota_na# python -m toyota_na.app get_vehicle_status XXXXXXXXXXX
...
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 504, message='Gateway Timeout', url=URL('https://oneapi.telematicsct.com/v1/global/remote/status')
so it sounds like another unfortunate double upstream issue of the undocumented toyota api. several documented calls work fine from command line, others do not.
I was able to successfully log into the toyota service with the new updates to the authentication flow! No more workarounds! But, after connecting, I get the following error output when the app attempts to initialize:
For kicks, I modified the toyota_na python package inside my hass docker container as described in #52 and generated a new set of tokens. when i poll using these tokens for get_user_vehicle_list, all info arrives normally: