PV Surplus Charging for OCPP / 5 modes

Home Assistant package that controls an OCPP-connected wallbox via a selectable charging mode, inspired by evcc — pure HA automation, no extra software.

5 modes: Off, Boost, PV surplus, Min+PV (guaranteed grid minimum + surplus), and Battery boost.

Highlights:

  • Protects your home battery via a configurable priority threshold — optionally dynamic using a Solcast PV forecast
  • Start hysteresis against rapid on/off cycling
  • Auto-switches mode on plug-in/unplug
  • Setup via HA helpers, no YAML editing needed
  • Includes a ready-to-use dashboard

Works with any inverter/battery system exposing grid power, battery power, and SOC (developed on E3DC, should also work with Fronius, SolarEdge, sonnen, Victron, etc.).

Repo: https://github.com/mb-041181/HomeAssistant_PV_Charging