Tesla Tracking

Imzenreally7 months ago

So Tesla has a pretty accurate gps tracker built in - using tesla mate I was able to access the records etc etc etc

But I want to pipe that data into Traccar to track with the rest of my stuff - such as my phone and some trackers I’ve built using sinotrack gear

Has anyone done this? I’ve found a way via home assistant but it isn’t nearly as up to date (real time) as the Tesla tracking

sbh7 months ago

If you want real time from Tesla i suppose you need root access to the system in your car to setup transmission of position from Tesla, and then Traccar needs to implement whatever protocol they use. Perhaps easier to just install another (supported) tracking device in your car.

Anton Tananaev7 months ago

It looks like Teslas can stream data directly to a third party service:

https://developer.tesla.com/docs/fleet-api/fleet-telemetry

Pretty cool. It should be possible to support this.

Imzenreally7 months ago

The Tesla mate project on GitHub already pulls all this data and presents it in a nice postgres database via Grafana and Google maps

Even building a plug-in that would feed from Tesla mate would be a great benefit

I fully recognize this is probably a niche. You know I don’t imagine there are many fleets of Tesla’s out there, but for my own personal use, it would be kind of cool.

I am no Dev, but I’m happy to help how I can

SwayDev7 months ago

If there is user interest and willingness to sponsor this work, I would be happy to contribute a portion of the costs for this project.

Anton Tananaev7 months ago

Email support everyone who's interested in sponsoring the work. We'll see if we get enough interest.

sbh7 months ago

I don't feel sure that the car streams directly to 3.d party, it seems more like its getting it from the Tesla server.
However this too will be sufficient in many cases.

Anton Tananaev7 months ago

This is what the documentation says:

Fleet Telemetry allows vehicles to stream data directly to a server, eliminating the need to poll the vehicle_data endpoint.

Jabber6 days ago

I have a solution working which I built as part of a larger project. I'm consuming data from a fleet of Tesla vehicles and sending it to Traccar using the OsmAnd protocol.

The data set is quite rich and reporting everything from trips, SOC, charging details, estimated range based on SOC, tire pressures, seat belts, gear, odometer, location, door states, etc.

If there's interest, and Anton is comfortable with it, I'd be happy to add support for the broader public to be able to push data to their respective Traccar instances.

Anton Tananaev6 days ago

There's clearly some interest. Would be great if you can share.