Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Car constantly cycles sleep and wake. #2556

Closed
1 task done
BriCo84 opened this issue Mar 24, 2022 · 73 comments
Closed
1 task done

Car constantly cycles sleep and wake. #2556

BriCo84 opened this issue Mar 24, 2022 · 73 comments
Labels
closed:duplicate This issue or pull request already exists Stale

Comments

@BriCo84
Copy link

BriCo84 commented Mar 24, 2022

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

My car constantly goes in to a state of sleep and awake. This started as soon as I started using Teslamate, which is as soon as I got my car. From what I can see this has been happening from day 1, which goes all the way back to May of 2021. It shows variations in the cylce such as 57 minutes off, 7 minutes on, then maybe 54 minutes off, 10 minutes on, and so and so on, varying. Nowadays, it seems to be a constant 58 minutes asleep, 14 minutes on, or very close to that.

I know this has been previously reported but from what I can see all previous issues are closed, and I still need help with this. I followed all the tips on the this github including resetting password, removing any widgets, sentry/overheat off, etc, etc. nothing seems to work. It seems like it is Teslamate causing the issue but I don't really know how to check if it is happening or not if I turn teslamate off.

Expected Behavior

I expect the car to sleep for hours at a time and only wake sparingly.

Steps To Reproduce

No response

Relevant log output

