ha_toyota: Error «Please setup Connected Services» after Migration to new MyToyota App/API

Describe the bug The Toyota integration has stopped working, seems to have happened at the same time as the car was moved (by Toyota) from the «MyT Toyota» app to the «MyToyota» app. I get this error message in the logs:

2023-10-29 12:27:21.691 ERROR (MainThread) [mytoyota] Please setup Connected Services if you want live data from the car. (JTM**************)

About this issue

  • Original URL
  • State: closed
  • Created 8 months ago
  • Reactions: 2
  • Comments: 42 (11 by maintainers)

Most upvoted comments

I checked my app, and my corolla has not been moved yet, but from what i can read here, this might happen within the next days.

When this happens, maybe i can provide informations, or also can help to code a library for the new api. Let us find out, what will happen.

Today I took a closer look at the decompiled MyToyota .apk file. It seems that none of the previous <endpoint>.toyota-europe.com addresses are used anymore. Instead, there are quite a few other URLs used in the sources/oneapp/framework/network/C19794f.java file. Unfortunately I am not a java developer, so it is still a bit difficult for me to understand what exactly is used for what.

But when I look at the console log of the customer area of toyota.de, it still seems to make api calls against the https://cpb2cs.toyota-europe.com address to get basic car information there. Also the https://ssoms.toyota-europe.com addresses are still used there for authentication. So it seems that the https://cpb2cs.toyota-europe.com address is currently still being used for basic vehicle information (This is why the number plate sensor in the custom component has continued to work so far), but the driving statistics are coming via a different API than the previous one at https://myt-agg.toyota-europe.com/cma/api.

An interesting address that I found in the app is this one: https://ctpa-oneapi.tceu-ctp-dev.toyotaconnectedeurope.dev This seems to be a collection of various Toyota Connected Services API endpoints. But I would need to dig into it a bit more to understand how to authenticate against it.

Hi @HuffYk, thank you very much. I am already aware of that. Please see the comment in the associated pull request. I think we should move further discussions regarding the custom integration update to the new mytoyota version there, as they are no longer directly related to the issue reported here.

I checked my app, and my corolla has not been moved yet, but from what i can read here, this might happen within the next days.

When this happens, maybe i can provide informations, or also can help to code a library for the new api. Let us find out, what will happen.

Hi @HuffYk,

No, the tags don’t make much sense, as I found out when so many changes are made. The best way to test this is to pull the latest version of the Repo / V2 branch and manually replace the “toyota” folder in the custom components directory of your Home Assistant installation.

Yep it is ForgeRock AS and once you have your access token it changes URL from https://b2c-login.toyota-europe.com to https://ctpa-oneapi.tceu-ctp-prd.toyotaconnectedeurope.io. This has many endpoints to pull information from but seems little point moving forward until I have worked out how to automatically get hold of the GUID(customerId). Can post up later what endpoints I’ve found and data it is responding with.

@CM000n Well then I will try not to open the App 😉 or I will have a winter project on my hand again 😆 🚀

I just wrote an email to Toyota. Let’s see if something comes back:

Official API for Toyota Connected Services? Simon **** Mi., 1. Nov. 2023 um 12:40 To: MyTapp@toyota-europe.com

Dear Toyota App Team,

the new MyToyota App is in itself a nice revision of the previous MyT App. However, Toyota seems to have also changed the API here in the background. This poses problems for developers who offer solutions based on reverse engineering of the old MyT app. They now have to start all over again. For example, the Home Assistant Toyota integration, which is used by several thousand people, is no longer functional after a migration to the new MyToyota API: https://github.com/DurgNomis-drol/ha_toyota/issues/164

As mentioned, the MyToyota app is quite nice, but for those who want to go a step further and integrate their Toyota really “smart” into the rest of their smart home ecosystem, it is unfortunately insufficient. So would it please be possible to finally provide us with an official API for Toyota Connected Services?

You would really endear yourselves to some people and really show a will to innovate.

Best regards and many thanks in advance! Simon