[Custom Integration] Marstek Venus Energy Manager

Project Name: Marstek Venus Energy Manager
GitHub: ffunes/Marstek-Venus-Energy-Manager: A Marstek Venus Integration for Home Assistant

Hi everyone! :wave:

I’ve built a custom integration for Marstek Venus E series batteries (v2 supported, v3 experimental).

While there are other integrations, I wanted smarter control—specifically, the ability to dynamically charge from the grid overnight only when tomorrow’s solar won’t be enough and other fuctionalities.

:battery: Key Features

1. :zap: Dynamic PD Controller (Zero Export/Import)
A built-in PID controller continuously adjusts the battery’s charge/discharge rate to keep your grid meter close to 0W, reacting to load spikes (like coffee machines) with no oscillation.

2. :brain: Predictive Grid Charging
This feature:

  • Calculates your current usable capacity.
  • Checks tomorrow’s Solar Forecast (works with Solcast, Forecast.Solar, etc.).
  • Predicts your Home Consumption (using a rolling 7-day average of the energy your battery has discharged).
  • The Logic: If (Battery + Solar) < Consumption, it charges from the grid during your cheap off-peak window to cover the deficit. Result: You start the day with enough energy, leaving room for solar and saving money on unnecessary grid imports.

3. :shield: Other functionalities

  • No-Discharge Times: You can configure up to 4 time slots where the batteries won’t discharge.
  • Weekly Full Charge: Automatically force a 100% charge once a week for cell balancing.
  • Load Exclusion: “Hide” heavy loads (like EV chargers) so they don’t drain your house battery in 30 minutes.

:hammer_and_wrench: Installation

  1. Add https://github.com/ffunes/Marstek-Venus-Energy-Manager as a Custom Repository in HACS.
  2. Search for “Marstek Venus Energy Manager” and install.

:test_tube: Looking for Testers!

I’m running this on my V2 batteries, but I’d love feedback from V3 owners or anyone with a similar setup.

Note: I am new to GitHub and git versioning, so please be patient if I mess up a commit or release! :sweat_smile: Learning as I go.

Let me know what you think or if you have any feature requests!

ffunes/Marstek-Venus-Energy-Manager: A Marstek Venus Integration for Home Assistant

1 Like

Hi,
I did the same some months ago.
I’ve allready built in some features for multiple batteries, wallbox etc.
Check it out: GitHub - diegoschlauri/marstek_venus_ha: Home Assistant - Intelligente Batteriesteuerung für Marstek Venus E

1 Like