tomquist/AstraMeter 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 GNU General Public License v3.0 许可证,目前获得 400 个 Star、71 次 Fork。
仓库全名
tomquist/AstraMeter
README 摘要
AstraMeter Formerly known as b2500-meter. We renamed the project because it supports the full range of Marstek storage systems (B2500, Jupiter, Venus, …), not just the B2500. AstraMeter emulates Smart Meter devices for Marstek storage systems such as the B2500, Jupiter, and Venus. You can feed it from almost any real smart meter. Your storage system sees a meter it understands, while AstraMeter reads your actual…
This project emulates Smart Meter devices for Marstek storages such as the B2500, Marstek Jupiter and Marstek Venus energy storage system while allowing integration with almost any smart meters.
Formerly known as b2500-meter. We renamed the project because it supports
the full range of Marstek storage systems (B2500, Jupiter, Venus, …), not just
the B2500.
AstraMeter emulates Smart Meter devices for Marstek storage systems such as the
B2500, Jupiter, and Venus. You can feed it from almost any real smart meter.
Your storage system sees a meter it understands, while AstraMeter reads your
actual grid power from a source you choose and steers the batteries toward
net-zero grid exchange.
Continuously monitors and controls a B2500 over Bluetooth using a small ESP32 board
It does this by emulating one or more of these devices:
CT002 / CT003 (Marstek’s native CT protocol) — recommended. AstraMeter
gives each storage device its own target and shares the load between them.
Shelly Pro 3EM — uses port 1010 (B2500 firmware up to v224) and port 2220
(B2500 firmware v226+). To pick one port, use shellypro3em_old (1010) or
shellypro3em_new (2220).
The easiest way to start is the
config generator. This
beginner-friendly tool asks a few questions about your power meter and writes a
ready-to-use config.ini (Home Assistant add-on / Docker / direct install) or
ESPHome YAML, explaining each option as you go. It runs entirely in your
browser — nothing is uploaded — and you can save, share, and reload your
answers.
Installation
You can install and run AstraMeter in several ways:
Once AstraMeter is running, switch your Marstek battery to “Self-Adaptation”
mode to turn on the powermeter functionality. On an ESP32, first add the board
in the Marstek app like a real CT, over Bluetooth: see
Add the board to the Marstek app.
Supported power meter sources
AstraMeter reads your real grid power from many kinds of source. For the
config.ini settings of each one, see
docs/powermeters.md. For the ESPHome external
component, see docs/esphome-powermeters.md.
Supported sources include: Shelly, Tasmota, Shrdzm, Emlog, ioBroker, Home
Assistant, VZLogger, ESPHome (Http-Polling or native API), AMIS Reader, Modbus (TCP/UDP), MQTT, JSON HTTP, TQ
Energy Manager, HomeWizard, Enphase Envoy, SMA Energy Meter, Marstek CT002 /
CT003, FRITZ!Smart Energy 250, Fronius Smart Meter, Refoss / Meross energy monitors, Tibber Pulse, Script,
and SML.
Configuration
You configure AstraMeter in a config.ini file, or in ESPHome YAML on an ESP32.
Start with the config generator,
then read the reference docs as needed:
Configuration reference — general options, value
transformation, the PID controller, and running multiple powermeters.
CT002 / CT003 steering — the CT emulator, active control,
peak shaving, multi-battery balancing, battery power limits, efficiency
optimization, and Marstek cloud registration.
Live status dashboard — the built-in web UI. It shows
live grid and per-battery state, and lets you edit your configuration in the
browser. It is on by default in the Home Assistant add-on and in Docker or
standalone runs, and an ESP32 can serve it too.
The bundled simulator (astra-sim) mimics N batteries
speaking the CT002 UDP protocol and serves a powermeter endpoint. You can run
the full emulator and balancer end-to-end without any real devices.
Help & reference
FAQ & troubleshooting — setup problems, firmware
requirements, oscillation/yo-yo fixes, and more.
B2500 minimum output — the lowest power a
B2500 delivers, depending on the inverter selected in the Marstek app.
评论