teslamate_1  | 2022-03-23 23:43:26.320 car_id=2 [info] Disconnecting ...
teslamate_1  | 2022-03-24 00:38:01.509 car_id=2 [info] Start / :online
teslamate_1  | 2022-03-24 00:38:01.648 car_id=2 [info] Connecting ...
teslamate_1  | 2022-03-24 00:41:07.266 car_id=2 [info] Suspending logging
teslamate_1  | 2022-03-24 00:43:33.839 [info] GET /
teslamate_1  | 2022-03-24 00:43:33.841 [info] Sent 200 in 1ms
teslamate_1  | 2022-03-24 00:47:27.557 car_id=1 [info] Start / :online
teslamate_1  | 2022-03-24 00:47:27.569 car_id=1 [info] Connecting ...
teslamate_1  | 2022-03-24 00:50:30.954 car_id=1 [info] Suspending logging
teslamate_1  | 2022-03-24 00:51:49.920 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 00:52:21.059 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 00:52:51.749 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 00:53:22.535 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 00:53:53.239 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 00:54:24.016 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 00:54:54.708 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 00:55:25.376 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 00:55:56.136 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 00:56:26.773 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 00:56:56.774 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 00:56:57.218 car_id=2 [info] Start / :offline
teslamate_1  | 2022-03-24 00:56:57.226 car_id=2 [info] Disconnecting ...
teslamate_1  | 2022-03-24 01:00:11.253 car_id=1 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 01:00:11.437 car_id=1 [info] Start / :asleep
teslamate_1  | 2022-03-24 01:00:11.450 car_id=1 [info] Disconnecting ...
teslamate_1  | 2022-03-24 01:51:03.166 car_id=2 [info] Start / :online
teslamate_1  | 2022-03-24 01:51:03.172 car_id=2 [info] Connecting ...
teslamate_1  | 2022-03-24 01:54:07.295 car_id=2 [info] Suspending logging
teslamate_1  | 2022-03-24 02:05:07.616 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 02:05:38.928 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 02:06:09.608 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 02:06:40.350 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 02:07:11.019 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 02:07:41.898 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 02:08:12.562 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 02:08:43.259 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 02:09:13.924 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 02:09:44.617 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 02:10:14.618 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 02:10:14.810 car_id=2 [info] Start / :offline
teslamate_1  | 2022-03-24 02:10:14.816 car_id=2 [info] Disconnecting ...
teslamate_1  | 2022-03-24 02:30:19.383 [info] GET /
teslamate_1  | 2022-03-24 02:30:19.386 [info] Sent 200 in 2ms
teslamate_1  | 2022-03-24 02:36:34.453 car_id=1 [info] Start / :online
teslamate_1  | 2022-03-24 02:36:34.472 car_id=1 [info] Connecting ...
teslamate_1  | 2022-03-24 02:39:37.500 car_id=1 [info] Suspending logging
teslamate_1  | 2022-03-24 02:44:33.231 [info] Refreshing access token ...
teslamate_1  | 2022-03-24 02:44:33.657 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (423.969 ms)
teslamate_1  | 2022-03-24 02:44:33.667 [info] Scheduling token refresh in 6 h
teslamate_1  | 2022-03-24 02:49:56.015 car_id=1 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 02:49:56.206 car_id=1 [info] Start / :asleep
teslamate_1  | 2022-03-24 02:49:56.217 car_id=1 [info] Disconnecting ...
teslamate_1  | 2022-03-24 03:04:49.348 car_id=2 [info] Start / :online
teslamate_1  | 2022-03-24 03:04:49.421 car_id=2 [info] Connecting ...
teslamate_1  | 2022-03-24 03:07:54.514 car_id=2 [info] Suspending logging
teslamate_1  | 2022-03-24 03:18:45.288 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 03:19:16.513 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 03:19:47.184 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 03:20:17.945 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 03:20:48.794 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 03:21:19.505 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 03:21:50.171 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 03:22:20.906 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 03:22:51.570 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 03:23:22.271 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 03:23:52.272 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 03:23:52.708 car_id=2 [info] Start / :offline
teslamate_1  | 2022-03-24 03:23:52.758 car_id=2 [info] Disconnecting ...
teslamate_1  | 2022-03-24 04:11:53.498 [warning] GET https://owner-api.teslamotors.com/api/1/vehicles/1492931185656242 -> 503 (348.378 ms)
teslamate_1  | 2022-03-24 04:11:53.499 [warning] TeslaApi.Error / "upstream connect error or disconnect/reset before headers. reset reason: connection failure"
teslamate_1  | 2022-03-24 04:11:53.499 car_id=2 [error] Error / :unknown
teslamate_1  | 2022-03-24 04:17:57.036 car_id=2 [info] Start / :online
teslamate_1  | 2022-03-24 04:17:57.050 car_id=2 [info] Connecting ...
teslamate_1  | 2022-03-24 04:21:00.841 car_id=2 [info] Suspending logging
teslamate_1  | 2022-03-24 04:32:06.153 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 04:33:07.796 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 04:33:38.464 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 04:34:09.110 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 04:34:39.818 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 04:35:10.470 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 04:35:41.229 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 04:36:11.887 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 04:36:42.692 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 04:37:12.693 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 04:37:12.876 car_id=2 [info] Start / :offline
teslamate_1  | 2022-03-24 04:37:12.897 car_id=2 [info] Disconnecting ...
teslamate_1  | 2022-03-24 05:31:15.248 car_id=2 [info] Start / :online
teslamate_1  | 2022-03-24 05:31:15.255 car_id=2 [info] Connecting ...
teslamate_1  | 2022-03-24 05:34:19.494 car_id=2 [info] Suspending logging
teslamate_1  | 2022-03-24 05:45:24.624 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 05:45:56.340 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 05:46:26.980 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 05:46:57.759 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 05:47:28.434 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 05:47:59.149 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 05:48:29.813 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 05:49:00.525 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 05:49:31.255 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 05:50:02.434 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 05:50:32.435 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 05:50:32.621 car_id=2 [info] Start / :offline
teslamate_1  | 2022-03-24 05:50:32.632 car_id=2 [info] Disconnecting ...
teslamate_1  | 2022-03-24 06:45:04.736 car_id=2 [info] Start / :online
teslamate_1  | 2022-03-24 06:45:04.752 car_id=2 [info] Connecting ...
teslamate_1  | 2022-03-24 06:46:06.217 car_id=2 [warning] Received stale stream data: %TeslaApi.Stream.Data{elevation: 31, est_heading: 113, est_lat: 25.762258, est_lng: -80.189462, est_range: 125, heading: 114, odometer: 31505.5, power: 0, range: 197, shift_state: nil, soc: 88, speed: nil, time: ~U[2022-03-24 06:46:05.109Z]}
teslamate_1  | 2022-03-24 06:48:08.733 car_id=2 [info] Suspending logging
teslamate_1  | 2022-03-24 06:59:15.079 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 07:00:16.728 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 07:00:47.376 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 07:01:18.076 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 07:01:48.732 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 07:02:19.536 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 07:02:50.206 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 07:03:20.927 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 07:03:51.730 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 07:04:21.731 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 07:04:21.911 car_id=2 [info] Start / :offline
teslamate_1  | 2022-03-24 07:04:21.918 car_id=2 [info] Disconnecting ...
teslamate_1  | 2022-03-24 07:58:23.828 car_id=2 [info] Start / :online
teslamate_1  | 2022-03-24 07:58:23.839 car_id=2 [info] Connecting ...
teslamate_1  | 2022-03-24 08:01:28.876 car_id=2 [info] Suspending logging
teslamate_1  | 2022-03-24 08:12:35.942 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 08:13:07.120 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 08:13:37.783 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 08:14:08.536 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 08:14:39.312 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 08:15:10.008 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 08:15:40.676 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 08:16:11.403 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 08:16:42.069 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 08:17:12.780 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 08:17:42.781 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 08:17:42.962 car_id=2 [info] Start / :offline
teslamate_1  | 2022-03-24 08:17:43.122 car_id=2 [info] Disconnecting ...
teslamate_1  | 2022-03-24 08:44:33.668 [info] Refreshing access token ...
teslamate_1  | 2022-03-24 08:44:33.931 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (262.301 ms)
teslamate_1  | 2022-03-24 08:44:33.944 [info] Scheduling token refresh in 6 h
teslamate_1  | 2022-03-24 09:11:46.386 car_id=2 [info] Start / :online
teslamate_1  | 2022-03-24 09:11:46.408 car_id=2 [info] Connecting ...
teslamate_1  | 2022-03-24 09:14:50.448 car_id=2 [info] Suspending logging
teslamate_1  | 2022-03-24 09:17:41.923 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/1493107825979632 -> 408 (31422.441 ms)
teslamate_1  | 2022-03-24 09:17:41.924 [warning] TeslaApi.Error / %{"error" => "https://mothership-api-america.vn.teslamotors.com:443/vehicles/176714689521 => operation_timedout with 10s timeout", "error_description" => "", "response" => nil}
teslamate_1  | 2022-03-24 09:17:41.924 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-03-24 09:18:24.783 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 09:18:46.925 [error] GET https://owner-api.teslamotors.com/api/1/vehicles/1493107825979632 -> error: "timeout" (35000.770 ms)
teslamate_1  | 2022-03-24 09:18:46.925 [warning] TeslaApi.Error / timeout
teslamate_1  | 2022-03-24 09:18:46.925 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-03-24 09:18:50.347 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/1492931185656242 -> 408 (25563.949 ms)
teslamate_1  | 2022-03-24 09:18:50.347 [warning] TeslaApi.Error / %{"error" => "https://mothership-api-america.vn.teslamotors.com:443/vehicles/1148115635 => operation_timedout with 10s timeout", "error_description" => "", "response" => nil}
teslamate_1  | 2022-03-24 09:18:50.348 car_id=2 [info] Unhandled fetch result: {:error, :unknown}
teslamate_1  | 2022-03-24 09:18:53.385 [warning] Streaming API Client Error: owner_api error: `Post "https://ownerapi-internal-america.vn.teslamotors.com:443/authenticate/vehicles/1148115635?operation=streaming_authenticate": context deadline exceeded (Client.Timeout exceeded while awaiting headers)`
teslamate_1  | 2022-03-24 09:19:12.229 [warning] Streaming API Client Error: owner_api error: `Got HTTP status: 503 Service Unavailable for . Response: upstream connect error or disconnect/reset before headers. reset reason: connection failure`
teslamate_1  | 2022-03-24 09:19:35.819 [warning] Streaming API Client Error: owner_api error: `Post "https://ownerapi-internal-america.vn.teslamotors.com:443/authenticate/vehicles/1148115635?operation=streaming_authenticate": context deadline exceeded (Client.Timeout exceeded while awaiting headers)`
teslamate_1  | 2022-03-24 09:19:59.478 [warning] Streaming API Client Error: owner_api error: `Post "https://ownerapi-internal-america.vn.teslamotors.com:443/authenticate/vehicles/1148115635?operation=streaming_authenticate": context deadline exceeded (Client.Timeout exceeded while awaiting headers)`
teslamate_1  | 2022-03-24 09:20:19.188 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/1493107825979632 -> 408 (20883.964 ms)
teslamate_1  | 2022-03-24 09:20:19.188 [warning] TeslaApi.Error / %{"error" => "https://mothership-api-america.vn.teslamotors.com:443/vehicles/176714689521 => operation_timedout with 10s timeout", "error_description" => "", "response" => nil}
teslamate_1  | 2022-03-24 09:20:19.188 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-03-24 09:20:23.086 [warning] Streaming API Client Error: owner_api error: `Post "https://ownerapi-internal-america.vn.teslamotors.com:443/authenticate/vehicles/1148115635?operation=streaming_authenticate": context deadline exceeded (Client.Timeout exceeded while awaiting headers)`
teslamate_1  | 2022-03-24 09:20:46.685 [warning] Streaming API Client Error: owner_api error: `Post "https://ownerapi-internal-america.vn.teslamotors.com:443/authenticate/vehicles/1148115635?operation=streaming_authenticate": context deadline exceeded (Client.Timeout exceeded while awaiting headers)`
teslamate_1  | 2022-03-24 09:21:10.364 [warning] Streaming API Client Error: owner_api error: `Post "https://ownerapi-internal-america.vn.teslamotors.com:443/authenticate/vehicles/1148115635?operation=streaming_authenticate": context deadline exceeded (Client.Timeout exceeded while awaiting headers)`
teslamate_1  | 2022-03-24 09:26:15.009 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 09:26:15.206 car_id=2 [info] Start / :offline
teslamate_1  | 2022-03-24 09:26:15.226 car_id=2 [info] Disconnecting ...
teslamate_1  | 2022-03-24 10:25:33.931 car_id=2 [info] Start / :online
teslamate_1  | 2022-03-24 10:25:33.978 car_id=2 [info] Connecting ...
teslamate_1  | 2022-03-24 10:28:37.849 car_id=2 [info] Suspending logging
teslamate_1  | 2022-03-24 10:37:25.282 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 10:39:43.866 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 10:40:45.524 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 10:41:16.234 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 10:41:46.875 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 10:42:17.712 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 10:42:48.393 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 10:43:19.061 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 10:43:49.712 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 10:44:20.403 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 10:44:50.404 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 10:44:50.601 car_id=2 [info] Start / :offline
teslamate_1  | 2022-03-24 10:44:50.759 car_id=2 [info] Disconnecting ...
teslamate_1  | 2022-03-24 11:38:53.987 car_id=2 [info] Start / :online
teslamate_1  | 2022-03-24 11:38:54.025 car_id=2 [info] Connecting ...
teslamate_1  | 2022-03-24 11:39:55.680 car_id=2 [warning] Received stale stream data: %TeslaApi.Stream.Data{elevation: 31, est_heading: 113, est_lat: 25.762258, est_lng: -80.189462, est_range: 124, heading: 114, odometer: 31505.5, power: 0, range: 196, shift_state: nil, soc: 88, speed: nil, time: ~U[2022-03-24 11:39:54.682Z]}
teslamate_1  | 2022-03-24 11:41:58.340 car_id=2 [info] Suspending logging
teslamate_1  | 2022-03-24 11:53:20.839 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 11:53:21.740 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 11:53:52.441 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 11:54:23.111 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 11:54:53.816 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 11:55:24.455 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 11:55:55.162 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 11:56:25.889 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 11:56:56.619 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 11:57:27.287 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 11:57:57.994 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 11:58:27.995 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 11:58:28.181 car_id=2 [info] Start / :offline
teslamate_1  | 2022-03-24 11:58:28.275 car_id=2 [info] Disconnecting ...
teslamate_1  | 2022-03-24 12:52:31.450 car_id=2 [info] Start / :online
teslamate_1  | 2022-03-24 12:52:31.462 car_id=2 [info] Connecting ...
teslamate_1  | 2022-03-24 12:55:36.413 car_id=2 [info] Suspending logging
teslamate_1  | 2022-03-24 13:06:45.558 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 13:07:47.260 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 13:08:17.947 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 13:08:48.592 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 13:09:19.260 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 13:09:50.371 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 13:10:21.046 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 13:10:51.709 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 13:11:22.403 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 13:11:52.404 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 13:11:52.595 car_id=2 [info] Start / :offline
teslamate_1  | 2022-03-24 13:11:52.647 car_id=2 [info] Disconnecting ...
teslamate_1  | 2022-03-24 14:05:55.943 car_id=2 [info] Start / :online
teslamate_1  | 2022-03-24 14:05:56.211 car_id=2 [info] Connecting ...
teslamate_1  | 2022-03-24 14:09:01.180 car_id=2 [info] Suspending logging
teslamate_1  | 2022-03-24 14:20:08.959 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 14:20:40.188 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 14:21:10.955 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 14:21:41.670 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 14:22:12.340 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 14:22:43.025 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 14:23:13.707 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 14:23:44.440 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 14:24:15.258 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 14:24:45.927 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 14:25:15.928 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 14:25:16.123 car_id=2 [info] Start / :offline
teslamate_1  | 2022-03-24 14:25:16.129 car_id=2 [info] Disconnecting ...
teslamate_1  | 2022-03-24 14:36:40.943 [info] GET /
teslamate_1  | 2022-03-24 14:36:41.080 [info] Sent 200 in 137ms
teslamate_1  | 2022-03-24 14:37:31.971 car_id=2 [info] Start / :online
teslamate_1  | 2022-03-24 14:37:31.988 car_id=2 [info] Connecting ...
teslamate_1  | 2022-03-24 14:37:48.344 [info] GET /
teslamate_1  | 2022-03-24 14:37:48.352 [info] Sent 200 in 7ms
teslamate_1  | 2022-03-24 14:40:36.399 car_id=2 [info] Suspending logging
teslamate_1  | 2022-03-24 14:44:33.944 [info] Refreshing access token ...
teslamate_1  | 2022-03-24 14:44:34.377 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (433.429 ms)
teslamate_1  | 2022-03-24 14:44:34.389 [info] Scheduling token refresh in 6 h
teslamate_1  | 2022-03-24 14:51:36.299 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 14:52:37.975 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 14:53:08.692 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 14:53:39.342 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 14:54:10.026 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 14:54:40.712 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 14:55:11.507 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 14:55:42.281 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 14:56:13.004 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 14:56:43.005 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 14:56:43.222 car_id=2 [info] Start / :offline
teslamate_1  | 2022-03-24 14:56:43.659 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 14:56:43.893 car_id=2 [info] Disconnecting ...
teslamate_1  | 2022-03-24 15:39:18.627 [info] GET /
teslamate_1  | 2022-03-24 15:39:18.673 [info] Sent 200 in 46ms
teslamate_1  | 2022-03-24 15:51:19.247 car_id=2 [info] Start / :online
teslamate_1  | 2022-03-24 15:51:19.908 car_id=2 [info] Connecting ...
teslamate_1  | 2022-03-24 15:54:24.144 car_id=2 [info] Suspending logging
teslamate_1  | 2022-03-24 16:05:02.522 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 16:05:33.748 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 16:06:04.475 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 16:06:35.185 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 16:07:05.903 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 16:07:36.575 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 16:08:07.275 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 16:08:37.924 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 16:09:08.644 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 16:09:39.326 [error] Vehicle Error: Vehicle is offline
teslamate_1  | 2022-03-24 16:10:09.327 car_id=2 [info] Fetching vehicle state ...
teslamate_1  | 2022-03-24 16:10:09.510 car_id=2 [info] Start / :offline
teslamate_1  | 2022-03-24 16:10:09.536 car_id=2 [info] Disconnecting ...

Screenshots

image

image

Additional data

No response

Type of installation

Docker

Version

1.26.1

@CharlesElliottGH
Copy link

Are you in the UK by any chance, and using Octopus Energy? As those using Octopus' Intelligent Energy tarrif see this issue - but it is down to Octopus / Tesla, not Teslamate.

@BriCo84
Copy link
Author

BriCo84 commented Mar 25, 2022

Are you in the UK by any chance, and using Octopus Energy? As those using Octopus' Intelligent Energy tarrif see this issue - but it is down to Octopus / Tesla, not Teslamate.

No, I am in the US and have no idea what Octopus Energy is. That charging in the graph was at the local Service Center.

Charging has nothing to do with this issue.

@cwanja
Copy link
Collaborator

cwanja commented Mar 25, 2022

Depending on your service center, use this data to have them evaluate why the car is not sleeping. They will give you the age old "third-party apps prevent the car from sleeping". But that is just not true with TeslaMate. It calls the non-waking API end point to get the cars status and if it is asleep, it respects that and lowers the amount of calls. TeslaMate will not wake the car nor prevent it from going to sleep. Give the timestamps to the service center and find out why the car is waking. They can check the logs.

@BriCo84
Copy link
Author

BriCo84 commented Mar 25, 2022

Yes, I have spoken to the Service Center. They so far have no been helpful and told me to turn off teslamate.

@BriCo84
Copy link
Author

BriCo84 commented Mar 29, 2022

Tesla finally responded and said...

"After review of full system logs we found the vehicle was being pinged by a 3rd party App (CarAPI) in order to retrieve vitals from your vehicle. This is normal behavior of the 3rd party App, and Tesla does not recommend the use of them. During the time you had the 3rd party app disconnected, we did not see any abnormal keep awakes. Vehicle was operating as designed."

Since Teslamate is off, I can't verify anything.

Is nobody else having this problem?

@ngardiner
Copy link
Contributor

If you take a look at past GitHub issues this is a standard response from Tesla for anyone who uses any 3rd party apps with their vehicle. They will wash their hands of any responsibility if they see any other app using the API.

@BriCo84
Copy link
Author

BriCo84 commented Mar 29, 2022

I have reviewed the other threads, it doesn't seem that there was really resolution.

And yes, I know that is a standard response from them, but they have been looking at it now with Teslamate off and say it is sleeping properly. And when Teslamate is on, it is not. So it seems Teslamate might be playing a roll afterall...

So again I ask, is anyone else having this issue? Or am I literally the only one currently having this problem?

Is there possibly a setting, or something in Teslamate that if configured wrong could be causing this? Or is there a way anyone knows to check on sleep/wake status without using Teslamate so I could at least verify what they are saying?

@cwanja
Copy link
Collaborator

cwanja commented Mar 29, 2022

You can ask Tesla for the logs or try another third-party service. TeslaScope and TeslaFi all allow a trial period (I believe).

And yes, I know that is a standard response from them, but they have been looking at it now with Teslamate off and say it is sleeping properly. And when Teslamate is on, it is not. So it seems Teslamate might be playing a roll afterall...

Of course they are going to say it is sleeping properly. It is an easy out for them. But fundamentally, TeslaMate is designed in a way to let your car sleep. It pings a non-waking API endpoint to check the state. If your Tesla is asleep or falling asleep, TeslaMate does not ping the car in a waking matter. TeslaMate will let your Tesla fall asleep. And continues to check that non-waking API endpoint. Only when the car returns an "online" status, will TeslaMate ping the polling (interactive) API endpoint.

Is there possibly a setting, or something in Teslamate that if configured wrong could be causing this? Or is there a way anyone knows to check on sleep/wake status without using Teslamate so I could at least verify what they are saying?

Do you have TeslaMate set to require your car locked to sleep? And then configured your Tesla to remain unlocked at home?

@BriCo84
Copy link
Author

BriCo84 commented Mar 29, 2022

You can ask Tesla for the logs or try another third-party service. TeslaScope and TeslaFi all allow a trial period (I believe).

I asked them, I doubt they'll give them to me. When I pushed them further on the issue they responded by saying "In regards to your sleep/wake concern, the details we have provided thus far have been provided as a goodwill gesture. Tesla is not responsible for how the vehicle reacts with 3rd party equipment or non-Tesla applications. From our diagnosis, your vehicle is operating as designed. We will not continue running diagnosis for concerns that are caused by 3rd party equipment/Apps." Which is basically telling me to go pound sound.

I will try TeslaFi, to see if i get the same results. Thanks for the suggestion.

Do you have TeslaMate set to require your car locked to sleep? And then configured your Tesla to remain unlocked at home?

I have no about that TeslaMate configuration. Where would I check?

My car is always locked at home, it has lock on walkaway on. I park in an apartment complex. I have no wifi near by.

@cwanja
Copy link
Collaborator

cwanja commented Mar 29, 2022

I have no about that TeslaMate configuration. Where would I check?

It would be in your settings for TeslaMate. But if you lock on walkaway on, that should be effect the sleep pattern.

Stating you are in an apartment complex, do you have Sentry Mode running 24/7? Do you park in a garage and thus, connectivity is poor?

@BriCo84
Copy link
Author

BriCo84 commented Mar 29, 2022

Thanks, I checked and streaming api is enabled. That's what I want, right?

No, sentry mode is not running usually (when it does it is always online, no cycling).
Connectivity is not poor. I always have good connectivity.

@cwanja
Copy link
Collaborator

cwanja commented Mar 29, 2022

Thanks, I checked and streaming api is enabled. That's what I want, right?

No, sentry mode is not running usually (when it does it is always online, no cycling). Connectivity is not poor. I always have good connectivity.

The Steaming API is not the setting, it is the "Sleep Requirements". But if your car is always locked, that setting does not matter. That setting is more an issue if you park in a garage and leave the car unlocked, if this setting is turned off, TeslaMate will not allow the car to sleep.

Kind of running up against a wall here. Not really sure what else to tell you. What I can state, with high confidence, is that TeslaMate will not alter the sleep pattern. There is ample evidence of this - both my Model S that have use TeslaMate sleep well. Seven plus hours. So if the software is the same across our installations, why can one sleep and not the other? The software is not configured differently. It points back to the car.

@BriCo84
Copy link
Author

BriCo84 commented Mar 29, 2022

What I was hoping to find out, is if my log I provided is normal. Does yours look like mine?

@cwanja
Copy link
Collaborator

cwanja commented Mar 29, 2022

Nope, very different. The larger sleep blocks are seven hours. So TeslaMate lets my Model S sleep just fine. And there is not a whole lot of configuration to the "sleep" pattern that you can configure with TeslaMate. Which points back to your Tesla, not TeslaMate, having issues sleeping.
Screen Shot 2022-03-29 at 3 12 40 PM

@BriCo84
Copy link
Author

BriCo84 commented Mar 29, 2022

I was asking about the log files, see how i copied and pasted my log at the top?

@cwanja
Copy link
Collaborator

cwanja commented Mar 29, 2022

I was asking about the log files, see how i copied and pasted my log at the top?

Ah. Sorry. Yes and no. I have timeout errors:

2022-03-29 17:02:38.423 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/[removed]/vehicle_data -> 408 (9497.255 ms)
2022-03-29 17:02:38.423 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}

But I have the sleeping logs:

2022-03-29 13:12:23.906 [info] GET /
2022-03-29 13:12:23.930 [info] Sent 200 in 23ms
2022-03-29 13:18:08.189 [info] GET /settings
2022-03-29 13:18:08.228 [info] Sent 200 in 38ms
2022-03-29 13:19:02.169 [info] GET /
2022-03-29 13:19:02.196 [info] Sent 200 in 26ms
2022-03-29 13:29:23.516 [info] GET /
2022-03-29 13:29:23.539 [info] Sent 200 in 22ms
2022-03-29 13:29:45.552 [info] GET /
2022-03-29 13:29:45.575 [info] Sent 200 in 22ms
2022-03-29 13:50:19.082 car_id=1 [info] Start / :online
2022-03-29 13:50:19.131 car_id=1 [info] Connecting ...
2022-03-29 13:53:22.140 car_id=1 [info] Suspending logging
2022-03-29 14:07:49.243 car_id=1 [info] Fetching vehicle state ...
2022-03-29 14:07:49.762 car_id=1 [info] Start / :asleep
2022-03-29 14:07:49.775 car_id=1 [info] Disconnecting ...
2022-03-29 14:15:54.692 [info] GET /
2022-03-29 14:15:54.718 [info] Sent 200 in 26ms
2022-03-29 14:16:12.290 [info] GET /
2022-03-29 14:16:12.316 [info] Sent 200 in 25ms
2022-03-29 14:20:35.331 car_id=1 [info] Start / :online
2022-03-29 14:20:35.379 car_id=1 [info] Connecting ...
2022-03-29 14:21:36.541 car_id=1 [warning] Received stale stream data: %TeslaApi.Stream.Data{elevation: 17, est_heading: 360, est_lat: REMOVED, est_lng: -REMOVED, est_range: 284, heading: 1, odometer: 1968.5, power: 0, range: 309, shift_state: "P", soc: 76, speed: 0, time: ~U[2022-03-29 14:21:36.008Z]}
2022-03-29 14:23:38.318 car_id=1 [info] Suspending logging
2022-03-29 14:40:28.380 [warning] Too many disconnects from streaming API
2022-03-29 14:40:28.381 car_id=1 [info] Creating new connection … 
2022-03-29 14:40:28.381 car_id=1 [info] Disconnecting ...
2022-03-29 14:40:28.404 car_id=1 [info] Connecting ...
2022-03-29 14:44:00.956 [info] GET /
2022-03-29 14:44:00.978 [info] Sent 200 in 21ms
2022-03-29 14:48:35.566 [warning] Too many disconnects from streaming API
2022-03-29 14:48:35.567 car_id=1 [info] Creating new connection … 
2022-03-29 14:48:35.567 car_id=1 [info] Disconnecting ...
2022-03-29 14:48:35.589 car_id=1 [info] Connecting ...
2022-03-29 14:53:39.410 car_id=1 [info] Vehicle is still online. Falling asleep for: 33 min
2022-03-29 15:23:39.916 car_id=1 [info] Start / :asleep
2022-03-29 15:23:39.929 car_id=1 [info] Disconnecting ...
2022-03-29 15:40:46.430 [info] Refreshing access token ...
2022-03-29 15:40:46.790 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (358.821 ms)
2022-03-29 15:40:46.801 [info] Scheduling token refresh in 6 h
2022-03-29 16:43:30.720 [info] GET /
2022-03-29 16:43:30.748 [info] Sent 200 in 26ms
2022-03-29 16:43:50.351 car_id=1 [info] Start / :online

Been a while since I have seen an offline state, but I know I had some instances. So while there is overlap, it is not 1:1. Your car going "offline" seems like an issue. Which is why I asked if there were connectivity issues where you parked. I am also wondering if your LTE modem is having issues in the car and thus is it not able to "talk back" to the mothership (Tesla). Ask Tesla why your car goes "offline" so much.

Edit: worth saying that I am grabbing at thin air here and speculating. Totally not a Tesla service expert.

@BriCo84
Copy link
Author

BriCo84 commented Mar 30, 2022

I thought offline and asleep are interchangeable with regards to MCU2 cars?

@cwanja
Copy link
Collaborator

cwanja commented Mar 30, 2022

I thought offline and asleep are interchangeable with regards to MCU2 cars?

No idea.

@BriCo84
Copy link
Author

BriCo84 commented Mar 30, 2022

Here's a query to check for sleep more than an hour. Curious if anyone can even confirm that there S?X has slept more than say 2 hours, or 3 hours?

Nobody has really posted optimal data on the S/X sleep pattern so maybe what I am seeing is normal and what everyone else is seeing?

SELECT *
FROM states
where car_id =1 and (state ='asleep' or state = 'offline')
and (DATE_PART('day', 'end_date'::timestamp - 'start_date'::timestamp) * 24 +
DATE_PART('hour', 'end_date'::timestamp - 'start_date'::timestamp)) * 60 +
DATE_PART('minute', 'end_date'::timestamp - 'start_date'::timestamp) >= 1
ORDER BY 1

@cwanja
Copy link
Collaborator

cwanja commented Mar 30, 2022

The screenshot I presented above and stated that there were sleep blocks of seven hours. I would consider that "more normal". What software version are you on?

I attempted to run your query and it did not work:
Screen Shot 2022-03-30 at 4 56 40 PM

@BriCo84
Copy link
Author

BriCo84 commented Mar 30, 2022

Hit the drop down for "time Series" and choose "Table"

@cwanja
Copy link
Collaborator

cwanja commented Mar 31, 2022

Same error. If I take the query line by line, the first time I insert a date_part AND statement it fails.

@BriCo84
Copy link
Author

BriCo84 commented Mar 31, 2022

Sorry. I accidentally posted the wrong, non working version

Try this...

SELECT *
FROM states
where car_id =1 and (state ='asleep' or state = 'offline') and
(DATE_PART('day', end_date::timestamp - start_date::timestamp) * 24 +
DATE_PART('hour', end_date::timestamp - start_date::timestamp)) * 60 +
DATE_PART('minute', end_date::timestamp - start_date::timestamp) >= 180
ORDER BY 1

Adjust the 180 as needed

@cwanja
Copy link
Collaborator

cwanja commented Mar 31, 2022

351 number of rows. With 180 left in the query.

20 rows with it adjusted to 500.

@BriCo84
Copy link
Author

BriCo84 commented Mar 31, 2022

Well no idea if that's a lot or a little. Depends on the dates and when. Are they recent?

Way more than me. Only had a few instances

@cwanja
Copy link
Collaborator

cwanja commented Mar 31, 2022

Well no idea if that's a lot or a little. Depends on the dates and when. Are they recent?

Way more than me. Only had a few instances

Timeline is through the life of the car, so dating back to November 2021. The numbers seem 'normal' to me. Car is awake for 30-45 minutes, sleeps for anywhere from six to eight hours. Wakes, checks the mothership, goes back to sleep. The only difference is if I walk past the car with my iPhone / phone key and the car unlocks. Then the car wakes up. But then the pattern starts over. Assuming I did it get in and drive.

@han9over
Copy link

han9over commented Mar 31, 2022

I'm having same issue but I suspect it's not teslamate. I have my Tesla account connected to evPulse which is required by my utility for cheaper electric rates for charging.

When I disconnected them it sleeps fine. Once I connect it starts waking up every 15 mins. I contacted them and they mentioned their logs show that they are letting the car sleep as much as it wants to. They aren't pinging every 15 mins. They asked me to disconnect teslamate and keep evPulse connected and check. They said a possible reason could be when multiple third party apps are connected that should cause the car to behave weirdly.

Not sure if I should believe them but wondering if you also have multiple third party apps connected.

@BriCo84
Copy link
Author

BriCo84 commented Mar 31, 2022

I'm having same issue but I suspect it's not teslamate. I have my Tesla account connected to evPulse which is required by my utility for cheaper electric rates for charging.

When I disconnected them it sleeps fine. Once I connect it starts waking up every 15 mins. I contacted them and they mentioned their logs show that they are letting the car sleep as much as it wants to. They aren't pinging every 15 mins. They asked me to disconnect teslamate and keep evPulse connected and check. They said a possible reason could be when multiple third party apps are connected that should cause the car to behave weirdly.

Not sure if I should believe them but wondering if you also have multiple third party apps connected.

So it is not sleeping for an hour before waking?
What is your exact pattern with evPuls connected?
What is your exact patter with evPuls not connected?

@han9over
Copy link

I'm having same issue but I suspect it's not teslamate. I have my Tesla account connected to evPulse which is required by my utility for cheaper electric rates for charging.
When I disconnected them it sleeps fine. Once I connect it starts waking up every 15 mins. I contacted them and they mentioned their logs show that they are letting the car sleep as much as it wants to. They aren't pinging every 15 mins. They asked me to disconnect teslamate and keep evPulse connected and check. They said a possible reason could be when multiple third party apps are connected that should cause the car to behave weirdly.
Not sure if I should believe them but wondering if you also have multiple third party apps connected.

So it is not sleeping for an hour before waking? What is your exact pattern with evPuls connected? What is your exact patter with evPuls not connected?

without evPulse connected, the car sleeps normally and doesn't wake up unless it needs to which is around night once and before charging.

with evPulse connected, the car sleeps every 10 minutes and it wakes up every 15 minutes. so it sleeps for 5 minutes or so. Also, the 15 minute wake up is on mark like 10 AM, 10:15, 10:30, 10:45, 11:00 etc (ignoring the seconds)

@BriCo84
Copy link
Author

BriCo84 commented Mar 31, 2022

I'm having same issue but I suspect it's not teslamate. I have my Tesla account connected to evPulse which is required by my utility for cheaper electric rates for charging.
When I disconnected them it sleeps fine. Once I connect it starts waking up every 15 mins. I contacted them and they mentioned their logs show that they are letting the car sleep as much as it wants to. They aren't pinging every 15 mins. They asked me to disconnect teslamate and keep evPulse connected and check. They said a possible reason could be when multiple third party apps are connected that should cause the car to behave weirdly.
Not sure if I should believe them but wondering if you also have multiple third party apps connected.

So it is not sleeping for an hour before waking? What is your exact pattern with evPuls connected? What is your exact patter with evPuls not connected?

without evPulse connected, the car sleeps normally and doesn't wake up unless it needs to which is around night once and before charging.

with evPulse connected, the car sleeps every 10 minutes and it wakes up every 15 minutes. so it sleeps for 5 minutes or so. Also, the 15 minute wake up is on mark like 10 AM, 10:15, 10:30, 10:45, 11:00 etc (ignoring the seconds)

What model and year do you have?

@sb1089
Copy link

sb1089 commented Aug 8, 2022

My situation:
Tesla Model S 2017 with upgraded MCU (MCU2).
Since the upgrade and the use of Teslamate, my car cycles offline/awake every 57 minutes.

I tried to diagnose it a bit more.
I disabled Teslamate and the hourly HV clicking stopped. Also the Tesla iOS widget stopped updating the state every 90 minutes (which it did when Teslamate was connected).
Now as soon as I start up Teslamate, the same issue comes back. Hourly clicking noise, the iOS widget updating every ±90 minutes and Teslamate which keeps saying my car comes back online.

Now,
I disabled Teslamate again and tried to monitor what the API did (by using Postman).
So if I do a get on api/1/vehicles, I get a list of vehicles (which is only my Model S). The response also states if my car is online or offline.
Now every hour, my vehicle seems to come into the state 'online'

{
"response": [
{
"id": XXXXX,
"vehicle_id": XXXX,
"vin": "XXXXX",
"display_name": "Charles",
"option_codes": "XXXXX",
"color": null,
"access_type": "OWNER",
"tokens": [
"XXXXX",
"XXXXX"
],
"state": "offline",
"in_service": false,
"id_s": "---",
"calendar_enabled": true,
"api_version": 42,
"backseat_token": null,
"backseat_token_updated_at": null
}
],
"count": 1
}

So the state is 'online' for a maximum of 2 minutes and is offline again.
But.. the car doesn't do the HV clicking and my iOS widget doesn't update as it seems not to retrieve any information from my car (for 'really' waking up the car).

So the problem is, that any connected application, just like Teslamate, sees the online state and immediately starts polling the car and then tries to let the car sleep again.
But this will actually cycle the car to be online and stream data, which triggers the HV battery again and so on.

Now I don't know what really can be a fix, other than that Teslamate maybe ignore the online state within <120 seconds and if possible only for the cars <2018 with the MCU upgrade, because I think it only affects those cars.
@adriankumpf is that something that is possible to look into? It's still really a bug of how the Tesla API works, but I think this is how the iOS app also listens to the car.

Other note, if I manually trigger the API to awake the car, you hear the click and the car stays in the state online for more than 120 seconds (about 3 minutes).

@cleanev
Copy link

cleanev commented Aug 12, 2022

@sb1089 - I don’t think this is just specific to MCU2 but more likely a combination of MCU and HW version. I posted an update few months back with my findings on how my Model 3 RWD from Jul 18 is behaving. - #2556 (comment)

Model 3 has MCU2 and HW 2.5 (no FSD just Enhanced Autopilot)
Friends Model Y with MCU2 and HW 3.0 (Enhanced autopilot and no FSD, delivered Jul 20) sleeps for days on end that is monitored by cloud based provider.

Your input gave me another reason to do some testing since your post last Monday.

Sequence & findings:
Monday 8/8 - Add Tesla widget, car is connected every 45-55 minutes (mostly around 47 mins). Also matches online status in overview. I always thought that widget kept it awake so stopped using it and even though Tesla app complains to keep application running in background, I used to flick it closed on iOS.

Late Monday 8/8 - stopped Teslamate, surprised to see that car is not connected for hours on end on widget - longest was 13 hours with best tracking I can keep

Late Tuesday 8/9 - Teslamate started, place a digital handheld voice recorder in car to check when contractors open and close - recorded sound matches when car was awakened as reflected in teslamate online state

Thursday 8/11 - Teslamate running, happened to check router logs (ASUSwrt Merlin) and find that car reconnects to WiFi every 45-55 minutes interval and matched the digital recording and online state in Teslamate overview. Such test was conducted by @fetzu, I believe.

Mid day Thursday 8/11 - stopped Teslamate and wake up stopped, confirmed from no recorded sound on digital recorder and no WiFi connection made in last 16 hours.

I have not used postman as you did but hopefully above tests can give developer a reason to see if something can be changed. I would love to see more datapoints from owners with similar hardware configuration for their cars, if they can chime in with their findings.

I believe that you may be up to something with 120 second online check that you highlight above. Unfortunately this thread has been closed and there is no input from developer @adriankumpf for a while so am not so sure if this will be looked at or changed, if warranted based on past few posts.

@M1kep
Copy link

M1kep commented Aug 14, 2022

@cleanev Sort of random question, do you use another app called Tessie, or any other monitoring apps?

@cleanev
Copy link

cleanev commented Aug 15, 2022

@M1kep - I only have TeslaMate that leverages API for the longest time since I found this project in May 20.

@sb1089
Copy link

sb1089 commented Aug 15, 2022

Nice findings @cleanev !
This at least confirms that I'm not the only one who can reproduce this case.

I hope it's possible to do anything such as setting the 'online' time before Teslamate starts polling. An option or something (online for x seconds before start polling) so I can check what works the best for my configuration.

Something like below
image

@sb1089
Copy link

sb1089 commented Aug 29, 2022

I've created an entry as idea in the Discussions forum:
#2870

Hopefully this is something that is possible to implement.

@pratik5705
Copy link

Hi all. I am having similar random wakes, but mine are not tied to the Teslamate server running. I have turned it off and I can see/ hear the car wake up and from my WiFi and Pi.Hole logs as well. This started with the 2022.24.5 update. I am 2022.24.6 now but still see this issue. This is fairly recent. Prior to this update, the car would sleep fine even with Teslamate. Since there is no new update of Teslamate, I feel that this is a car issue for me at least. I do not have any other third party service hitting the car. I have tried to google if there are any others that have noticed it, but I have not come across anyone else.
Mine is 2022 Model Y HW3 AP.
Teslamate log

@tatwee
Copy link

tatwee commented Sep 10, 2022

Hi @pratik5705, I have actually the same issue. Mine is a 2021 Model 3.

@pratik5705
Copy link

Hi @pratik5705, I have actually the same issue. Mine is a 2021 Model 3.

I did some digging around and when I turned off my phone, there were no wakes from the car. I think it is tied to the phone app constantly waking up the car. I have iPhone with the latest Tesla app. I do not use any third party apps. I had the tesla widget and tried removing it but that did not help either. Turning off bluetooth doesnt help either.

@cleanev
Copy link

cleanev commented Sep 11, 2022

@sb1089 - I guess this may never be solved, this is free and open source software that needs specific tweaks for some of us that are using HW2.5, I surmise. However, not being a developer I have no way to create a PR and try to make respective changes to see how this goes.

In the interim here is what I requested (begged will be more apt) my friend to use TeslaMate & after much pursuation he agreed to remove his Model Y (Jul 20) from cloud based provider and allow me to track his car for last 2 days, the results were strange where his car also started to wake up. Not sure if this makes any sense but looking at this for 2 days it looks like even Model Y with HW 3.0 acts exactly like my 3 with HW 2.5.
595009D0-CB3F-4056-B9BD-5B83C64651D0

Can one of the developers help me and @sb1089 with suggested option? I am willing to use development branch to see if @sb1089’s suggestion curtails this constant wake & sleep cycle.

Thank you in advance.

@cleanev
Copy link

cleanev commented Sep 11, 2022

Hi @pratik5705, I have actually the same issue. Mine is a 2021 Model 3.

