Toyota Connect

Someone was working on it, but I have no idea if came to anything.

Anyone else getting this when trying to setup the toyota_na integration?

image

2021-12-30 17:41:37 ERROR (MainThread) [custom_components.toyota_na] Error fetching data
Traceback (most recent call last):
File “/config/custom_components/toyota_na/init.py”, line 63, in update_vehicles_status
vehicle[“status”] = await client.get_vehicle_status(vin)
File “/usr/local/lib/python3.9/site-packages/toyota_na/client.py”, line 56, in get_vehicle_status
return await self.api_get(“v1/global/remote/status”, {“VIN”: vin})
File “/usr/local/lib/python3.9/site-packages/toyota_na/client.py”, line 38, in api_get
return await self.api_request(“GET”, endpoint, header_params)
File “/usr/local/lib/python3.9/site-packages/toyota_na/client.py”, line 28, in api_request
resp.raise_for_status()
File “/usr/local/lib/python3.9/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’)

1 Like

Maybe because you are in NorthAmerica? The Integration is only for Europe as far as I know.
No one has yet reverse engineered the corresponding Toyota servers for the other countries/continents from the respective apps

Hello apologies ahead of time. I am a HA noob. I recently installed the NA toyota integration and it is working well. The only thing I do not see is a way to activate the remote start.

Is this possible with the HA integration?

I glanced through the GitHub repos and didn’t see this answered, do these APIs list the battery level and current charging status for compatible models such as Rav4 Prime etc?

I noticed it doesn’t work for NA, but if those values were available I might put some effort into figuring out if NA access is possible.

It seems like at least one third party company has done it.

Short info for all who use the custom integration for Toyota Connected Services Europe:
Due to a changeover from the previous MyT to the new MyToyota app and a, presumably associated change of the API, the custom integration of @DurgNomis-drol is currently no longer working:

By the way, it seems that the repo with the Python lib for the related Toyota Home Assistant custom component for North America has been taken down with a DMCA notice: https://github.com/widewing/toyota-na

Let’s hope Toyota Europe doesn’t take similar steps. It’s sad to see this behavior of car makers currently (see shutdown of open HA Mazda integration)

@CM000n Yeah, it sad that they do it. But the NA repository hosted the decompiled app in the repository if i remember correctly. And that can cause problems, as publishing Toyota’s source code is actually illegal. That’s why I haven’t published the decompiled android app code to the repository.

1 Like

Hi there! I see some good discussions in the link shared on the issue and the issue is closed there. I however see there is no new release (still on v1.2.11 which is the latest according to HACS).

Is there a way I can help out testing or is there already a release I can use?
Thanks for all you and @DurgNomis-drol do!

I do not have the possibility or authorization to publish a new version with the hotfix. Only @DurgNomis-drol can do that.

But be warned, the current version with the hotfix has lost some of its functionality in preparation for major changes!

We are also currently in the process of rewriting the mytoyota Python lib, on which the custom component is based, to the new API endpoints. However, this is a major undertaking:

Perhaps @DurgNomis-drol would like to wait with the release of a new version until this preliminary work has been completed and a custom component based on the new mytoyota API endpoints can be created.

Fully understood. I´d be happy to help testing! I´m thinking if it would be helpful to have this as a separate repository (for those migrated to the new Toyota app) which allows to use this beta version or have it as a development branch in HACS to test.

Worst case logically I can copy the code manually and help testing, but having it available through HACS would just simplify and you can go back to older versions easily if needed.

We have no need for a separate repo. HACS already supports the download of beta versions. But someone would have to publish one first :wink:

1 Like

Ok! I’ll just patiently wait for @DurgNomis-drol to post it if possible so I can support!

As @CM000n says, no need for a separate repo. You can just choose master at the bottom of the list to get the cutting edge.

Thanks @DurgNomis-drol! Did you already post the new code as beta master? It does not seem to work yet. Don´t want to complain or put pressure. Just would like to help if I can.

See my comment from above: Toyota Connect - #82 by CM000n

The hotfix is already in the main/master branch but will lack some functionallity.

There is currently no development for the custom component for the new Toyota API. First we have to get it functional in the underlying Python Lib.

Thanks. I’ve got it loaded and although initially it did not connect now it does and I do get limited data so perfect. Looking forward to help testing if needed.

:rotating_light: :rotating_light: :rotating_light: Breaking changes ahead :rotating_light: :rotating_light: :rotating_light:
:warning: Read carefully! :warning:

Version 2.0.0 of the toyota Custom Component now includes all customizations for the new Toyota oneapi!
This also means that this version is no longer compatible with your vehicle if you are still using the old MyT app! Before updating, please make sure that you are already using the new MyToyota app and that your vehicle has already been migrated to the new API.

The changes may not look big to you in terms of the Home Assistant sensors and entities, but there have been huge changes in the background!
Especially due to the great support of @GitOldGrumpy and @CM000n , there were more than 50,000 lines of code changed in the mytoyota Python Lib and the ha_toyota Home Assistant Custom Component to ensure compatibility with the new Toyota API.
But of course, as the initiator of the two projects, we should not forget to mention @DurgNomis-drol.

All these changes make it necessary for you to completely remove the previous Custom Component installation from your Home Assistant devices and HACS!
You should then perform a reboot and can then reinstall the custom component via HACS again.
:warning:

If you encounter any problems, please create an issue at: Issues · DurgNomis-drol/ha_toyota · GitHub

2 Likes

Any chance in the future this addon will be update with EV info for hybrid plugin cars. And remote start button.