A lightweight integration for Marstek energy storage systems, enabling local control and monitoring via Home Assistant. This integration communicates with the device using UDP and provides sensors, switches, and controls for managing the system.
- Sensors: Monitor battery SoC, power (battery, PV, grid), energy counters, temperature, and capacity.
- Control Modes: Switch between
Auto,AI,Manual, andPassivemodes. - Binary Sensors: Check charge/discharge permissions.
- Service:
marstek.refresh_nowto force an update.
- Open Home Assistant and go to HACS β Integrations.
- Click the + Explore & Download Repositories button.
- Search for Marstek and click Download.
- Restart Home Assistant.
- Download this repository as a ZIP file and extract it.
- Copy the
custom_components/marstekfolder to your Home Assistantconfigdirectory. - Restart Home Assistant.
- Go to Settings β Devices & Services β Add Integration β "Marstek".
- Enter the following details:
- IP Address: Marstek battery IP.
- Device ID: Default is
0. - Port: Default is
30000. - Scan Interval (s): Default is
10. - Local IP + Port: Required for strict NAT setups.
- Timeout (s): Default is
5.
-
No Data? Verify IP, port, and device ID. Ensure the device is reachable.
-
Strict NAT/Firewall? Configure
local_IPandlocal_port. -
Debug Logs: Add the following to your
configuration.yaml:logger: default: warning logs: custom_components.marstek: debug
This integration is licensed under the MIT License.
Good luck & have fun! π