Repository navigation
Solar PV Divert and Current Shaper
Two of the most powerful smart-charging features in the OpenEVSE integration are Solar PV Divert and Current Shaper. Both require firmware 4.1.0+.
Solar PV Divert dynamically adjusts the charging current in real-time based on the excess solar power available in your home. Instead of pulling power from the grid, the charger uses solar energy that would otherwise be exported.
- You configure one or more external power sensors in the integration options (Grid, Solar, or Voltage).
- The integration pushes these sensor values to the charger periodically.
- The charger's internal divert algorithm computes available solar current and adjusts the charge rate accordingly.
- In eco mode, the charger ramps up and down smoothly. In fast mode, it charges at full rate until solar drops, then stops.
Step 1 — Configure sensors:
Go to Settings → Devices & Services → OpenEVSE → Configure and set:
-
Grid Sensor: A sensor reporting net grid power in Watts.
- Positive = importing from grid
- Negative = exporting to grid (or toggle Invert Grid if your meter reports the opposite)
- Solar Sensor (optional): A sensor reporting solar generation in Watts.
- Voltage Sensor (optional): A sensor for grid voltage (improves accuracy).
Tip
If you only have a solar generation sensor (no grid meter), use the Solar Sensor field. The divert algorithm can work with either or both.
Step 2 — Enable Solar PV Divert:
Toggle the Solar PV Divert switch on, or call the service:
action: switch.turn_on
target:
entity_id: switch.openevse_solar_pv_divertStep 3 — Choose a divert mode:
Use the Divert Mode select entity to choose between:
| Mode | Behavior |
|---|---|
eco |
Smoothly ramps charging current up/down to track available solar |
fast |
Charges at maximum rate while excess solar is available; stops when it drops |
The Current Shaper prevents your home from exceeding a maximum power threshold. It reduces the EV charging current when other household appliances push total consumption above the configured limit.
- You configure a Shaper Sensor that reports live household consumption in Watts.
- The integration sends this value to the charger periodically.
- The charger computes available headroom and adjusts the charge rate to prevent overloading.
Step 1 — Configure the Shaper Sensor:
Go to Settings → Devices & Services → OpenEVSE → Configure and set:
- Shaper Sensor: A sensor reporting live household power consumption in Watts.
Step 2 — Enable Current Shaper:
Toggle the Current Shaper switch on, or call the service:
action: switch.turn_on
target:
entity_id: switch.openevse_current_shaperWhen Solar PV Divert or Current Shaper is active, several diagnostic sensors become available (disabled by default, enable them in the entity registry):
| Sensor | Description |
|---|---|
| PV Available Current | Raw available solar current (A) |
| PV Smoothed Available Current | Smoothed/filtered solar current (A) |
| PV Charge Rate | Current charge rate set by divert algorithm (A) |
| Shaper Power | Live household power reported to shaper (W) |
| Shaper Current Available | Current headroom available after shaper calculation (A) |
| Shaper Max Power | Maximum total power limit configured on charger (W) |
| Divert Mode | Currently active divert mode (fast or eco) |
| Divert Active (binary sensor) | Whether divert is currently active |
| Shaper Active (binary sensor) | Whether shaper is currently active |
Solar Divert and session limits can be used together. For example:
# Enable solar divert AND set a max SoC limit
action: openevse.set_limit
target:
entity_id: sensor.openevse_charging_status
data:
type: soc
value: 80
auto_release: trueThe charger will use available solar power and stop automatically when the vehicle reaches 80% SoC.
| Problem | Solution |
|---|---|
| Divert/Shaper switch not visible | Firmware must be 4.1.0+; check the Controller Firmware sensor |
| Charger not responding to solar | Verify the Grid/Solar sensor entity IDs are correct in integration options |
| Sensor values not updating | The integration pushes sensor data on HA state changes; ensure your sensors update regularly |
Divert Active shows off despite solar available |
Charger needs a minimum current headroom; check charger min/max amps settings |