Battery Priority Flag #9
Replies: 1 comment
-
|
Great analysis — and you're right that the old formula deliberately treats charging power as redirectable surplus (per-device SOC thresholds were meant as the guard, but that's clunky if you simply want "battery first, always"). Your approach is now built in: v1.11.0 adds a Battery priority toggle in the battery settings (Settings → Integrations → AURUM → Configure → Settings). On = only genuine grid export counts as surplus, exactly your formula. Off (default) keeps the legacy behaviour, so nothing changes for existing installs. Thanks for prototyping this — the release notes credit you. Feedback welcome once you've switched from your local patch to the built-in flag! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I added this maybe its useful to others
Battery Priority Flag — Correct Surplus Calculation
Problem: When batteries were charging (e.g. absorbing 2 kW of solar), AURUM was
reporting ~1700W of surplus for devices even though the grid meter showed 0W export.
The old formula treated battery charging power as "redirectable surplus":
This counted battery absorption as available for devices, which was wrong.
Correct behaviour: Surplus for solar devices should be what's actually being
exported to the grid. When batteries absorb all available solar, grid ≈ 0, so
surplus ≈ 0.
Fix: Added
battery_priorityboolean flag to AURUM config.New formula when
battery_priority: true(current setting):Batteries take priority. Only genuine grid export counts as surplus.
Legacy formula when
battery_priority: false:Battery charging is counted as redirectable surplus (old behaviour).
Files changed:
custom_components/aurum/const.py— addedCONF_BATTERY_PRIORITY = "battery_priority"custom_components/aurum/modules/energy.py— updated excess calculation logiccustom_components/aurum/config_flow.py— added Boolean toggle in Settings UI.storage/core.config_entries— setbattery_priority: truein AURUM optionsConfigure via UI: Settings → Integrations → AURUM → Configure → "Battery Priority" toggle.
Beta Was this translation helpful? Give feedback.
All reactions