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

charge is split and lots of it is missing #3864

Open
1 task done
fysmd opened this issue Apr 20, 2024 · 3 comments
Open
1 task done

charge is split and lots of it is missing #3864

fysmd opened this issue Apr 20, 2024 · 3 comments

Comments

@fysmd
Copy link

fysmd commented Apr 20, 2024

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

I use Inteligetnt octopus charging at home and this will sometimes start and stop AC charging as it sees fit.
Yesterday I connected and the charge scedule was split into two parts but teslamate detected the first hour and then did not start the 2nd charge period on time. Data in Grafana shows the complete data (see screenie of the whole period) is there but it is not captured in a charge record,

Expected Behavior

I would expect each part of a charge session to be captured and reported as a seperate chargw

Steps To Reproduce

No response

Relevant log output

2024-04-19 08:41:36.746 [warning] Too many disconnects from streaming API,
2024-04-19 08:41:36.746 car_id=1 [info] Creating new connection … ,
2024-04-19 08:41:36.747 car_id=1 [info] Disconnecting ...,
2024-04-19 08:41:36.767 car_id=1 [info] Connecting ...,
2024-04-19 08:54:51.682 [warning] Too many disconnects from streaming API,
2024-04-19 08:54:51.683 car_id=1 [info] Creating new connection … ,
2024-04-19 08:54:51.683 car_id=1 [info] Disconnecting ...,
2024-04-19 08:54:51.706 car_id=1 [info] Connecting ...,
2024-04-19 09:09:37.364 [warning] Too many disconnects from streaming API,
2024-04-19 09:09:37.365 car_id=1 [info] Creating new connection … ,
2024-04-19 09:09:37.365 car_id=1 [info] Disconnecting ...,
2024-04-19 09:09:37.385 car_id=1 [info] Connecting ...,
2024-04-19 09:11:15.203 car_id=1 [warning] Received stale stream data: %TeslaApi.Stream.Data{time: ~U[2024-04-19 08:11:14.909Z], speed: nil, odometer: 8039.7, soc: 54, elevation: 12, est_heading: 80, est_lat: 54.903672, est_lng: -5.021199, power: 0, shift_state: nil, range: 184, est_range: 214, heading: 80},
2024-04-19 09:17:51.294 [info] Start of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: "The Wee Aird Dairy", active_route_energy_at_arrival: 53, active_route_latitude: 54.903858, active_route_longitude: -5.000396, active_route_miles_to_arrival: 0.88527, active_route_minutes_to_arrival: 3.199984, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1713514669, heading: 80, latitude: 54.903672, longitude: -5.021199, native_latitude: 54.903672, native_location_supported: 1, native_longitude: -5.021199, native_type: "wgs", power: 1, shift_state: "D", speed: 0, timestamp: 1713514670877},
2024-04-19 09:17:51.294 car_id=1 [info] Driving / Start,
2024-04-19 09:21:13.237 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (292.543 ms),
2024-04-19 09:21:13.706 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (458.721 ms),
2024-04-19 09:21:13.734 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: "Supercharger Tebay, UK - Southbound", active_route_energy_at_arrival: 53, active_route_latitude: 54.903858, active_route_longitude: -5.000396, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1713514871, heading: 63, latitude: 54.903953, longitude: -5.000263, native_latitude: 54.903953, native_location_supported: 1, native_longitude: -5.000263, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp: 1713514872369},
2024-04-19 09:21:13.735 car_id=1 [info] Driving / Ended / 1 km – 3 min,
2024-04-19 09:21:13.735 car_id=1 [info] Start / :online,
2024-04-19 09:22:44.007 [info] Start of drive initiated by: %TeslaApi.Stream.Data{time: ~U[2024-04-19 08:22:43.367Z], speed: 0, odometer: 8040.6, soc: 54, elevation: 15, est_heading: 63, est_lat: 54.903953, est_lng: -5.000263, power: 1, shift_state: "R", range: 183, est_range: 208, heading: 61},
2024-04-19 09:22:44.007 car_id=1 [info] Driving / Start,
2024-04-19 10:19:05.971 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9077.145 ms),
2024-04-19 10:19:05.971 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 10:19:05.972 car_id=1 [error] Error / :unknown,
2024-04-19 10:26:03.050 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9070.381 ms),
2024-04-19 10:26:03.050 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 10:26:03.050 car_id=1 [error] Error / :unknown,
2024-04-19 10:34:30.295 car_id=1 [info] Received stream data: :inactive,
2024-04-19 10:50:47.335 [info] Refreshing access token ...,
2024-04-19 10:50:47.929 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (593.520 ms),
2024-04-19 10:50:47.949 [info] Scheduling token refresh in 6 h,
2024-04-19 11:57:05.900 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (366.877 ms),
2024-04-19 11:57:06.357 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (444.304 ms),
2024-04-19 11:57:06.402 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: "Home", active_route_energy_at_arrival: 9, active_route_latitude: 54.453632, active_route_longitude: -2.60603, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1713524223, heading: 54, latitude: 54.453279, longitude: -2.605868, native_latitude: 54.453279, native_location_supported: 1, native_longitude: -2.605868, native_type: "wgs", power: 3, shift_state: "P", speed: 0, timestamp: 1713524225237},
2024-04-19 11:57:06.403 car_id=1 [info] Driving / Ended / 226 km – 154 min,
2024-04-19 11:57:06.403 car_id=1 [info] Start / :online,
2024-04-19 11:57:21.850 car_id=1 [warning] Received stale stream data: %TeslaApi.Stream.Data{time: ~U[2024-04-19 10:57:21.551Z], speed: nil, odometer: 8181.2, soc: 9, elevation: 215, est_heading: 53, est_lat: 54.453277, est_lng: -2.605874, power: 3, shift_state: nil, range: 30, est_range: 26, heading: 233},
2024-04-19 11:57:36.978 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (171.740 ms),
2024-04-19 11:57:37.042 car_id=1 [info] Charging / SOC: 9%,
2024-04-19 11:57:37.042 car_id=1 [info] Disconnecting ...,
2024-04-19 12:13:11.286 car_id=1 [info] Derived efficiency factor: 139.78 Wh/km (16x confirmed),
2024-04-19 12:13:11.286 car_id=1 [info] Charging / Stopped / 35.19 kWh – 16 min,
2024-04-19 12:13:11.289 car_id=1 [info] Start / :online,
2024-04-19 12:13:11.309 car_id=1 [info] Connecting ...,
2024-04-19 12:13:57.020 car_id=1 [warning] Received stale stream data: %TeslaApi.Stream.Data{time: ~U[2024-04-19 11:13:56.734Z], speed: 0, odometer: 8181.2, soc: 54, elevation: 214, est_heading: 53, est_lat: 54.45329, est_lng: -2.605857, power: 1, shift_state: "P", range: 186, est_range: 164, heading: 53},
2024-04-19 12:17:12.829 [info] Start of drive initiated by: %TeslaApi.Stream.Data{time: ~U[2024-04-19 11:17:12.624Z], speed: 0, odometer: 8181.2, soc: 54, elevation: 214, est_heading: 53, est_lat: 54.453291, est_lng: -2.605856, power: 1, shift_state: "D", range: 186, est_range: 164, heading: 53},
2024-04-19 12:17:12.829 car_id=1 [info] Driving / Start,
2024-04-19 14:08:02.082 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (357.993 ms),
2024-04-19 14:08:02.587 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (500.479 ms),
2024-04-19 14:08:02.611 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: 23, active_route_latitude: 53.711416, active_route_longitude: -1.721935, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1713532080, heading: 75, latitude: 53.71143, longitude: -1.722051, native_latitude: 53.71143, native_location_supported: 1, native_longitude: -1.722051, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp: 1713532081639},
2024-04-19 14:08:02.611 car_id=1 [info] Driving / Ended / 174 km – 111 min,
2024-04-19 14:08:02.611 car_id=1 [info] Start / :online,
2024-04-19 14:08:32.818 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (79.325 ms),
2024-04-19 14:08:32.861 [info] Streaming API: Vehicle offline,
2024-04-19 14:08:32.861 car_id=1 [warning] Stream reports vehicle as offline, fetching vehicle state ...,
2024-04-19 14:08:32.861 car_id=1 [info] Fetch already in progress ...,
2024-04-19 14:08:43.078 car_id=1 [info] Start / :online,
2024-04-19 14:09:40.648 car_id=1 [info] Received stream data: :inactive,
2024-04-19 14:14:14.619 car_id=1 [info] Suspending logging,
2024-04-19 14:15:35.512 car_id=1 [info] Fetching vehicle state ...,
2024-04-19 14:19:26.025 [warning] Too many disconnects from streaming API,
2024-04-19 14:19:26.025 car_id=1 [info] Creating new connection … ,
2024-04-19 14:19:26.025 car_id=1 [info] Disconnecting ...,
2024-04-19 14:19:26.040 car_id=1 [info] Connecting ...,
2024-04-19 14:44:14.778 car_id=1 [info] Start / :asleep,
2024-04-19 14:44:14.788 car_id=1 [info] Disconnecting ...,
2024-04-19 15:12:59.133 car_id=1 [info] Start / :online,
2024-04-19 15:12:59.160 car_id=1 [info] Connecting ...,
2024-04-19 15:16:00.164 car_id=1 [info] Suspending logging,
2024-04-19 15:27:08.513 [info] Start of drive initiated by: %TeslaApi.Stream.Data{time: ~U[2024-04-19 14:27:08.154Z], speed: 1, odometer: 8289.1, soc: 23, elevation: 138, est_heading: 76, est_lat: 53.711431, est_lng: -1.722053, power: 1, shift_state: "R", range: 78, est_range: 79, heading: 75},
2024-04-19 15:27:08.513 car_id=1 [info] Driving / Start,
2024-04-19 15:27:39.767 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (360.024 ms),
2024-04-19 15:27:40.250 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (479.399 ms),
2024-04-19 15:27:40.260 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 53.711416, active_route_longitude: -1.721935, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1713536857, heading: 139, latitude: 53.711404, longitude: -1.7221, native_latitude: 53.711404, native_location_supported: 1, native_longitude: -1.7221, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp: 1713536859002},
2024-04-19 15:27:40.260 car_id=1 [info] Driving / Ended / 0 km – 1 min,
2024-04-19 15:27:40.261 car_id=1 [info] Start / :online,
2024-04-19 15:30:26.579 car_id=1 [warning] Received stale stream data: %TeslaApi.Stream.Data{time: ~U[2024-04-19 14:30:26.163Z], speed: nil, odometer: 8289.1, soc: 23, elevation: 137, est_heading: 139, est_lat: 53.711404, est_lng: -1.7221, power: 0, shift_state: nil, range: 78, est_range: 79, heading: 319},
2024-04-19 15:30:56.407 car_id=1 [info] Suspending logging,
2024-04-19 15:46:48.564 car_id=1 [info] Fetching vehicle state ...,
2024-04-19 15:46:48.824 car_id=1 [info] Start / :asleep,
2024-04-19 15:46:48.833 car_id=1 [info] Disconnecting ...,
2024-04-19 15:57:30.870 car_id=1 [info] Start / :online,
2024-04-19 15:57:30.886 car_id=1 [info] Connecting ...,
2024-04-19 16:04:29.857 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9076.588 ms),
2024-04-19 16:04:29.857 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 16:04:29.857 car_id=1 [error] Error / :unknown,
2024-04-19 16:04:58.933 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9074.105 ms),
2024-04-19 16:04:58.934 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 16:04:58.934 car_id=1 [error] Error / :unknown,
2024-04-19 16:05:28.015 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9079.658 ms),
2024-04-19 16:05:28.015 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 16:05:28.015 car_id=1 [error] Error / :unknown,
2024-04-19 16:05:48.258 car_id=1 [warning] User present ...,
2024-04-19 16:10:05.321 car_id=1 [info] Suspending logging,
2024-04-19 16:29:24.846 car_id=1 [info] Fetching vehicle state ...,
2024-04-19 16:29:25.096 car_id=1 [info] Start / :asleep,
2024-04-19 16:29:25.113 car_id=1 [info] Disconnecting ...,
2024-04-19 16:50:47.951 [info] Refreshing access token ...,
2024-04-19 16:50:48.661 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (709.503 ms),
2024-04-19 16:50:48.668 [info] Scheduling token refresh in 6 h,
2024-04-19 17:08:13.571 car_id=1 [info] Start / :online,
2024-04-19 17:08:13.614 car_id=1 [info] Connecting ...,
2024-04-19 17:27:07.885 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9236.982 ms),
2024-04-19 17:27:07.885 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:27:07.886 car_id=1 [error] Error / :unknown,
2024-04-19 17:31:46.434 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9073.057 ms),
2024-04-19 17:31:46.434 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:31:46.434 car_id=1 [error] Error / :unknown,
2024-04-19 17:32:15.513 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9078.599 ms),
2024-04-19 17:32:15.514 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:32:15.514 car_id=1 [error] Error / :unknown,
2024-04-19 17:32:44.618 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9102.610 ms),
2024-04-19 17:32:44.618 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:32:44.618 car_id=1 [error] Error / :unknown,
2024-04-19 17:32:46.146 [notice]     :alarm_handler: {:set, {TeslaMate.Vehicles.Vehicle_1_api_error, :fuse_blown}},
2024-04-19 17:33:13.700 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9079.412 ms),
2024-04-19 17:33:13.700 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:33:13.700 car_id=1 [error] Error / :unknown,
2024-04-19 17:33:42.775 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9073.070 ms),
2024-04-19 17:33:42.775 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:33:42.775 car_id=1 [error] Error / :unknown,
2024-04-19 17:34:11.860 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9083.119 ms),
2024-04-19 17:34:11.861 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:34:11.861 car_id=1 [error] Error / :unknown,
2024-04-19 17:34:40.942 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9079.388 ms),
2024-04-19 17:34:40.942 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:34:40.942 car_id=1 [error] Error / :unknown,
2024-04-19 17:35:07.331 car_id=1 [warning] User present ...,
2024-04-19 17:35:31.409 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9076.744 ms),
2024-04-19 17:35:31.409 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:35:31.409 car_id=1 [error] Error / :unknown,
2024-04-19 17:36:22.723 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9149.398 ms),
2024-04-19 17:36:22.724 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:36:22.724 car_id=1 [error] Error / :unknown,
2024-04-19 17:36:51.815 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9089.410 ms),
2024-04-19 17:36:51.815 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:36:51.815 car_id=1 [error] Error / :unknown,
2024-04-19 17:37:20.896 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9080.386 ms),
2024-04-19 17:37:20.896 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:37:20.897 car_id=1 [error] Error / :unknown,
2024-04-19 17:37:50.012 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9114.258 ms),
2024-04-19 17:37:50.013 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:37:50.013 car_id=1 [error] Error / :unknown,
2024-04-19 17:38:19.111 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9097.264 ms),
2024-04-19 17:38:19.111 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:38:19.111 car_id=1 [error] Error / :unknown,
2024-04-19 17:38:48.185 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9071.575 ms),
2024-04-19 17:38:48.185 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:38:48.185 car_id=1 [error] Error / :unknown,
2024-04-19 17:39:16.291 car_id=1 [warning] User present ...,
2024-04-19 17:39:40.366 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9074.316 ms),
2024-04-19 17:39:40.366 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:39:40.367 car_id=1 [error] Error / :unknown,
2024-04-19 17:40:31.536 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9095.364 ms),
2024-04-19 17:40:31.536 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:40:31.537 car_id=1 [error] Error / :unknown,
2024-04-19 17:41:22.765 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9070.710 ms),
2024-04-19 17:41:22.765 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:41:22.765 car_id=1 [error] Error / :unknown,
2024-04-19 17:41:51.844 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9076.708 ms),
2024-04-19 17:41:51.844 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:41:51.844 car_id=1 [error] Error / :unknown,
2024-04-19 17:42:20.930 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929875199203235/vehicle_data -> 408 (9085.184 ms),
2024-04-19 17:42:20.931 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil},
2024-04-19 17:42:20.931 car_id=1 [error] Error / :unknown,
2024-04-19 17:46:46.160 [notice]     :alarm_handler: {:clear, TeslaMate.Vehicles.Vehicle_1_api_error},
2024-04-19 17:47:45.978 [warning] Too many disconnects from streaming API,
2024-04-19 17:47:45.978 car_id=1 [info] Creating new connection … ,
2024-04-19 17:47:45.978 car_id=1 [info] Disconnecting ...,
2024-04-19 17:47:45.983 car_id=1 [info] Connecting ...,
2024-04-19 17:54:08.713 [warning] Too many disconnects from streaming API,
2024-04-19 17:54:08.714 car_id=1 [info] Creating new connection … ,
2024-04-19 17:54:08.714 car_id=1 [info] Disconnecting ...,
2024-04-19 17:54:08.718 car_id=1 [info] Connecting ...,
2024-04-19 18:00:31.543 [warning] Too many disconnects from streaming API,
2024-04-19 18:00:31.543 car_id=1 [info] Creating new connection … ,
2024-04-19 18:00:31.543 car_id=1 [info] Disconnecting ...,
2024-04-19 18:00:31.547 car_id=1 [info] Connecting ...,
2024-04-19 18:06:54.176 [warning] Too many disconnects from streaming API,
2024-04-19 18:06:54.176 car_id=1 [info] Creating new connection … ,
2024-04-19 18:06:54.176 car_id=1 [info] Disconnecting ...,
2024-04-19 18:06:54.180 car_id=1 [info] Connecting ...,
2024-04-19 18:13:16.971 [warning] Too many disconnects from streaming API,
2024-04-19 18:13:16.971 car_id=1 [info] Creating new connection … ,
2024-04-19 18:13:16.971 car_id=1 [info] Disconnecting ...,
2024-04-19 18:13:16.976 car_id=1 [info] Connecting ...,
2024-04-19 18:19:40.260 [warning] Too many disconnects from streaming API,
2024-04-19 18:19:40.260 car_id=1 [info] Creating new connection … ,
2024-04-19 18:19:40.261 car_id=1 [info] Disconnecting ...,
2024-04-19 18:19:40.264 car_id=1 [info] Connecting ...,
2024-04-19 18:26:03.073 [warning] Too many disconnects from streaming API,
2024-04-19 18:26:03.073 car_id=1 [info] Creating new connection … ,
2024-04-19 18:26:03.073 car_id=1 [info] Disconnecting ...,
2024-04-19 18:26:03.077 car_id=1 [info] Connecting ...,
2024-04-19 18:32:25.596 [warning] Too many disconnects from streaming API,
2024-04-19 18:32:25.596 car_id=1 [info] Creating new connection … ,
2024-04-19 18:32:25.596 car_id=1 [info] Disconnecting ...,
2024-04-19 18:32:25.601 car_id=1 [info] Connecting ...,
2024-04-19 18:38:48.215 [warning] Too many disconnects from streaming API,
2024-04-19 18:38:48.215 car_id=1 [info] Creating new connection … ,
2024-04-19 18:38:48.215 car_id=1 [info] Disconnecting ...,
2024-04-19 18:38:48.219 car_id=1 [info] Connecting ...,
2024-04-19 18:42:04.330 [info] Start of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 53.711416, active_route_longitude: -1.721935, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1713548523, heading: 129, latitude: 53.711395, longitude: -1.722106, native_latitude: 53.711395, native_location_supported: 1, native_longitude: -1.722106, native_type: "wgs", power: 3, shift_state: "R", speed: 2, timestamp: 1713548524298},
2024-04-19 18:42:04.330 car_id=1 [info] Driving / Start,
2024-04-19 18:42:22.132 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{active_route_destination: nil, active_route_energy_at_arrival: nil, active_route_latitude: 53.711416, active_route_longitude: -1.721935, active_route_miles_to_arrival: nil, active_route_minutes_to_arrival: nil, active_route_traffic_minutes_delay: 0.0, gps_as_of: 1713548541, heading: 76, latitude: 53.711421, longitude: -1.722045, native_latitude: 53.711421, native_location_supported: 1, native_longitude: -1.722045, native_type: "wgs", power: 1, shift_state: nil, speed: nil, timestamp: 1713548542061},
2024-04-19 18:42:22.132 car_id=1 [info] Driving / Ended / 0 km – 0 min,
2024-04-19 18:42:22.132 car_id=1 [info] Start / :online,
2024-04-19 18:45:11.084 [warning] Too many disconnects from streaming API,
2024-04-19 18:45:11.084 car_id=1 [info] Creating new connection … ,
2024-04-19 18:45:11.084 car_id=1 [info] Disconnecting ...,
2024-04-19 18:45:11.088 car_id=1 [info] Connecting ...,
2024-04-19 18:45:38.165 car_id=1 [info] Suspending logging,
2024-04-19 19:15:38.347 car_id=1 [info] Start / :asleep,
2024-04-19 19:15:38.351 car_id=1 [info] Disconnecting ...,
2024-04-19 20:00:53.881 car_id=1 [info] Start / :online,
2024-04-19 20:00:53.890 car_id=1 [info] Connecting ...,
2024-04-19 20:03:54.620 car_id=1 [info] Suspending logging,
2024-04-19 20:14:24.186 car_id=1 [info] Fetching vehicle state ...,
2024-04-19 20:14:24.382 car_id=1 [info] Start / :asleep,
2024-04-19 20:14:24.392 car_id=1 [info] Disconnecting ...,
2024-04-19 22:50:48.669 [info] Refreshing access token ...,
2024-04-19 22:50:49.087 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (398.844 ms),
2024-04-19 22:50:49.095 [info] Scheduling token refresh in 6 h,
2024-04-19 23:00:26.301 car_id=1 [info] Start / :online,
2024-04-19 23:00:26.373 car_id=1 [info] Connecting ...,
2024-04-19 23:00:26.658 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (261.362 ms),
2024-04-19 23:00:26.724 car_id=1 [info] Charging / SOC: 22% / Home IOG 🐙,
2024-04-19 23:00:26.724 car_id=1 [info] Disconnecting ...,
2024-04-19 23:45:18.313 car_id=1 [info] Derived efficiency factor: 139.78 Wh/km (16x confirmed),
2024-04-19 23:45:18.314 car_id=1 [info] Charging / Stopped / 1.07 kWh – 45 min,
2024-04-19 23:45:18.316 car_id=1 [info] Start / :online,
2024-04-19 23:45:18.338 car_id=1 [info] Connecting ...,
2024-04-19 23:48:19.168 car_id=1 [info] Suspending logging,
2024-04-19 23:56:40.623 car_id=1 [info] Fetching vehicle state ...,
2024-04-19 23:56:40.927 car_id=1 [info] Start / :asleep,
2024-04-19 23:56:40.959 car_id=1 [info] Disconnecting ...,
2024-04-20 00:45:27.479 car_id=1 [info] Start / :online,
2024-04-20 00:45:27.692 car_id=1 [info] Connecting ...,
2024-04-20 00:45:28.355 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (646.613 ms),
2024-04-20 00:45:28.399 car_id=1 [info] Charging / SOC: 24% / Home IOG 🐙,
2024-04-20 00:45:28.400 car_id=1 [info] Disconnecting ...,
2024-04-20 04:50:49.105 [info] Refreshing access token ...,
2024-04-20 04:50:49.956 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (835.879 ms),
2024-04-20 04:50:50.010 [info] Scheduling token refresh in 6 h,
2024-04-20 04:56:56.464 [notice] SIGTERM received - shutting down,
,
2024-04-20 04:58:14.001 [error] Could not create schema migrations table. This error usually happens due to the following:,
,
  * The database does not exist,
  * The "schema_migrations" table, which Ecto uses for managing,
    migrations, was defined by another library,
  * There is a deadlock while migrating (such as using concurrent,
    indexes with a migration_lock),
,
To fix the first issue, run "mix ecto.create" for the desired MIX_ENV.,
,
To address the second, you can run "mix ecto.drop" followed by,
"mix ecto.create", both for the desired MIX_ENV. Alternatively you may,
configure Ecto to use another table and/or repository for managing,
migrations:,
,
    config :teslamate, TeslaMate.Repo,,
      migration_source: "some_other_table_for_schema_migrations",,
      migration_repo: AnotherRepoForSchemaMigrations,
,
The full error report is shown below.,
,
** (DBConnection.ConnectionError) connection not available and request was dropped from queue after 2134ms. This means requests are coming in and your connection pool cannot serve them fast enough. You can address this by:,
,
  1. Ensuring your database is available and that you can connect to it,
  2. Tracking down slow queries and making sure they are running fast enough,
  3. Increasing the pool_size (although this increases resource consumption),
  4. Allowing requests to wait longer by increasing :queue_target and :queue_interval,
,
See DBConnection.start_link/2 for more information,
,
    (ecto_sql 3.10.2) lib/ecto/adapters/sql.ex:1047: Ecto.Adapters.SQL.raise_sql_call_error/1,
    (elixir 1.16.1) lib/enum.ex:1700: Enum."-map/2-lists^map/1-1-"/2,
    (ecto_sql 3.10.2) lib/ecto/adapters/sql.ex:1154: Ecto.Adapters.SQL.execute_ddl/4,
    (ecto_sql 3.10.2) lib/ecto/migrator.ex:756: Ecto.Migrator.verbose_schema_migration/3,
    (ecto_sql 3.10.2) lib/ecto/migrator.ex:564: Ecto.Migrator.lock_for_migrations/4,
    (ecto_sql 3.10.2) lib/ecto/migrator.ex:433: Ecto.Migrator.run/4,
    (ecto_sql 3.10.2) lib/ecto/migrator.ex:170: Ecto.Migrator.with_repo/3,
    nofile:1: (file),
2024-04-20 04:59:42.431 [error] Could not create schema migrations table. This error usually happens due to the following:,
,
  * The database does not exist,
  * The "schema_migrations" table, which Ecto uses for managing,
    migrations, was defined by another library,
  * There is a deadlock while migrating (such as using concurrent,
    indexes with a migration_lock),
,
To fix the first issue, run "mix ecto.create" for the desired MIX_ENV.,
,
To address the second, you can run "mix ecto.drop" followed by,
"mix ecto.create", both for the desired MIX_ENV. Alternatively you may,
configure Ecto to use another table and/or repository for managing,
migrations:,
,
    config :teslamate, TeslaMate.Repo,,
      migration_source: "some_other_table_for_schema_migrations",,
      migration_repo: AnotherRepoForSchemaMigrations,
,
The full error report is shown below.,
,
** (DBConnection.ConnectionError) connection not available and request was dropped from queue after 2517ms. This means requests are coming in and your connection pool cannot serve them fast enough. You can address this by:,
,
  1. Ensuring your database is available and that you can connect to it,
  2. Tracking down slow queries and making sure they are running fast enough,
  3. Increasing the pool_size (although this increases resource consumption),
  4. Allowing requests to wait longer by increasing :queue_target and :queue_interval,
,
See DBConnection.start_link/2 for more information,
,
    (ecto_sql 3.10.2) lib/ecto/adapters/sql.ex:1047: Ecto.Adapters.SQL.raise_sql_call_error/1,
    (elixir 1.16.1) lib/enum.ex:1700: Enum."-map/2-lists^map/1-1-"/2,
    (ecto_sql 3.10.2) lib/ecto/adapters/sql.ex:1154: Ecto.Adapters.SQL.execute_ddl/4,
    (ecto_sql 3.10.2) lib/ecto/migrator.ex:756: Ecto.Migrator.verbose_schema_migration/3,
    (ecto_sql 3.10.2) lib/ecto/migrator.ex:564: Ecto.Migrator.lock_for_migrations/4,
    (ecto_sql 3.10.2) lib/ecto/migrator.ex:433: Ecto.Migrator.run/4,
    (ecto_sql 3.10.2) lib/ecto/migrator.ex:170: Ecto.Migrator.with_repo/3,
    nofile:1: (file),
2024-04-20 05:00:35.773 [info] Migrations already up,
2024-04-20 05:01:09.927 [info] System Info: Erlang/OTP 26 (jit),
2024-04-20 05:01:09.927 [info] Version: 1.28.5,
2024-04-20 05:01:11.113 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (684.867 ms),
2024-04-20 05:01:11.113 [info] Refreshed api tokens,
2024-04-20 05:01:11.155 [info] Scheduling token refresh in 6 h,
2024-04-20 05:01:11.283 [info] Running TeslaMateWeb.Endpoint with cowboy 2.10.0 at :::4000 (http),
2024-04-20 05:01:11.312 [info] Access TeslaMateWeb.Endpoint at http://localhost,
2024-04-20 05:01:11.843 [info] Starting logger for 'Beelzebob',
2024-04-20 05:01:11.919 [info] MQTT connection has been established,
2024-04-20 05:01:12.154 car_id=1 [info] Start / :online,
2024-04-20 05:01:12.426 car_id=1 [info] Connecting ...,
2024-04-20 05:01:12.853 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (383.504 ms),
2024-04-20 05:01:13.098 car_id=1 [info] Charging / SOC: 62% / Home IOG 🐙,
2024-04-20 05:01:13.098 car_id=1 [info] Disconnecting ...,
2024-04-20 06:28:11.844 car_id=1 [info] Derived efficiency factor: 139.78 Wh/km (16x confirmed),
2024-04-20 06:28:11.845 car_id=1 [info] Charging / Complete / 10.29 kWh – 87 min,
2024-04-20 06:28:11.850 car_id=1 [info] Start / :online,
2024-04-20 06:28:11.897 car_id=1 [info] Connecting ...,
2024-04-20 06:31:13.226 car_id=1 [info] Suspending logging,
2024-04-20 06:46:39.367 [warning] Too many disconnects from streaming API,
2024-04-20 06:46:39.368 car_id=1 [info] Creating new connection … ,
2024-04-20 06:46:39.368 car_id=1 [info] Disconnecting ...,
2024-04-20 06:46:39.390 car_id=1 [info] Connecting ...,
2024-04-20 07:01:13.437 car_id=1 [info] Start / :asleep,
2024-04-20 07:01:13.458 car_id=1 [info] Disconnecting ...,
2024-04-20 08:45:08.844 car_id=1 [info] Start / :online,
2024-04-20 08:45:09.132 car_id=1 [info] Connecting ...,
2024-04-20 08:48:10.261 car_id=1 [info] Suspending logging,
2024-04-20 08:59:08.399 car_id=1 [info] Fetching vehicle state ...,
2024-04-20 08:59:08.835 car_id=1 [info] Start / :asleep,
2024-04-20 08:59:08.869 car_id=1 [info] Disconnecting ...,
2024-04-20 11:01:11.156 [info] Refreshing access token ...,
2024-04-20 11:01:11.572 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (413.036 ms),
2024-04-20 11:01:11.590 [info] Scheduling token refresh in 6 h,

Screenshots

image

image

Additional data

00charges.csv

but unfortunately:
~/data$ psql teslamate -U teslamate -c "COPY (select * from charging_processes where date > '2024-04-19') TO STDOUT WITH CSV HEADER" > 00charging_processes.csv
ERROR: column "date" does not exist
LINE 1: COPY (select * from charging_processes where date > '2024-04...
^

Type of installation

Docker

Version

v1.28.5

@JakobLichterfeld
Copy link
Collaborator

JakobLichterfeld commented Apr 21, 2024

It seems like your charge was not terminated by TelsaMAte correctly, please follow (due to Tesla API down/rate limit): https://docs.teslamate.org/docs/maintenance/manually_fixing_data#terminate-a-drive-or-charge

Beside of that: If you charge, stop, charge, these are technically independent charges for Tesla and therefore for TeslaMate. If you charge, stop, then TeslaMate will give your car time to going to sleep state. So you need to either keep it from doing by manual press in webpage, http request or whatever.

@woyteck1
Copy link
Contributor

Looks like Tesla API was not responsive, perhaps that caused teslamate to not notice the charge?

Copy link

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

@github-actions github-actions bot added the Stale label May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants