-
Notifications
You must be signed in to change notification settings - Fork 55
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
A "disconnected" car is never charged when it is plugged in later #576
Comments
I'm the one who added "disconnected" to this case, IIRC. The reasoning was that when the EVSE is offering power and the car is plugged in and below its charge limit, it will start drawing power. There's no need to tell the car to start charging in that case. I'm actually more curious about the case where your wife plugged the car in and it didn't start charging spontaneously. However, if you don't clear it, it keeps the car awake by constantly telling it to start charging when it can't. That's also my concern with the approach in #577, where the disconnected state is checked prior to sending the command. Does this permit the car to sleep when it's not plugged in, or is it constantly pinging the car to check whether it's connected yet? (Note that this concern would be moot if using Teslamate telemetry, since TWCManager won't be directly pinging the car in that case.) |
You make some good points. In my test with #577 applied my car Kriek started charging all by itself. TWCManager did not have to start it:
Why plugging in Big Red in this log did not start a charge session is the big mystery. She managed to get the charge started by power cycling the TWC.
You might also be right about keeping the car awake by polling to see if the I'm going to write this off as a fluke between Big Red (Tesla M75D from 2018) and the TWC. |
Now that #573 is fixed the logic flaw is back. Yesterday the sun was shining and the "Track Green Energy" policy was active. My wife came home and plugging the charger. She called me 10 minutes later to ask why the car was not charging. The logs show the reason: TWCManager was too fast and sent the charge_start cmd before the car was plugged in. It sets
stopAskingToStartCharging = True
and never retries.TWCManager/lib/TWCManager/Vehicle/TeslaAPI.py
Lines 726 to 732 in 2a6a914
"disconnected" is treated the same as "complete", "charging", "is_charging" and "requested" which IMHO is wrong. A car may be "disconnected" now but it can be plugged in later. I'll see if I can fix this flaw.
The text was updated successfully, but these errors were encountered: