Project Name: Marstek Venus Energy Manager
GitHub: ffunes/Marstek-Venus-Energy-Manager: A Marstek Venus Integration for Home Assistant
Hi everyone! ![]()
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.
Key Features
1.
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.
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.
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.
Installation
- Add
https://github.com/ffunes/Marstek-Venus-Energy-Manageras a Custom Repository in HACS. - Search for “Marstek Venus Energy Manager” and install.
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!
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