Skip to content

Battery charge planning for grid charging #33060

Description

@Elektron30

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

evcc already supports grid charging for home batteries via the "Grid charging" feature, including a configurable price limit.

This is already very useful with dynamic electricity tariffs. However, the current logic is mainly price-threshold based. What is currently missing is a simple charge planning function for home batteries, similar to the existing charge planning for vehicles.

A typical use case would be:

  • charge the home battery during cheap hours at night
  • reach a defined target SoC by a defined time in the morning
  • avoid charging the battery unnecessarily full, so there is still capacity left for PV surplus during the day

Describe the solution you'd like

I would like to see the existing home battery "Grid charging" feature extended with a simple battery charge plan.

Possible parameters:

  • target SoC, e.g. 70%
  • target time, e.g. 18:00
  • optional maximum SoC for grid charging, e.g. 80%
  • use the cheapest available time slots
  • optionally respect an existing price limit
  • optionally consider PV forecast / expected surplus

Example:

"Charge the home battery from the grid so that it reaches at least 70% by 18:00, using the cheapest available hours, but do not charge above 80%."

Describe alternatives you've considered

The current alternative is to use a fixed price limit for grid charging.

This works, but it does not guarantee that the battery reaches a desired SoC by a specific time. It can also lead to charging too early or too much, depending on the price curve and PV forecast.

External automation via Home Assistant or scripts would be possible, but since evcc already has grid charging and vehicle charge planning, it would be very useful to have this logic directly inside evcc.

Additional context

I know that not every battery or inverter supports active battery control. This feature would only apply to systems where evcc can already trigger grid charging today.

This request is therefore not about introducing full battery control for all systems, but about extending the existing "Grid charging" functionality with planning logic.

This could be especially useful for users with dynamic electricity tariffs and future time-variable grid fees.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions