Efficiency mode keeps swapping and probing when all batteries are empty (saturation swap loop)
What's the issue?
Version: 2.5.0 (Python/standalone, b9057d4a00a9), CT002 emulation, ACTIVE_CONTROL = True
Setup: Two Marstek Venus E batteries (HMG-50 on phase A, VNSE3-0 on phase C), efficiency mode enabled:
MIN_EFFICIENT_DISCHARGE_POWER = 600 MIN_EFFICIENT_CHARGE_POWER = 1200
Everything else is at the defaults (rotation 900 s, EFFICIENCY_SATURATION_THRESHOLD = 0.4).
What happens: Once both batteries reach their discharge floor (empty) while the house still imports, the running battery's saturation goes to 1.00. AstraMeter swaps to the standby battery and probes it, but that one is empty too. The probe times out after 90 s, the original battery is restored, and about 60 s later the cycle starts again. It repeated every ~2.5 min (~24 times an hour) for about 20 hours, until there was charge again:
14:56:56 Efficiency:
In total that was about 480 swaps in each direction and about 1,950 log lines in one night, with no successful probe.
Expected: A saturation swap only helps if there's a battery with room in the needed direction. When the standby battery is saturated too (or was just probed and timed out), AstraMeter should stop swapping. It could resume when something changes, such as the demand direction or a battery reporting output again, or at least back off longer after a failed probe.
Impact: No energy is lost, since neither battery can deliver anyway. The cost is log spam and constant probe targets sent to empty batteries. It also hides real saturation events in the logs.
Version
2.5.0
Installation method
Python
If "Other", which?
No response
Configuration
# AstraMeter CT 110. Meter readings enabled; two Venus E batteries paired.
# CT002 is restricted to Venus E 2.0 (10.0.0.68) and Venus E 3.0 (10.0.0.70); active control coordinates both.
[GENERAL]
DEVICE_TYPE = ct002
DEVICE_IDS = astrameter-ct110
SKIP_POWERMETER_TEST = False
ENABLE_WEB_SERVER = True
WEB_SERVER_PORT = 52500
DASHBOARD_ENABLED = True
WEB_CONFIG_ENABLED = True
DASHBOARD_ALLOW_WRITE = True
DASHBOARD_ALLOWED_HOSTS = astrameter.lan
[JSON_HTTP]
URL = http://10.0.0.66/v1/json
JSON_PATHS = $.powerPhase1,$.powerPhase2,$.powerPhase3
POWER_MULTIPLIER = 1
[CT002]
UDP_PORT = 12345
ACTIVE_CONTROL = True
# Efficiency mode (2026-11-02, AstraMeter 2.5.0): one Venus covers loads up to ~1.4 kW discharge / ~2.9 kW charge,
# rotating every 900 s; the idle one is the standby reserve. Both batteries are limited to 2500 W in the Marstek app.
MIN_EFFICIENT_DISCHARGE_POWER = 600
MIN_EFFICIENT_CHARGE_POWER = 1200
CLOUD_REPORTING = False
CT_MAC = 02b250d698e2
[MARSTEK]
ENABLE = False
[MQTT_INSIGHTS]
BROKER = homeass.lan
PORT = 1883
USERNAME = astrameter
PASSWORD = <redacted>
BASE_TOPIC = astrameter
HA_DISCOVERY = true
HA_DISCOVERY_PREFIX = homeassistant
MARSTEK_MQTT_ENABLED = false
STATE_THROTTLE_INTERVAL = 5
Logs
...
14:56:56 Efficiency: <bat-C> cannot follow target (sat=1.00), rotating to <bat-A>
14:56:56 Efficiency: probing consumer <bat-A> with backups ['<bat-C>'] until 90.0s
14:58:26 Efficiency: probe rejected for <bat-A> (timeout before meaningful output), restoring backups ['<bat-C>']
14:59:27 Efficiency: <bat-C> cannot follow target (sat=1.00), rotating to <bat-A>
14:59:27 Efficiency: probing consumer <bat-A> with backups ['<bat-C>'] until 90.0s
15:00:57 Efficiency: probe rejected for <bat-A> (timeout before meaningful output), restoring backups ['<bat-C>']
...