Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unlock/Lock Functions? #119

Closed
xpnewmedia opened this issue Dec 11, 2021 · 14 comments · Fixed by #190
Closed

Unlock/Lock Functions? #119

xpnewmedia opened this issue Dec 11, 2021 · 14 comments · Fixed by #190

Comments

@xpnewmedia
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Am I able to lock and unlock my compatible vehicles using this API.
In addition to start and stop functions?

Describe the solution you'd like
A clear and concise description of what you want to happen.
I want to be able to track my vehicles and unlock or lock the doors when necessary.

I also want to start and safely stop my vehicle using the API.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@DurgNomis-drol
Copy link
Owner

Can you do it in the MyT app?

@DurgNomis-drol
Copy link
Owner

To clarify my question, we can only implement features that exists in the app already. So the both the start/stop and lock/unlock feature has to be in the app for us the be able to do this 😊

@tijunoi
Copy link

tijunoi commented Apr 3, 2022

@DurgNomis-drol At least in Spain, there is door lock/unlock functionality in the app as well as HVAC on/off (no temp adjust for my car though)

@joro75
Copy link
Collaborator

joro75 commented Apr 4, 2022

That is very interesting, as we cannot or do not know how to remote lock/unlock the car from the MyT app.

  • Can you share a screenshot on how this can be done in the MyT app?
  • Which version of the MyT app are you using?
  • Which Toyota model do you own? Does it have special options that could cause that it is remote lockable?

Thanks!

@tijunoi
Copy link

tijunoi commented Apr 4, 2022

  • Which version of the MyT app are you using?

iOS 4.10.0 (494). Although the feature is not new, already available last year.

  • Which Toyota model do you own? Does it have special options that could cause that it is remote lockable?
    I have a Toyota Yaris Cross produced Sep 2021. AFAIK this is available to 2019-2020 Corolls, 2021-2022 Yaris, RAV4. Yaris Cross and Aygo X also have climate control (only on/off).

This is the only info I could find.

  • Can you share a screenshot on how this can be done in the MyT app?

IMG_6105
IMG_6106
IMG_6107

I tried intercepting the request via Proxyman to see the endpoint and payload for both lock/unlock and climate, but the app uses SSL pinning so I could not manage to do it. Can I assist somehow? I also have an Android device.

@DurgNomis-drol
Copy link
Owner

I think decompiling the Android App is the way to get more information on it. I have an older version decompiled that have some information on it. Though I think it would be better to do it again. I won't be sharing mine, as that would be illegal I think and don't want to get in trouble with Toyota 😄

I also don't have much time before June or July to look into this. So if you guys can take it, it would be awesome. I will be in the shadows following along and available for any questions you have.

@joro75
Copy link
Collaborator

joro75 commented Apr 5, 2022

@tijunoi : Thanks for providing the requested information. It is very interesting!
I wasn't aware that this is possible. The problem now is that we have to find the correct URL/API call to also do this from the mytoyota library. I'm not sure how we can arrange that....

@DurgNomis-drol
Copy link
Owner

@joro75 You should be able to find the endpoint (URL) in the android app if you decompile it

@joro75
Copy link
Collaborator

joro75 commented Apr 5, 2022

I also found the 'official' documentation of Toyota that describes the Remote Lock/Unlock feature. It is available at: https://www.toyota-europe.com/download/cms/euen/MyT%20App%20DOOR%20LOCK%20UNLOCK_tcm-11-2409615.pdf

It seems to be available on the models:

  • Yaris Cross
  • Aygo X
  • Yaris Model Year 21
  • Toyota bZ4X
    With the remark: Remote control features depend on local grade and specific OE options required.

@joro75 joro75 closed this as completed Apr 5, 2022
@joro75 joro75 reopened this Apr 5, 2022
@tijunoi
Copy link

tijunoi commented Apr 6, 2022

I decompiled the app and also ran it with frida and mitmproxy. It seems that the two features do not use the REST API. They appear to be using websockets, but don't know how to tap into that.

Edit: I'm stupid and proxy was not on when testing the lock/unlock. I have the endpoint and the request body, although I also found them in the decompiled app. Might make a PR soon then :)

@sebas00
Copy link

sebas00 commented Jul 31, 2022

@tijunoi did you ever get around to code it? If not would you have the endpoint and request body specs documented somewhere?

@apmechev
Copy link
Contributor

@tijunoi, do you have the endpoint/body handy? I'm interesting in implementing this

@DurgNomis-drol
Copy link
Owner

@joro75 should we wait a bit before we release a new version of the lib, so we can get a couple of people to test it, or should we just send it? 😃

@joro75
Copy link
Collaborator

joro75 commented Nov 7, 2022

@DurgNomis-drol I do no think that a lot of people will use the new unlock/lock function before it is released. If they want to do that, they already have to download and install the trunk version in some way.
In my opinion we can release this version, so it will be easier for a lot of them to just update to the new library (using the pip installer). If there are problems we can provide a small fix-update.

I do not expect a lot of problems, and I also have tested it with my vehicle (which doesn't support it).
The only outstanding issue is that there is no good way to determine if remote lock/unlock is supported by a vehicle. At this moment the end-user has to know for their own vehicle if it is supported, and otherwise an exception is raised.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants