TeslaLogger icon indicating copy to clipboard operation
TeslaLogger copied to clipboard

12V battery excessive recharge with Teslalogger on

Open dilgers opened this issue 1 year ago • 14 comments

** Append Logfile ** logfile.zip

Describe the bug When Teslalogger is on, the Battery has an excessive recharge behaviour.

I believe the Tesla dose not sleep. Wakes up all 44 or 54 minutes.

Car is a Model S90D from May 2017 with CCS- Adapter. I have loges three cars with my Teslalogger. #1 Model 3 LR #2 Model Y LR #3 Model S 90D

Only the last Tesla is still in my possession. The other cars are sold and in Teslalogger in suspension.

Expected behavior 24.05.2023 17:05:23 : #3[Car_3:25]: change TeslaLogger state: Start -> Online 24.05.2023 17:05:36 : #3[Thread Pool Worker:69]: NearbyChargingSiteFail: Forbidden CarState: Online (OK: 0 - Fail: 2) 24.05.2023 17:10:25 : #3[Car_3:25]: change TeslaLogger state: Online -> Start 24.05.2023 17:10:25 : #3[Car_3:25]: STOP communication with Tesla Server to enter sleep Mode! https://teslalogger.de/faq-1.php 24.05.2023 17:10:25 : #3[Car_3:25]: Waiting for car to go to sleep 0 24.05.2023 17:10:27 : #3[StreamAPIThread_3:28]: shift_state: Power: 0 Datetime: 24.05.2023 17:10:26 24.05.2023 17:11:10 : #3[StreamAPIThread_3:28]: shift_state: Power: 0 Datetime: 24.05.2023 17:11:10 24.05.2023 17:11:25 : #3[Car_3:25]: Waiting for car to go to sleep 1 ... 24.05.2023 17:27:26 : #3[Car_3:25]: Waiting for car to go to sleep 17 24.05.2023 17:27:45 : #3[StreamAPIThread_3:28]: Stream Data Error: Vehicle is offline 24.05.2023 17:28:26 : #3[StreamAPIThread_3:28]: Stream Data Error: Vehicle is offline 24.05.2023 17:28:26 : #3[Car_3:25]: Waiting for car to go to sleep 18 24.05.2023 17:29:07 : #3[StreamAPIThread_3:28]: Stream Data Error: Vehicle is offline 24.05.2023 17:29:26 : #3[Car_3:25]: Waiting for car to go to sleep 19 24.05.2023 17:29:48 : #3[StreamAPIThread_3:28]: Stream Data Error: Vehicle is offline 24.05.2023 17:30:26 : #3[Car_3:25]: Waiting for car to go to sleep 20 24.05.2023 17:30:30 : #3[StreamAPIThread_3:28]: Stream Data Error: Vehicle is offline 24.05.2023 17:31:11 : #3[StreamAPIThread_3:28]: Stream Data Error: Vehicle is offline 24.05.2023 17:31:26 : #3[Car_3:25]: Restart communication with Tesla Server! 2 24.05.2023 17:31:31 : #3[Car_3:25]: ScanMyTesla FastMode: False 24.05.2023 17:31:31 : Reverse geocoding by GeocodeCache 24.05.2023 17:31:32 : Reverse geocoding by GeocodeCache 24.05.2023 17:31:32 : #3[Car_3:25]: state: offline 24.05.2023 18:00:02 : TeslaLogger process statistics ... 24.05.2023 18:25:24 : #3[Car_3:25]: Back Online: online

...

24.05.2023 19:41:51 : #3[Car_3:25]: Waiting for car to go to sleep 19 24.05.2023 19:42:22 : #3[StreamAPIThread_3:28]: Stream Data Error: Vehicle is offline 24.05.2023 19:42:51 : #3[Car_3:25]: Waiting for car to go to sleep 20 24.05.2023 19:43:03 : #3[StreamAPIThread_3:28]: Stream Data Error: Vehicle is offline 24.05.2023 19:43:44 : #3[StreamAPIThread_3:28]: Stream Data Error: Vehicle is offline 24.05.2023 19:43:51 : #3[Car_3:25]: Restart communication with Tesla Server! 2 24.05.2023 19:43:56 : #3[Car_3:25]: ScanMyTesla FastMode: False 24.05.2023 19:43:56 : Reverse geocoding by GeocodeCache 24.05.2023 19:43:57 : Reverse geocoding by GeocodeCache 24.05.2023 19:43:57 : #3[Car_3:25]: state: offline 24.05.2023 19:52:00 : #3[Thread Pool Worker:333]: HttpStatusCode = Unauthorized. Password changed or still valid? 0 24.05.2023 19:53:00 : #3[Thread Pool Worker:333]: Update Tesla Token From Refresh Token! 24.05.2023 19:53:01 : #3[Thread Pool Worker:333]: HttpStatus: OK 24.05.2023 19:53:01 : #3[Thread Pool Worker:333]: UpdateRefreshToken 24.05.2023 19:53:01 : #3[Thread Pool Worker:333]: UpdateRefreshToken OK: 1 24.05.2023 19:53:01 : #3[Thread Pool Worker:333]: UpdateTeslaToken 24.05.2023 19:53:01 : #3[Thread Pool Worker:333]: update tesla_token OK: 1 24.05.2023 19:53:01 : #3[Car_3:25]: Back Online: NULL 24.05.2023 19:53:01 : #3[Car_3:25]: ScanMyTesla FastMode: False 24.05.2023 19:53:01 : #3[Thread Pool Worker:343]: Request StopStreaming 24.05.2023 19:53:01 : Reverse geocoding by GeocodeCache 24.05.2023 19:53:01 : #3[StreamAPIThread_3:28]: StartStream Ende 24.05.2023 19:53:02 : #3[StreamAPIThread_3:347]: StartStream 24.05.2023 20:00:02 : TeslaLogger process statistics ... 24.05.2023 20:27:45 : #3[Car_3:25]: Back Online: online

...

24.05.2023 21:42:12 : #3[Car_3:25]: Waiting for car to go to sleep 17 24.05.2023 21:42:41 : #3[StreamAPIThread_3:347]: Stream Data Error: Vehicle is offline 24.05.2023 21:43:12 : #3[Car_3:25]: Waiting for car to go to sleep 18 24.05.2023 21:43:22 : #3[StreamAPIThread_3:347]: Stream Data Error: Vehicle is offline 24.05.2023 21:44:03 : #3[StreamAPIThread_3:347]: Stream Data Error: Vehicle is offline 24.05.2023 21:44:12 : #3[Car_3:25]: Waiting for car to go to sleep 19 24.05.2023 21:44:44 : #3[StreamAPIThread_3:347]: Stream Data Error: Vehicle is offline 24.05.2023 21:45:13 : #3[Car_3:25]: Waiting for car to go to sleep 20 24.05.2023 21:45:26 : #3[StreamAPIThread_3:347]: Stream Data Error: Vehicle is offline 24.05.2023 21:46:07 : #3[StreamAPIThread_3:347]: Stream Data Error: Vehicle is offline 24.05.2023 21:46:13 : #3[Car_3:25]: Restart communication with Tesla Server! 2 24.05.2023 21:46:18 : #3[Car_3:25]: ScanMyTesla FastMode: False 24.05.2023 21:46:18 : Reverse geocoding by GeocodeCache 24.05.2023 21:46:18 : Reverse geocoding by GeocodeCache 24.05.2023 21:46:18 : #3[Car_3:25]: state: offline 24.05.2023 22:00:03 : TeslaLogger process statistics ... 24.05.2023 22:30:07 : #3[Car_3:25]: Back Online: online

...

24.05.2023 23:45:18 : #3[StreamAPIThread_3:347]: Stream Data Error: Vehicle is offline 24.05.2023 23:45:29 : #3[Car_3:25]: Waiting for car to go to sleep 18 24.05.2023 23:45:59 : #3[StreamAPIThread_3:347]: Stream Data Error: Vehicle is offline 24.05.2023 23:46:29 : #3[Car_3:25]: Waiting for car to go to sleep 19 24.05.2023 23:46:41 : #3[StreamAPIThread_3:347]: Stream Data Error: Vehicle is offline 24.05.2023 23:47:22 : #3[StreamAPIThread_3:347]: Stream Data Error: Vehicle is offline 24.05.2023 23:47:29 : #3[Car_3:25]: Waiting for car to go to sleep 20 24.05.2023 23:48:03 : #3[StreamAPIThread_3:347]: Stream Data Error: Vehicle is offline 24.05.2023 23:48:29 : #3[Car_3:25]: Restart communication with Tesla Server! 2 24.05.2023 23:48:34 : #3[Car_3:25]: ScanMyTesla FastMode: False 24.05.2023 23:48:34 : Reverse geocoding by GeocodeCache 24.05.2023 23:48:34 : Reverse geocoding by GeocodeCache 24.05.2023 23:48:34 : #3[Car_3:25]: state: offline 25.05.2023 00:00:03 : TeslaLogger process statistics ... 25.05.2023 00:32:21 : #3[Car_3:25]: Back Online: online

Screenshots

Screenshot of normal behavior, no mobile data sharing, and Teslalogger off.

Screenshot of normal behavior and Teslalogger off.

Screenshot of normal behavior and Teslalogger off with Mobile-Phone access.

** Teslalogger Type ** Docker

dilgers avatar Jun 27 '23 12:06 dilgers

Did you upgrade your MCU to MCU2?

bassmaster187 avatar Jun 28 '23 07:06 bassmaster187

Yes, the MCU2 is installed.

dilgers avatar Jun 28 '23 08:06 dilgers

An MCU2 upgrade from a car before AP2.5 results in higher vampir drain because AP1 & AP2 cars doesn't have a dedicated DC wire from the HV pack to the MCU. So the huge DC/DC converter must power the whole system.

We made a couple of tests before and realised Teslalogger won't affect the regular recharging during night. The problem is, I can't test it as I own a AP2.5 car upgraded to MCU2 and my car has a dedicated DC wire from the HV pack. As you can see, my car sleeps well during the night:

image

Please turn of the Teslalogger and monitor the voltage of your car during the night. Repeat this with Teslalogger. Before Tesla introduced the streaming API, we had similar problems with Teslalogger and vampir drain. The solution was to stop accessing the API after each trip. To start accessing the API we used the Tasker app.

Please check: https://www.impala64.de/blog/tesla/2019/01/15/tasker-teslalogger/

I think almost nobody use it anymore, so we have to double check if it is still working. You have to turn off streaming API:

image

Make sure there is no access to the API during night in Grafana Mothership Dashboard.

bassmaster187 avatar Jun 28 '23 09:06 bassmaster187

I have turned of steaming API from: 24.05.2023 09:39:24 : StreamingPos: False to: 25.05.2023 16:24:55 : StreamingPos: True

But without Tasker as wakeup caller.

The result was the folowing:

Screenshot_20230628-111736

As you can see, no changes without steaming API

I am going to repeat the results. I will turn steaming API off for the folowing days and

  1. I will turn Teslalogger off over night
  2. Teslalogger on for a night

And then post the results on Friday (with the logs).

dilgers avatar Jun 28 '23 12:06 dilgers

I checked the source code and it seams like the streaming api is used for start using the API even if you turn off "position by StreamingAPI. So I'll make a special version for you to test, tomorrow.

bassmaster187 avatar Jun 28 '23 13:06 bassmaster187

I am a week late, but my results are the following:

I turned of the SteamingAPI (as far I could do so in the interface). The Tasker App was working fine.

For the 29 June I put the Teslalogger in suspension for around 7 hours. Screenshot_20230712-145555

And again, in supention from mid 07 July till mid 09 July Screenshot_20230711-105818

dilgers avatar Jul 12 '23 13:07 dilgers

please post Grafana "Mothership" for the same time range

superfloh247 avatar Jul 12 '23 13:07 superfloh247

we should check if we can identify cars with MCU2 upgrade and AP2 or AP1 - maybe data from vehicle_config or year of construction. If we detect such a car, we should turn off the whole communication on standby. Streaming API as well. We should inform the user he needs to use tasker on android:

https://www.impala64.de/blog/tesla/2019/01/15/tasker-teslalogger/ or IBeacon on IPhones: https://www.impala64.de/blog/tesla/2019/04/03/ibeacon-teslalogger-mit-iphone/

And we should check if tasker is still working as nobody use it anymore.

bassmaster187 avatar Jul 17 '23 14:07 bassmaster187

The screenshot from "Mothership" and the volatage on the same time.

Screenshot_20230711-105818

image image

dilgers avatar Jul 18 '23 09:07 dilgers

My Tasker works. My last drive was recognized by teslalogger.

Received Tasker Token: | 2023-07-17 20:05:14

dilgers avatar Jul 18 '23 09:07 dilgers

I do not see anything in Mothership that could wake the car except PostCommand(wake_up)

superfloh247 avatar Jul 19 '23 12:07 superfloh247

I think using the StreamingAPI on an AP1/AP2 with upgraded MCU will not wakeup the car, but drain much 12V battery so the DC/DC converter will wakeup the car frequently. Thats because the old AP1/AP2 cars don't have the special DC wire from the HV battery and MCU2 doesn't have the special standby modes the old MCU1 has. So I would suggest to have a special config for turning off StreamingAPI and just use Tasker to not lose any trips.

@dilgers could check the voltage drop if that helps. Basically the StreamingAPI is the only connection to the car before the car sleeps.

bassmaster187 avatar Jul 19 '23 13:07 bassmaster187

With version 1.54.26 you can create a empty file in teslalogger.exe folder with the name: DONTUSESTREAMINGAPI It will never use Streaming API and you have to use tasker to wakeup Teslalogger. Othervise you will miss trips. https://www.impala64.de/blog/tesla/2019/01/15/tasker-teslalogger/

bassmaster187 avatar Aug 11 '23 08:08 bassmaster187

I have the version 1.54.26 and created a empty file (with "touch DONTUSESTREAMINGAPI" ) in teslalogger.exe folder (Teslalogger/bin).

But it sadly didn't solve the issue.

As shown in the graph:

Screenshot_20230816-231603~2

dilgers avatar Aug 17 '23 10:08 dilgers