tgeliot wrote:I am trying to automate charging my Leaf to only 80% using my home Openevse.
I had suggested to someone that potentially had more time on their hands that was working on OpenEVSE that they add a Bluetooth module and have the EVSE itself connect to the vehicle's OBDII adapter and control charging directly within the EVSE itself. This is probably the best solution to the problem, but involves hardware/software mods to the EVSE.
Your suggested approach would likely either require a modification to LeafSpy itself to dump charging data somewhere where you could read it (I'm not sure if the dropbox integration is "live" during charging or whether it dumps data from a charging session at the conclusion of charging, or if it even dumps that stuff to dropbox at all (sorry, I haven't played with that aspect of the app much).
Another approach using LeafSpy would be to take advantage of the fact that it does dump data into the Android file system. I suppose you could write a second app that monitored that and then sent a signal to a server you control that would then send a signal to your OpenEVSE.
But if it were me, the approach I would use would be to just use the LEAF telematics (assuming that's not an issue for you with respect to TCU upgrades and cell coverage). When you are charging you would kick off a program that requested SOC from NissanConnect. 15 minutes later you would send another request and from there estimate how long until your vehicle reaches 80% SOC. If you wanted to get precise, you could time several more requests just before that time to get it precisely at 80%, but it's probably not that important to get it that close. Once you detect an 80% (or close enough) SOC, your program then sends its signal to OpenEVSE to halt charging.
Deep Blue Metallic 2018 Tesla Model 3 (31849) (delivered: 7/13/18)
Coulis Red 2016 SV (312310) (bought: 12/23/16 sold: 7/5/18)
Glacier Pearl 2012 SL (016138) (delivered: 12/9/11; traded in 12/23/16)NOGA$4ME Blog