Toyota Connect

Ist there something like a Toyota Website with car informations in the U.S.?
Maybe this one: https://www.toyota.com/owners/

Maybe some U.S. owner of a Toyota can sniff for API calls there…

If some one is able to help with adding North America, please direct all discussions and information to the mytoyota so i can implement and keep all the information about it easy to find. :smile:

Some one would have to sniff the API through there website.

@bdr9 It was a great starting point for me. As i am not that good in python or programmering in general, would you be interested in helping writing test for the integration with the aim that we then can add it to the core? I am still learning and python tests is a hole other level for me still :smile:

As i spend most of the time working on underlying package. It will greatly speed up the development and will be greatly appreciated :smile:

If anyone wants to help with it, just hop over to the github and make an PR

Sure I’d be happy to help with the tests. The tests can only run within Home Assistant itself, because they depend on core Home Assistant code. So in order to work on the tests, you’ll need to make a fork of the home-assistant/core repo.

You’ll also need fixtures, which are just samples of the data returned by the methods in mytoyota. The tests will use these fixtures to “mock” the mytoyota methods, so that the integration can be tested without connecting to a real account. See here where I have added fixtures for my Mazda integration for the two methods in my pymazda library, get_vehicles and get_vehicle_status. Make sure to censor any personal info such as VIN, etc.

Thanks, i just took a look at the links and your explanation help me understand it a bit better. :smile:

I am probably gonna have some more questions, would you be willing to just drop a comment over at the github (Here) so i can ask you directly? As i am the only one so far working on it, it would be nice to have someone i could asks some question when i have some about how to implement tests. Your help so far is much appreciated :smile:

Good idea :slight_smile: I started a discussion here: https://github.com/DurgNomis-drol/ha_toyota/discussions/13

Happy to help where I can. It took me a while to learn how to write the tests. I mostly learned by looking at other integrations and how they wrote their tests.

2 Likes

How easy would it be to convert the Toyota API to talk to a Lexus instead? Seems odd that searching for Lexus integrations yielded absolutely 0 results given the brand recognition. Same for Toyota really since this thread only just started last year.

Thoughts on Lexus integration?

Here is some one who is trying to do it. I am the developer of the custom Toyota integration.

1 Like

Thank you! I responded there and offered to do whatever I can to help out.

Was also just thinking how nice it would be if my car could lock/unlock automatically just based on the presence of the smart key, and I realized that there are probably ways to make this work depending on what sensors can be exposed to Home Assistant. Unlocking the car as I walk up to it surely wouldn’t respond quick enough to use the way I’d want to, but at least it could lock automatically if I forgot.

So much potential when your vehicle is integrated into your life.

I am not taking part in the development though, as i don’t own a Lexus, but are more then happy to help you guys do it. Developing the Toyota integration is lot of work already :sweat_smile: But i agree with you that it would be awesome to use these features.

I’ve tried signing in with my MyT email and password - but no luck. I’m based in Europe - but is there a way to double check if the MyT is set to Europe?

You can choose Europe at the bottom of the login prompt. Right now it is the only available region :blush: Can you please check your logs for more information :blush:

Yeah, I chose Europe. Log says this:


Login failed, check your credentials! 401 - {"httpErrorCode":401,"message":"Couldn't authenticate with given username/password"}

Have trippled checked credentials

Man I feel stupid! Checked one more time - missed some capital letters in the password! Sunday it is :innocent:

1 Like

Hello,

Thanks for the great integration for the MyT! I’ve been using it with my Corolla and I have been able to get great reports to my HA. :slight_smile:

One feature request came to my mind: include latest trip details to the integration (fuel consumption, gps locations for mapping etc). These are available in MyT app and also noticed this other development in GitHub where these details are available. GitHub - calmjm/tojota: Functions for interacting with Toyota MyT API

1 Like

Thanks for the feedback! Glad to hear you find it useful :smiley:

I have thought about this feature before, and briefly discussed it with another user, but concluded that as HA does not have a native way of displaying this data and as far as I know, no custom card exists for this (Though please point out if i’m wrong), it is not feasible to implement right now. Though i’m open for others to do so if they find a way.

1 Like

Ah okay, I am not too technical person that I could help out too much :smiley:

Trying to understand a bit more: Is the GPS data the most challenging part, how to store the data and present it? What about the basic info of the latest trip: distance, average speed and fuel consumption?

Yes, presenting the GPS data is the problem. HA have no way of translating GPS points onto an overlay and then draw a pretty line unfortunately. This would be pretty nice though.

Basic info would be possible, but someone would need to implement it. Contributions are more then welcome :smiley:

I had to remove and re-add this one. But now I can’t sign in. i only get this error?

Please update to the latest version (1.2.6) This bug is fixed :blush: