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

lost current charge record #3762

Closed
1 task done
bborn2 opened this issue Mar 22, 2024 · 2 comments
Closed
1 task done

lost current charge record #3762

bborn2 opened this issue Mar 22, 2024 · 2 comments
Labels
closed:invalid This doesn't seem right

Comments

@bborn2
Copy link

bborn2 commented Mar 22, 2024

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

2024.03.22 12:50 - 15:49 charging

15:20 I update my teslamate docker from 1.28.3 to 1.28.4 , about 20~30 mins

in [Dashboards] -- [TeslaMate] -- Charges, I can't find this record .
image

in [Dashboards] -- [TeslaMate] -- States
image

Expected Behavior

fix the charge data

Steps To Reproduce

  1. driving or charging
  2. restart the teslamate
  3. check the drives or charges dashboard

Relevant log output

teslamate-1  | 2024-03-22 07:47:57.666 [info] Migrations already up
teslamate-1  | 2024-03-22 07:48:00.638 [info] No tzdata release files found in custom data dir. Copying release file from tzdata priv dir.
teslamate-1  | 2024-03-22 07:48:00.722 [info] System Info: Erlang/OTP 26 (jit)
teslamate-1  | 2024-03-22 07:48:00.722 [info] Version: 1.28.4
teslamate-1  | 2024-03-22 07:48:01.065 [info] POST https://auth.tesla.cn/oauth2/v3/token -> 200 (290.477 ms)
teslamate-1  | 2024-03-22 07:48:01.065 [info] Refreshed api tokens
teslamate-1  | 2024-03-22 07:48:01.077 [info] Scheduling token refresh in 6 h
teslamate-1  | 2024-03-22 07:48:01.091 [info] Running TeslaMateWeb.Endpoint with cowboy 2.10.0 at :::4000 (http)
teslamate-1  | 2024-03-22 07:48:01.092 [info] Access TeslaMateWeb.Endpoint at http://localhost
teslamate-1  | 2024-03-22 07:48:01.417 [info] GET /settings
teslamate-1  | 2024-03-22 07:48:01.450 [info] Sent 200 in 32ms
teslamate-1  | 2024-03-22 07:48:01.843 [info] Starting logger for '贝尔的车'
teslamate-1  | 2024-03-22 07:48:01.863 [info] MQTT connection has been established
teslamate-1  | 2024-03-22 07:48:02.487 car_id=1 [info] Start / :online
teslamate-1  | 2024-03-22 07:48:02.526 car_id=1 [info] Connecting ...
teslamate-1  | 2024-03-22 07:48:03.613 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (1070.014 ms)
teslamate-1  | 2024-03-22 07:48:03.677 car_id=1 [info] Charging / SOC: 99% / 家
teslamate-1  | 2024-03-22 07:48:03.677 car_id=1 [info] Disconnecting ...
teslamate-1  | 2024-03-22 07:48:06.315 [info] tzdata release in place is from a file last modified Fri, 22 Oct 2021 02:20:47 GMT. Release file on server was last modified Thu, 01 Feb 2024 18:40:48 GMT.
teslamate-1  | 2024-03-22 07:48:07.186 [info] GET /
teslamate-1  | 2024-03-22 07:48:07.189 [info] Sent 200 in 3ms
teslamate-1  | 2024-03-22 07:48:07.957 [info] Tzdata has updated the release from 2021e to 2024a
teslamate-1  | 2024-03-22 07:49:11.606 car_id=1 [info] Derived efficiency factor: 138.0 Wh/km (7x confirmed)
teslamate-1  | 2024-03-22 07:49:11.606 car_id=1 [info] Charging / Complete / 0.00 kWh – 1 min
teslamate-1  | 2024-03-22 07:49:11.607 car_id=1 [info] Start / :online
teslamate-1  | 2024-03-22 07:49:11.624 car_id=1 [info] Connecting ...
teslamate-1  | 2024-03-22 07:50:07.028 [notice] TLS :client: In state :connection at tls_record_1_3.erl:352 generated CLIENT ALERT: Fatal - Bad Record MAC
teslamate-1  |  - :decryption_failed
teslamate-1  | 2024-03-22 07:50:31.152 [info] GET /
teslamate-1  | 2024-03-22 07:50:31.156 [info] Sent 200 in 3ms
teslamate-1  | 2024-03-22 07:52:13.685 car_id=1 [info] Suspending logging
teslamate-1  | 2024-03-22 07:56:33.787 [info] GET /
teslamate-1  | 2024-03-22 07:56:33.792 [info] Sent 200 in 4ms
teslamate-1  | 2024-03-22 07:59:27.816 [info] GET /settings
teslamate-1  | 2024-03-22 07:59:27.834 [info] Sent 200 in 18ms
teslamate-1  | 2024-03-22 08:08:27.245 [warning] MQTT connection has been dropped
teslamate-1  | 2024-03-22 08:08:27.245 [info] [Tortoise311] Connection went down. Reconnecting.
teslamate-1  | 2024-03-22 08:08:27.245 [warning] WebSocket disconnected. Reconnecting …

Screenshots

No response

Additional data

No response

Type of installation

Docker

Version

v1.28.4

@JakobLichterfeld
Copy link
Collaborator

Hi bborn2,
if you take your teslamate 20-30 minutes offline, it could not record any data from the tesla api during this time. This is expected behavior.
If you have a unfinished drive or a unfinished charge, you can follow: https://docs.teslamate.org/docs/maintenance/manually_fixing_data

@JakobLichterfeld JakobLichterfeld added the closed:invalid This doesn't seem right label Mar 22, 2024
@bborn2
Copy link
Author

bborn2 commented Mar 23, 2024

Yes, I tried this method before. But it returned an error
'-bash: !: event not found'.

Just tried it again, changing double quotes to single quotes, and it worked.

docker compose exec teslamate bin/teslamate rpc 'TeslaMate.Repo.get!(TeslaMate.Log.ChargingProcess, 78) |> TeslaMate.Log.complete_charging_process()'

04:32:16.125 [info] Phase correction: 2 -> 3

04:32:16.134 [info] Derived efficiency factor: 138.0 Wh/km (7x confirmed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed:invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants