bassmaster187 / TeslaLogger

TeslaLogger is a self hosted data logger for your Tesla Model S/3/X/Y. Actually it supports RaspberryPi 3B, 3B+, 4B, Docker and Synology NAS.
https://www.teslalogger.de
GNU General Public License v3.0
503 stars 167 forks source link

Charging / driving transitions missed #194

Open pbertra opened 4 years ago

pbertra commented 4 years ago

Screenshot_20200521-165014_Chrome Yesterday I charged my car around 11 AM for about 20 minutes, then drove for around 1/2 hour, then charged it again for several hours. However, the driving period was initially included in the charging session. Hower, at some point, the charging session was modified and the first part of the charge was removed from the session and lost in the charging history. The status history seems correct. status Charging history is not correct: first part of charging has disappeared and charging session continued while driving for more then 40 minutes... So the trip history is also incorrect: of the 46 minutes drive, only 3 were seen as a trip. This is not the first time I see that charging sessions are not correct but this time the result is particularly strange.

bassmaster187 commented 4 years ago

Please append your Logfile "nohub.out" and name the approx. time range of the driving session.

pbertra commented 4 years ago

21/05/2020:

robi59italy commented 11 months ago

Teslalogger is missing my drive.. friday I lost one, yesterday the same... No idea... teslalogger was working, the car was connected .... here my log

12.09.2023 16:19:33 : #1[Thread Pool Worker:11979]: Result.Statuscode: 408 (RequestTimeout) cmd: vehicle_data 12.09.2023 16:19:41 : #1[Car_1:19]: IsDriving = NULL! 12.09.2023 16:19:51 : #1[Thread Pool Worker:11978]: Result.Statuscode: 408 (RequestTimeout) cmd: vehicle_data 12.09.2023 16:19:58 : #1[Car_1:19]: isCharging = NULL 12.09.2023 16:19:58 : #1[Thread Pool Worker:11967]: Result.Statuscode: 408 (RequestTimeout) cmd: vehicle_data 12.09.2023 16:20:02 : #1[Thread Pool Worker:11967]: GetOutsideTempAsync: NULL 12.09.2023 16:20:08 : #1[Thread Pool Worker:11967]: Result.Statuscode: 408 (RequestTimeout) cmd: vehicle_data 12.09.2023 16:20:18 : #1[Thread Pool Worker:11960]: Result.Statuscode: 408 (RequestTimeout) cmd: vehicle_data 12.09.2023 16:20:25 : #1[Car_1:19]: IsDriving = NULL! 12.09.2023 16:20:35 : #1[Thread Pool Worker:11961]: Result.Statuscode: 408 (RequestTimeout) cmd: vehicle_data 12.09.2023 16:20:41 : #1[Car_1:19]: isCharging = NULL 12.09.2023 16:20:41 : #1[Thread Pool Worker:11961]: Result.Statuscode: 408 (RequestTimeout) cmd: vehicle_data 12.09.2023 16:20:47 : #1[Thread Pool Worker:11961]: GetOutsideTempAsync: NULL 12.09.2023 16:20:51 : #1[Thread Pool Worker:11967]: Result.Statuscode: 408 (RequestTimeout) cmd: vehicle_data 12.09.2023 16:21:03 : #1[Thread Pool Worker:11960]: Result.Statuscode: 408 (RequestTimeout) cmd: vehicle_data 12.09.2023 16:21:10 : #1[Car_1:19]: IsDriving = NULL! 12.09.2023 16:21:20 : #1[Thread Pool Worker:11953]: Result.Statuscode: 408 (RequestTimeout) cmd: vehicle_data 12.09.2023 16:21:25 : #1[Car_1:19]: isCharging = NULL 12.09.2023 16:21:25 : #1[Thread Pool Worker:11960]: Result.Statuscode: 408 (RequestTimeout) cmd: vehicle_data 12.09.2023 16:21:33 : #1[Thread Pool Worker:11960]: GetOutsideTempAsync: NULL 12.09.2023 16:21:35 : #1[Thread Pool Worker:11967]: Result.Statuscode: 408 (RequestTimeout) cmd: vehicle_data 12.09.2023 16:21:41 : #1[Car_1:19]: change TeslaLogger state: Online -> Start 12.09.2023 16:21:41 : #1[Thread Pool Worker:11967]: Result.Statuscode: 408 (RequestTimeout) cmd: vehicle_data 12.09.2023 16:21:46 : #1[Car_1:19]: IsDriving = NULL! 12.09.2023 16:21:56 : #1[Car_1:19]: Reason:is_user_present prevents car to get sleep 12.09.2023 16:22:01 : #1[Car_1:19]: ScanMyTesla FastMode: False 12.09.2023 16:22:02 : Reverse geocoding by GeocodeCache 12.09.2023 16:22:02 : Reverse geocoding by GeocodeCache 12.09.2023 16:22:02 : #1[Car_1:19]: state: offline 12.09.2023 17:00:05 : TeslaLogger process statistics WorkingSet64: 124985344 PeakWorkingSet64: 150913024 PrivateMemorySize64: 202506240 VirtualMemorySize64: 2270973952 StartTime: 9/9/2023 5:02:59 PM Database sizes: DB teslalogger table pos has 44mb table mothership has 7mb table superchargerstate has 2mb

