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.
If you can share the output of top and also the API errors (without any location data) we might be able to spot something.
Thanks.

Here's the top contents
Code:
top - 08:03:40 up 22:19,  2 users,  load average: 0.06, 0.02, 0.00
Tasks: 167 total,   1 running, 166 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.3 us,  0.7 sy,  0.0 ni, 98.9 id,  0.0 wa,  0.0 hi,  0.1 si,  0.0 st
MiB Mem :    909.6 total,     46.6 free,    294.7 used,    568.3 buff/cache
MiB Swap:    100.0 total,      3.1 free,     96.9 used.    420.4 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
  31900 10000     20   0 2592032  65104   4280 S   2.0   7.0  14:00.02 beam.smp
   1060 472       20   0  792176  40352  19440 S   1.0   4.3   4:17.45 grafana-server
  34437 lex       20   0    9844   3100   2500 R   1.0   0.3   0:00.17 top
     15 root      20   0       0      0      0 I   0.3   0.0   0:44.69 rcu_preempt
    599 root      20   0 2165828  24872   6788 S   0.3   2.7   5:30.13 dockerd
   1061 1883      20   0    3732    268    196 S   0.3   0.0   1:01.85 mosquitto
  32033 999       20   0  216232  30372  27284 S   0.3   3.3   0:15.59 postgres
  33596 root      20   0  815812  79024  15420 S   0.3   8.5   0:41.44 rclone
  33979 root      20   0       0      0      0 I   0.3   0.0   0:01.95 kworker/2:1-events
  34423 lex       20   0   16072   4472   3260 S   0.3   0.5   0:00.02 sshd
      1 root      20   0  165224   5292   3472 S   0.0   0.6   0:16.90 systemd
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.37 kthreadd
      3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_gp
      4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_par_gp
      5 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 slub_flushwq
      6 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 netns
     10 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mm_percpu_wq
     11 root      20   0       0      0      0 S   0.0   0.0   0:00.00 rcu_tasks_kthre
     12 root      20   0       0      0      0 S   0.0   0.0   0:00.00 rcu_tasks_rude_
     13 root      20   0       0      0      0 S   0.0   0.0   0:00.00 rcu_tasks_trace
     14 root      20   0       0      0      0 S   0.0   0.0   0:07.81 ksoftirqd/0
     16 root      rt   0       0      0      0 S   0.0   0.0   0:00.01 migration/0
     17 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/0

And some of the logs where the API errors are:

Code:
teslamate_1  | 2022-09-07 08:37:53.849 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9823.485 ms)
teslamate_1  | 2022-09-07 08:37:53.849 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 08:37:53.850 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 08:38:16.238 [notice]     :alarm_handler: {:clear, TeslaMate.Vehicles.Vehicle_1_api_error}
teslamate_1  | 2022-09-07 08:38:23.086 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9233.867 ms)
teslamate_1  | 2022-09-07 08:38:23.087 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 08:38:23.088 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 08:38:52.325 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9233.441 ms)
teslamate_1  | 2022-09-07 08:38:52.326 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 08:38:52.326 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 08:39:16.239 [notice]     :alarm_handler: {:set, {TeslaMate.Vehicles.Vehicle_1_api_error, :fuse_blown}}
teslamate_1  | 2022-09-07 08:39:21.570 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9240.525 ms)
teslamate_1  | 2022-09-07 08:39:21.571 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 08:39:21.571 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 08:39:50.810 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9234.405 ms)
teslamate_1  | 2022-09-07 08:39:50.811 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 08:39:50.811 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 08:40:20.053 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9239.067 ms)
teslamate_1  | 2022-09-07 08:40:20.054 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 08:40:20.054 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 08:40:49.281 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9222.344 ms)
teslamate_1  | 2022-09-07 08:40:49.282 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 08:40:49.283 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 08:46:16.246 [notice]     :alarm_handler: {:clear, TeslaMate.Vehicles.Vehicle_1_api_error}
teslamate_1  | 2022-09-07 08:56:30.770 car_id=1 [warning] Received stale stream data: %TeslaApi.Stream.Data{elevation: 38, est_heading: 15, est_lat: <SNIP>, est_lng: <SNIP>, est_range: 178, heading: 15, odometer: 25488.7, power: 0, range: 217, shift_state: nil, soc: 82, speed: nil, time: ~U[2022-09-07 08:56:29.931Z]}
teslamate_1  | 2022-09-07 09:07:44.145 car_id=1 [warning] Received stale stream data: %TeslaApi.Stream.Data{elevation: 38, est_heading: 15, est_lat: <SNIP>, est_lng: <SNIP>, est_range: 178, heading: 15, odometer: 25488.7, power: 0, range: 217, shift_state: nil, soc: 82, speed: nil, time: ~U[2022-09-07 09:07:43.332Z]}
teslamate_1  | 2022-09-07 09:16:02.343 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9760.317 ms)
teslamate_1  | 2022-09-07 09:16:02.344 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 09:16:02.345 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 09:16:31.665 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9317.888 ms)
teslamate_1  | 2022-09-07 09:16:31.666 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 09:16:31.666 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 09:17:00.905 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9234.557 ms)
teslamate_1  | 2022-09-07 09:17:00.905 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 09:17:00.906 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 09:17:30.129 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9219.539 ms)
teslamate_1  | 2022-09-07 09:17:30.129 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 09:17:30.130 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 09:17:59.358 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9224.305 ms)
teslamate_1  | 2022-09-07 09:17:59.358 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 09:17:59.359 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 09:18:16.278 [notice]     :alarm_handler: {:set, {TeslaMate.Vehicles.Vehicle_1_api_error, :fuse_blown}}
teslamate_1  | 2022-09-07 09:18:28.599 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9236.034 ms)
teslamate_1  | 2022-09-07 09:18:28.600 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 09:18:28.601 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 09:20:06.187 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9652.942 ms)
teslamate_1  | 2022-09-07 09:20:06.188 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 09:20:06.189 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 09:20:35.421 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9228.162 ms)
teslamate_1  | 2022-09-07 09:20:35.422 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 09:20:35.423 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 09:21:04.650 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9224.155 ms)
teslamate_1  | 2022-09-07 09:21:04.652 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 09:21:04.653 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 09:23:47.830 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9746.952 ms)
teslamate_1  | 2022-09-07 09:23:47.831 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 09:23:47.832 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 09:24:17.134 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9299.267 ms)
teslamate_1  | 2022-09-07 09:24:17.135 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 09:24:17.136 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 09:24:46.459 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9319.363 ms)
teslamate_1  | 2022-09-07 09:24:46.460 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 09:24:46.461 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 09:25:15.682 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9218.289 ms)
teslamate_1  | 2022-09-07 09:25:15.683 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 09:25:15.684 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 09:26:42.840 [error] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> error: "socket closed" (343.387 ms)
teslamate_1  | 2022-09-07 09:26:42.840 [warning] TeslaApi.Error / socket closed
teslamate_1  | 2022-09-07 09:26:42.841 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 09:28:21.650 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9746.037 ms)
teslamate_1  | 2022-09-07 09:28:21.651 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-09-07 09:28:21.651 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-09-07 09:28:50.887 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/<SNIP>/vehicle_data -> 408 (9232.038 ms)

This was while waiting for the teslamate landing page to load. It took perhaps 2 minutes or so to load, and I actually got some graphics this time instead of just a text webpage (for the first time in days).

1670274850419.png


1670274970092.png

What it usually looks like - with location hidden this time :)
 
That looks like a timeout connecting to the Tesla servers.

So it could be the Tesla servers, the connection between the pi and the servers or even the car not connecting to the servers.

I'd try rebooting the router first of all to make sure there's nothing funny on your network. I presume you've not made any changes to your home network?
I'd then reboot the car and check that you have a good data signal. It may well be that the car is connecting to the router and not getting a good enough connection to the Tesla servers.

Easy steps to try while I read the GitHub page.
 
  • Love
Reactions: cwanja
I'd try rebooting the router first of all to make sure there's nothing funny on your network.
IT crowd strikes again. Rebooting my vDSL modem and router has got it working again. I had reboot the pi that hosts teslamate so many times!

Have made no network changes at all - in fact we were away camping when this behaviour started. Judging by a reset digital clock in the house, I'd say we had a power outage while we were away that could have kicked off all the weirdness. Thank you for your help!
 
  • Like
Reactions: cwanja and init6
My home charging rates have changed recently, so I went into the geo-loctations to update to the new rate. When I open the location, all is fine, I enter the new rate and click save. The system then pops up a message saying there a 8 sessions with no cost (see screen shot) - I'm not worried about that, but none of the buttons work - not even the 'x' to close the dialogue...

Any thoughts, as I can't save the new rate atm...

1670446842777.png
 
My home charging rates have changed recently, so I went into the geo-loctations to update to the new rate. When I open the location, all is fine, I enter the new rate and click save. The system then pops up a message saying there a 8 sessions with no cost (see screen shot) - I'm not worried about that, but none of the buttons work - not even the 'x' to close the dialogue...

Any thoughts, as I can't save the new rate atm...

View attachment 882509
I think I've had that before. IIRC I refreshed the page and it worked. Got sneaky suspicion I had to login again when the page refreshed, so maybe an out of date login.
 
I've been running teslamate a while now but notice that the car doesn't ever sleep. It's a 2014 model S with MCU2. I've read that this used to be an issue with upgraded MCU but was resolved.

Anyone else still getting dealing with this? Is it a teslamate issue or a car issue?
 

Attachments

  • sleep1.PNG
    sleep1.PNG
    2.4 KB · Views: 41
  • sleep2.PNG
    sleep2.PNG
    89.4 KB · Views: 36
I've been running teslamate a while now but notice that the car doesn't ever sleep. It's a 2014 model S with MCU2. I've read that this used to be an issue with upgraded MCU but was resolved.

Anyone else still getting dealing with this? Is it a teslamate issue or a car issue?
Teslamate can't keep your car awake if it's in the default streaming mode.
 
  • Informative
Reactions: Dave EV
Teslamate can't keep your car awake if it's in the default streaming mode.

How do I check which streaming mode it's in?

This thread implies it's a problem with the Tesla app. What version do you have?

Ah thanks for this. The version is 4.15.1
I have tried closing the app and killing the task but it didn't make any difference. I'll switch off my phone completely tonight in case there is some other hidden service running. I also disabled cabin overheat protection for what it's worth.
 
I have tried closing the app and killing the task but it didn't make any difference. I'll switch off my phone completely tonight in case there is some other hidden service running

Changing password is best way to disable anything connecting ... maybe you (or spouse etc.) installed an "I'll give that a try" APP and have forgotten that you did so ... changing password will kill all of them.
 
How do I check which streaming mode it's in?



Ah thanks for this. The version is 4.15.1
I have tried closing the app and killing the task but it didn't make any difference. I'll switch off my phone completely tonight in case there is some other hidden service running. I also disabled cabin overheat protection for what it's worth.
There is an option marked 'Streaming API' in the TeslaMate settings. This should be enabled
 
  • Love
Reactions: Leafy
Changing password is best way to disable anything connecting ... maybe you (or spouse etc.) installed an "I'll give that a try" APP and have forgotten that you did so ... changing password will kill all of them.

Sorry, I meant closing the phone app. I don't want to close Teslamate because then I won't be able to check if it's sleeping :p
Nobody else uses the phone app and nobody has password so there shouldn't be anything else trying to ping it. Teslamate is the only app I've tried so far.

There is an option marked 'Streaming API' in the TeslaMate settings. This should be enabled

Now I feel stupid lol. Yeah I see it and it's enabled. I'll give it a try disabled.
 
Sorry, I meant closing the phone app. I don't want to close Teslamate because then I won't be able to check if it's sleeping

Understood, but you'd not be the first person to have something "fogotten" running :)

If you want to do the whole Belt&Braces then I'd change password and only put that new password into TeslaMate for the consumption / sleeping test (or don't put it in there either, for one night, and see how much SoC falls with nothing connected), guaranteed nothing else in the frame then ... including the APP which, although closed, somehow was running in background, or some other gremlin.

Anything else? LongShot: Sentry Mode ON?
 
  • Helpful
Reactions: Leafy