I did some digging around and when I turned off my phone, there were no wakes from the car. I think it is tied to the phone app constantly waking up the car. I have iPhone with the latest Tesla app. I do not use any third party apps. I had the tesla widget and tried removing it but that did not help either. Turning off bluetooth doesnt help either.

Can you try these instead of turning off your phone?

  • log out of Tesla app?
  • Remove Tesla app totally

I guess the results will be the same as powering down your iphone!

@cwanja
Copy link
Collaborator

cwanja commented Sep 11, 2022

@sb1089 - I guess this may never be solved, this is free and open source software that needs specific tweaks for some of us that are using HW2.5, I surmise. However, not being a developer I have no way to create a PR and try to make respective changes to see how this goes.

In the interim here is what I requested (begged will be more apt) my friend to use TeslaMate & after much pursuation he agreed to remove his Model Y (Jul 20) from cloud based provider and allow me to track his car for last 2 days, the results were strange where his car also started to wake up. Not sure if this makes any sense but looking at this for 2 days it looks like even Model Y with HW 3.0 acts exactly like my 3 with HW 2.5. 595009D0-CB3F-4056-B9BD-5B83C64651D0

Can one of the developers help me and @sb1089 with suggested option? I am willing to use development branch to see if @sb1089’s suggestion curtails this constant wake & sleep cycle.

Thank you in advance.

This makes me think it’s less so of TeslaMate and more so a Tesla issue. It is ironic that lots of people start reporting issues around a software update. I would not put it past Tesla to introduce a software bug that breaks the sleep pattern.

@pratik5705
Copy link

I can confirm that it is definitely on the Tesla side. Removed the tesla app from my phone, and car slept like a baby, lol.
Just reinstalled the app, and will see what happens.
Here are the states screenshot for a night pre-removal and a night post removal.
Also, I usually do not open the Tesla app to check on the car, so the wakes may correspond to me just checking the phone.

Teslamate1
teslamate2

@sb1089
Copy link

sb1089 commented Sep 13, 2022

I think we do have several situations which triggers the car to get awake.
I myself also removed the iOS Tesla app yesterday for some additional testing, but my car keeps getting online after exactly 1 hour.

So no app triggers the car, it just gets online through the API for ~1min and gets offline again.

The problem with Teslamate or any other logger is that when that app sees the online state it starts streaming the data, which wakes up the car completely (as it needs to have about 15 minutes to start sleeping again + it triggers the HV battery).

image
Above is just the API call to get the list of vehicles and showing state online (=on) and offline (=off).
This is with Teslamate disabled and the iOS app deleted from my phone.

@andreadam82
Copy link

andreadam82 commented Sep 18, 2022

As you can read in the help section of the Tessie app there is a bug in the Tesla app version 4.12 released on August 29 that continuously wakes up the car. In fact I've been having the wake-up problem since August 30. The problem unfortunately persists even with the recent update. Tonight I uninstalled the app and the car has been sleeping like a baby for 9 hours without interruption ... Is it possible that this problem is only reported by a few people?

image

@cleanev
Copy link

cleanev commented Sep 18, 2022

@andreadam82 - haven’t used Tessie & current version of Tesla app on iOS is 4.13.1. Force closing, log out of app & uninstalling haven’t worked. Contractors will energize after 46-56 minutes on the dot.
My friends car is also doing this on TeslaFi and unfortunately he blames me as I collected event stream using TeslaMate for couple of days - I will forward snapshot above to rest his concern.

Seems there are too many variables and many may not be reporting this as I am guessing that there will be a subset of Tesla users that may be using any external apps that leverages API. Not sure where this will end up & hopeful that Tesla is not messing with 3rd party API calls.

@pratik5705
Copy link

Updating to the newest tesla app on iphone has fixed my issue

@cleanev
Copy link

cleanev commented Sep 19, 2022

@pratik5705 - what version are you on?
I’ve 4.13.1 and there is no difference in sleep/wake cycle - car always wakes up between 46-56 minutes!

@NasElMoro
Copy link

NasElMoro commented Sep 21, 2022

It seems like I'm having similar issue with my MX from late 2018. In my case it all started around 17th of august this year where I suddenly see that my car keeps awake between 2 and 3 hours and then wakes up for around 1,5 hours and then repeats the same pattern since then.

I already changed my password. I'm only using teslamate as a third party app. Didn't change any settings om my X and everything is still configured the right way.

image

Any idears?

I'm already running the latest IOS Tesla app 4.13.1 and that didn't change the behaviour on my X.

@andreadam82
Copy link

Updating to the newest tesla app on iphone has fixed my issue

Same here. With the 14.3.1 app version the issue seems resolved. In the last 2 night the car sleep for 12 hours without interruptions

@NasElMoro
Copy link

Updating to the newest tesla app on iphone has fixed my issue

Same here. With the 14.3.1 app version the issue seems resolved. In the last 2 night the car sleep for 12 hours without interruptions

What car do you have? I have read on other forums that the version fixed the issue for at least te m3 but I have a mx and there the issue still persists.

@andreadam82
Copy link

Updating to the newest tesla app on iphone has fixed my issue

Same here. With the 14.3.1 app version the issue seems resolved. In the last 2 night the car sleep for 12 hours without interruptions

What car do you have? I have read on other forums that the version fixed the issue for at least te m3 but I have a mx and there the issue still persists.

I have an M3LR21.

In your case the car goes to offline status and not in asleep mode ... so i supposed that the issue is not the same

@ovaris
Copy link

ovaris commented Sep 21, 2022

Updating to the newest tesla app on iphone has fixed my issue

Same here. With the 14.3.1 app version the issue seems resolved. In the last 2 night the car sleep for 12 hours without interruptions

Do you mean 4.13.1?

@ovaris
Copy link

ovaris commented Sep 21, 2022

I'm also having same issue, I'm running iOS app version 4.13.1 and signed out (around 10:00 am), car immediately fell asleep nicely.

image

@andreadam82
Copy link

Updating to the newest tesla app on iphone has fixed my issue

Same here. With the 14.3.1 app version the issue seems resolved. In the last 2 night the car sleep for 12 hours without interruptions

Do you mean 4.13.1?

Yes sorry, I was wrong ... I meant 4.13.1 ;-)

@DocPatel
Copy link

I'm also having same issue, I'm running iOS app version 4.13.1 and signed out (around 10:00 am), car immediately fell asleep nicely.

image

I'm getting the same thing..can't figure it out. HELP!

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Dec 24, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed:duplicate This issue or pull request already exists Stale
Projects
None yet
Development

No branches or pull requests