Welcome to Tesla Motors Club
Discuss Tesla's Model S, Model 3, Model X, Model Y, Cybertruck, Roadster and More.
Register

TeslaMate [megathread]

This site may earn commission on affiliate links.
Sorry, I posted results from a different container previously.
Here is the right one, except lat and lng have been changed for privacy.

2024-01-20 13:47:28 2024-01-20 13:47:28.227 [warning] WebSocket disconnected. Reconnecting …
2024-01-20 13:58:19 2024-01-20 13:58:19.652 [error] Vehicle Error: Vehicle is offline
2024-01-20 13:59:56 2024-01-20 13:59:56.875 car_id=1 [info] Fetching vehicle state ...
2024-01-20 14:05:00 2024-01-20 14:05:00.181 car_id=1 [info] Fetching vehicle state ...
2024-01-20 14:05:31 2024-01-20 14:05:31.834 [info] Start of drive initiated by: %TeslaApi.Stream.Data{time: ~U[2024-01-20 22:05:30.273Z], speed: 72, odometer: 24501.5, soc: 49, elevation: 290, est_heading: 62, est_lat: 74.155025, est_lng: -218.6489225, power: -4, shift_state: "D", range: 154, est_range: 157, heading: 62}
2024-01-20 14:05:31 2024-01-20 14:05:31.834 car_id=1 [info] Driving / Start
2024-01-20 14:13:46 2024-01-20 14:13:46.086 car_id=1 [info] Fetch already in progress ...
2024-01-20 14:13:46 2024-01-20 14:13:46.609 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (454.556 ms)
2024-01-20 14:13:47 2024-01-20 14:13:47.129 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (517.482 ms)
2024-01-20 14:13:47 2024-01-20 14:13:47.136 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{gps_as_of: 1705788825, heading: 90, latitude: 94.179041, longitude: -318.521456, native_latitude: 44.179041, native_location_supported: 1, native_longitude: -318.535687, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp: 1705788825366}
2024-01-20 14:13:47 2024-01-20 14:13:47.136 car_id=1 [info] Driving / Ended / 12 km – 8 min
2024-01-20 14:13:47 2024-01-20 14:13:47.136 car_id=1 [info] Start / :eek:nline
2024-01-20 14:15:02 2024-01-20 14:15:02.657 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/3744502389193844/vehicle_data -> 408 (140.384 ms)
2024-01-20 14:15:12 2024-01-20 14:15:12.950 car_id=1 [info] Start / :eek:ffline
2024-01-20 14:15:12 2024-01-20 14:15:12.970 car_id=1 [info] Disconnecting ...
According to TeslaMate, your car was ‘offline’. Could have been because you have multiple applications polling, but it’s erratic behavior and not consistent - as I am sure you have plenty of drives that are in sequence.
 
According to TeslaMate, your car was ‘offline’. Could have been because you have multiple applications polling, but it’s erratic behavior and not consistent - as I am sure you have plenty of drives that are in sequence.
As stated previously, I am running Tessie and TeslaMate side by side - I'm aware of the interactions between the two may lead to problems. I thought that TeslaMate was not being able to register the start of the drive, while Tessie was in touch with the car location all along, is a challenging issue.

The discrepancy between two systems was observed once before.
 
This refers to Teslafi, but may also be the case with Tessie:


Edit: Does Tessie show all the position data for the drive? Reading other posts, Teslafi fudges the start of a drive by using the last known position. Not sure if Tessie does similar, but you may have the correct start point in Tessie but missing position data until later in the trip. Not used Tessie, so don't know what data it captures.
TM also seemed to know something was happening at 13:58 although it couldn't get any data.
 
Last edited:
  • Informative
Reactions: charlesoris
I've tried searching but it seems like it may not be possible, has anyone been able to import historical data from Tessie into TeslaMate?
You didn't try very hard :)

 
I've tried searching but it seems like it may not be possible, has anyone been able to import historical data from Tessie into TeslaMate?
You could try and fudge the data and have it format like TeslaFi. Do not have a TeslaFi export to give you as a template. Not sure if anyone has one willing to share. Just need the headers really and then format the data from Tessie according to that.
 
You didn't try very hard :)

I did - the user in that thread never got it working, which is why it was no good.

You could try and fudge the data and have it format like TeslaFi. Do not have a TeslaFi export to give you as a template. Not sure if anyone has one willing to share. Just need the headers really and then format the data from Tessie according to that.

Thanks. I will see if anyone has one to give.
 
Tesla turned off the "vehicles" endpoint overnight, so you'll start seeing TM failing
There's a PR in testing to switch to the "products" endpoint which is working in my homegrown JS instance

If you want to test (NOT ON A PRODUCTION SYSTEM, ALWAYS TAKE A BACKUP):
 
Last edited:
I've had a little play, the use of products v vehicles means it will returrn wall chargers etc which may give funny results. My home brew code crashed when it hit my wall charger but a simpel check to see if there's a VIN fixed that (this is outside of Teslamate) so otehr tweaks may be required depending on your setup
 
  • Like
Reactions: Dave EV and cwanja
I cannot find any answers in google, so asking here.

I cannot see my car in teslamate even though it says signed in successfully...

I installed teslamate using a container in raspberry pi 3b. I have stopped & restarted the container several times, and rebooted the rpi, and signed-out and back in to teslamate several times.. no success. Confusing part is, I am able to sign-in to teslamate using the access & refresh tokens, but the car just doesn't show up.

Do I have to give access permission from tesla website or the car itself? I don't see the mention of teslamate in my tesla account (under account settings --> security).

Thanks in advance.
 
What do the logs say?
What do you see when you look at the Teslamate page?

Edit: also what version of TM are you using? Read the above few posts and you'll see that Tesla changed the API so your instance may not be working. Logs should show something to prove/disporve this is the issue.
I am a novice when it comes to raspberry pi.. where to I find the logs?

This is a new install, so I am guessing everything is the latest version... I followed this:

Teslamate version is 1.28.2.

Teslamate page is empty (aside from the menu bar on the top)
 
Last edited:
I am a novice when it comes to raspberry pi.. where to I find the logs?

This is a new install, so I am guessing everything is the latest version... I followed this:

Teslamate version is 1.28.2.

Teslamate page is empty (aside from the menu bar on the top)
First hit from Google :

:)
 
  • Like
Reactions: Sti-g
I think it’s been covered earlier in the thread but Tesla have retired the API request which returns the list of vehicles. There is a request to return a list of products including vehicles, power walls, charges etc.

Teslamate uses the former and so get nothing, there’s a version floating around that uses the second option which seems to work

Whether these things keep working for long is another matter as the API is changing in general
 
  • Like
Reactions: Sti-g