Just bought a new vehicle and its equipped with onstar and android auto and all that good junk. I was curious if its possible to pull data about the car such as
Mileage range
Oil life
tire pressure
breaking metrics
location
fuel metrics
diagnotics
And also have control of things such as locks/horns/lights
I see that they have API access to people that are accepted into the developer program here
I highly doubt it is easy to get access to that information, some of it is sensitive data. Who knows though, just going to have to try to sign up and see if you can.
GM has a website that displays my oil life, break life, tire pressure in each tire, mileage, and a bunch of other useful informations. How would I use home assistant to pull the data from the site though?
It may not be easy though… also if you need to log in to check it and stuff it may be even more challenging requiring a custom python script or something
Its possible but more of a hack, would be better if there was an api you could read from instead.
ive pulled data from home assistant to rainmeter on my pc using curl and the rainmeter webparser which creates a text file of the webpage. From there i could just move the txt file over to home assistant and have home assistant read the txt file possibly.
The only issue with this is that you would need an always on windows machine to do it. I have mine on 24/7 since im running servers on it but others might not like this idea.
Yesterday I’ve started to investigate myOpel website.
Overnight I did some work to demonstrate how to get data using python - check out this repo: https://github.com/nyxnyx/onstar
Interestingly, one of the things on my to-do list is to have a play with Carloop and see if I can get details from my old Ford’s OBD port. It should be possible, which means any car could be added to Home Assistant.