I like to charge my Leaf to only 80% as this provides full regenerative braking (and may improve the lifetime of the battery). Also, I live in an area where electricity costs much less at night. So I would think it would be a very desirable OpenEVSE capability to be able to both charge only at night and only for a set amount of time or charge -- even if the car is left plugged-in for a few days.
I've tried using the OpenEVSE Charge Timer feature to only charge for a limited time (for example, from 4:00 am to 6:00 am, which adds 40% charge, so I only plug-in when the car is down to about 40% charge), and this works. Except if I don't drive the car the next day (and don't go to the garage to unplug it or send a $FD command to disable the charger), then it charges another two hours the next night, so charges to 100%. So the Charge Timer alone is not a solution.
I've tried using the Charge Limit feature and this doesn't work for a few reasons:
An alternative method to provide the capability needed would be to have an option that when the car finishes charging due to the Charge Timer feature, further charging (the next day) is disabled until the car is un-plugged and re-plugged.
On a related topic, if it simplifies the code (to make room for the above), I find it redundant to have both the Charge Limit and Time Limit feature, just one of those is all that is necessary. I'm loving my OpenEVSE, but it doesn't quite have what I think would be a very popular capability.
Sorry, I didn['t read your original post closely enough. I didn't realize that you were talking about the EVSE's Timer rather than the Time Limit feature in conjunction with the Charge Limit.
I'm pretty sure that the reason the EVSE wakes up and resumes charging is because you also have the timer engaged. After the Charge Limit is reached, the EVSE goes to sleep. The problem is that the standby mode for the timer is also Sleep, so the timer can still engage once the limit is reached. I am really puzzled as to why it restarts after a 10-25 minute wait, though. The code actually checks the timer once per second.
One easy workaround that should do what you want is to use the timer in your Leaf instead of the one in the EVSE. Simply set your Leaf's timer to start it at the appropriate time. When you plug the car in, set the Charge Limit to your desired amount. When the Leaf's timer starts the charge, the EVSE will go to sleep after the Charge Limit is reached, and should stay in sleep until you unplug the car, even if you leave it plugged in for multiple days. If the Leaf tries to initiate a charge, the EVSE will ignore it, since it's in Sleep mode.
I am not sure it is impossible, the external device is the human brain. If you arrive with 3 bars in the leaf you have about 5kw so to get to 80% add 15kw. If you arrive with 6 bars add 10kw.
I think what you are really looking for is a function to charge to a specific SOC, which is not the intent of the Charge & Time Limit functions. Please join in on the discussion here:
It is really impossible to implement what you want, because the EVSE doesn't know anything about the SOC of your car. In order to do that, you would need to implement something via a device which can read SOC (such as a LeafCAN or other device that can read the SOC via the OBD-II port), and then use RAPI to terminate the charge when the required SOC is reached.
I am not sure why your car is resuming charge after 25 min when Charge Limit is set, and you are not having the same issue with Time Limit. Both methods terminate the charge using exactly the same mechanism. You can look at the code in J1772EvseController.cpp (search for "_LIMIT").
I have a 2013 Leaf, and both mechanisms don't cause it to restart the charge after it's terminated.
Also, once a limit is reached, the car will not resume charging no matter what the onboard timer wants to do.. when a limit is reached the EVSE goes into Sleep mode and stays there, so when my onboard timer fires, the car won't charge again. (This sometimes causes me trouble, because sometimes, I set a limit, override the timer to start charging, and don't use the car, leaving it plugged in overnight .. the limit is reached and the EVSE goes to sleep. Then when the onboard timer tries to top up the car overnight, the EVSE is still in Sleep mode, and no charging happens.. very unpleasant to wake up to an uncharged car!)
I'm a bit puzzled as to what's going on with your car. What year is it?