helgeerbe / OpenDTU-OnBattery

Software for ESP32 to talk to Hoymiles Inverters and Victrons MPPT battery chargers (Ve.Direct)
GNU General Public License v2.0
292 stars 62 forks source link

[Request] HTTP request or MQTT value to enable/disable AC charger #435

Open philippsandhaus opened 1 year ago

philippsandhaus commented 1 year ago

Is your feature request related to a problem? Please describe.

Besides directly charging my battery with a Victron MPPT I also have a Victron Blue Smart IP 22 AC-charger where I cannot dynamically regulate the output Amp. Currently I am dynamically switch on and the charger through a Smart-Plug controlled by Homeassistant based on excess PV energy. It would be great if this could instead be controlled by OpenDTU-OnBattery

Describe the solution you'd like

A new "fixed amps" AC-charger should available besides the now available Huawei R4850G2. Configuration in the web interface could be similar to how different batteries are available currently. The maximum current of the charger should be configurable as well to be able to only switch the charger on in DPL when enough energy is available.

Switching the charger could be done in several ways. I would suggest either a HTTP-Request or a MQTT-call, both configurable. This makes it quite flexible for different switches (Tasmota, es-home, Shelly, ...).

Describe alternatives you've considered

No response

Additional context

No response

schlimmchen commented 1 week ago

What exactly is the threshold to enable this type of charger? "Is full-solar-passthrough active (battery is full) and solar power greater than AC charger power"? I assume this is only working in a system where there are solar charge controllers and those do charge a battery? I am kind of getting a headache thinking about how to implement the logic that enables disables this type of charger, and in what setups it shall be supported... Please clarify.