So think of this scenario and hopefully it'll give insight into how smart charging works:
- it is 4:00 am
- your desired completion is 6:00 am
- you're plugged-in at an enabled smart charging location
- charging is stopped
- you have 20 miles until full battery and charging would complete
- you set your manual charge rate to 5.0 mph
- your actual charge rate will be 20.0 mph
Side-note: Smart charging does not know your actual charge rate because this information is not provided by the APIs unless you're actually charging, thus we require an estimated manual charge rate just to get us going. You only have to provide this once though as smart charging will automatically average into your manual charge rate setting all the actual charge rates it experiences during each session, so over time your manual charge rate becomes closer and closer to your actual charge rate for that location assuming you do not mess with amperage/charge rates at all (in which case you should add a new location for use with that amperage)
Given the above scenario, because you are plugged-in at an enabled smart charging location, smart charging begins processing...
- It uses the 5.0 mph manual charge rate to calculate that it will take 4 hours to fill the battery the 20 miles needed to complete charging
- It then calculates the required charge start time needed in order to complete charging by your desired time of 6:00 am, so it subtracts this 4 hour charge time from your desired completion time of 6:00 am to determine that you need to start charging at 2:00 am
- It sees it is currently 4:00 am which is past your required charge start time of 2:00 am, so it immediately starts charging. The smart charging service is scheduled to check back in 15 minutes to see how things are going and adjust accordingly
- ...15 minutes pass, the time is now 4:15 am, during this time the car has been charging at the actual charge rate of 20.0 mph, the battery filled 5 miles in these 15 minutes leaving only 15 miles needed for charge completion. Smart charging begins the above same processing again
- This time, it uses the actual charge rate being experienced of 20.0 mph to calculate that it will take 45 minutes to fill the battery the 15 miles needed to complete charging.
- Smart charging averages this actual charge rate into the manual charge rate setting at this point (with some logic to protect bad data from throwing off a perfectly good average)
- It then calculates the required charge start time needed in order to complete charging by your desired time of 6:00 am, so it subtracts this 45 minute charge time from 6:00 am to determine that you need to start charging at 5:15 am.
- It sees it is currently 4:15 am which is before your required charge start time of 5:00 am (we minus a 15 minute buffer here to account for inaccuracies), so it immediately stops charging. The smart charging service is scheduled to check back in 15 minutes just in-case.
- ..15 minutes pass, go back to step 1 but the manual charge rate setting used in calculations is now slightly higher due to the averaging that took place in step 6.
As this cycle repeats every 15 minutes, your manual charge rate setting gets closer and closer to the actual charge rate such that there is no more repetitive stopping and starting. This means your first night of smart charging should be your worst and only.
Note: In order for the manual charge rate setting to be averaged with the actual charge rate, you must have at least 45 minutes of actual charge time remaining. So if you've been doing short charges this whole time (<45 minutes), your manual charge rate setting hasn't been getting updated. This 45 minute buffer is a protection against the huge fluctuations that happen in the charge time remaining reported by the APIs as charge gets closer to completing (the balancing and tapering can swing the remaining charge time up to 30 minutes for brief periods). I may be a bit too cautious with this buffer, I could lower it to 30 safely.