12.09.2023 18:00:05 : TeslaLogger process statistics WorkingSet64: 122175488 PeakWorkingSet64: 150913024 PrivateMemorySize64: 198918144 VirtualMemorySize64: 2267385856 StartTime: 9/9/2023 5:02:59 PM Database sizes: DB teslalogger table pos has 44mb table mothership has 7mb table superchargerstate has 2mb

12.09.2023 18:12:05 : #1[Car_1:19]: Back Online: online 12.09.2023 18:12:05 : #1[Car_1:19]: ScanMyTesla FastMode: False 12.09.2023 18:12:05 : Reverse geocoding by GeocodeCache 12.09.2023 18:12:05 : #1[Car_1:19]: change TeslaLogger state: Start -> Online 12.09.2023 18:12:05 : #1[Car_1:19]: sentry_mode: False 12.09.2023 18:12:05 : Reverse geocoding by GeocodeCache 12.09.2023 18:12:05 : #1[Car_1:19]: state: online 12.09.2023 18:12:10 : #1[Car_1:19]: ShiftStateChange: P -> D 12.09.2023 18:12:10 : #1[Car_1:19]: ScanMyTesla FastMode: True 12.09.2023 18:12:10 : #1[Car_1:19]: Missing: 124.78324508747 km! - Check: https://teslalogger.de/faq-1.php 12.09.2023 18:12:15 : #1[Car_1:19]: change TeslaLogger state: Online -> Drive 12.09.2023 18:12:15 : #1[Thread Pool Worker:12358]: CombineChangingStates start 12.09.2023 18:12:15 : #1[Thread Pool Worker:12358]: CombineChangingStates took 4ms 12.09.2023 18:12:15 : Reverse geocoding by Nominatim30 12.09.2023 18:12:17 : #1[StreamAPIThread_1:11874]: shift_state: D Power: 1 Datetime: 12.09.2023 18:12:16 12.09.2023 18:12:17 : #1[StreamAPIThread_1:11874]: DrivingOrChargingByStream: True 12.09.2023 18:12:20 : #1[StreamAPIThread_1:11874]: shift_state: P Power: 1 Datetime: 12.09.2023 18:12:20 12.09.2023 18:12:23 : #1[Car_1:19]: ShiftStateChange: D -> P 12.09.2023 18:12:23 : #1[Car_1:19]: change TeslaLogger state: Drive -> Start 12.09.2023 18:12:23 : #1[Car_1:19]: GetAvgConsumption: sumkm: 1647.5; avgkm: 164.7; kwh/100km: 17.7; avgsocdiff: 40.5; maxkm: 436.5 12.09.2023 18:12:23 : #1[Car_1:19]: ScanMyTesla FastMode: False

After 16:22 the log is reporting "state: offline" but the car was ok.. and at 18:12 is reporting: 12.09.2023 18:12:10 : #1[Car_1:19]: Missing: 124.78324508747 km! - Check: https://teslalogger.de/faq-1.php

yes.. I know... but what should I have to do?