OpenEVSE / openevse_esp32_firmware

OpenEVSE V4 WiFi gateway using ESP32
173 stars 116 forks source link

Configure hardware button on OpenEVSE #239

Open Fortunefavours opened 3 years ago

Fortunefavours commented 3 years ago

We have an OpenEVSE and most of the time we run this in solar divert mode, to mop up any excess.

But every now and then the car needs a proper charge and I want to make it as easy as possible for the whole family to do this.

Is it possible to configure the button on the side of the device so one press will change it into a “full charge just this time” mode, then it’ll default back to PVDivert for future charges?

Mentioned this on OpenEnergyMonitor and @jeremypoulter was kind enough to mention this was already being discussed. A boost mode would be great, especially if it would work without messing with the normal PVDivert/times charging setup.

thanks very much

glynhudson commented 3 years ago

I agree, this would be a useful feature. However, implementation is tricky since the push button is already used for manual override to stop/start a charging session.

As a first instance, we would need to make it more clear on the LCD when Eco mode is enabled.

Possibly we could have a config on the web UI to select the function of the button, possible options could be

  1. Manual override (stop/start)
  2. Eco Mode (enable /disable)
  3. Button disabled

What do you think @jeremypoulter @chris1howell ?

Fortunefavours commented 3 years ago

Thanks @glynhudson, a config option in the UI makes sense and gives maximum flexibility for different situations. In addition to the three options above, could I request a one-time boost mode, allowing a single full charge before the device returns to its previous (eco mode) settings? This would save having to turn eco-mode back on once you’re done with a full charge.

If it were possible to read battery charge levels you could have single/double press options configurable, ie:

single press: one time boost mode to 80% then default back to eco-mode. double press: one time boost mode to 100% then default back to eco-mode

Thanks very much

jeremypoulter commented 3 years ago

I think there is probably going to be a lot of context sensitive and configurable behavior. IMHO I think we should do something like:

The boost modes should be fairly simple to do when the generic support for limits is added, which will b part of #225

glynhudson commented 3 years ago

if sleeping, or in charging with current limit set (eg eco mode), then select from a number of boost options, if we have SoC 80%, 100%, off, else time 30m, 1h, 1h 30m, off.

I agree, that sounds good. The simplest option for an initial implementation would be just to turn off EcoMode on button press if EcoMode is active.

When charging in Normal mode, a button press would perform manual override, i.e stop the charge.

We will obviously need to make it clear with a message on the LCD what effect a button press had.

fhteagle commented 3 years ago

What about two different actions for short press vs long press and hold? Short press is always manual override, long press is a one time charge now at max rate to 100% ?

jeremypoulter commented 3 years ago

Can be implemented at the same time as #112

jeremypoulter commented 3 years ago

And #190

thegit commented 2 years ago

I would like slightly different functionality. I would like to cycle through all; or toggle between preset amperages. I.e. 13amp 16amp 32amp.