Files
goodwe-addon/goodwe_controller/DECISIONS/TARIFF-30-per-unit-efficiency.md
T
Claude (dev) 4a8939cd24
infra-pin / fresh (pull_request) Successful in 3s
checks / unit (pull_request) Failing after 1h13m9s
TARIFF-30: pin export during a trade (TARIFF-35), tight one-cycle bound, DECISIONS note
Co-Authored-By: Claude <noreply@anthropic.com>
2026-12-06 19:03:12 +01:00

1017 B

TARIFF-30: per-unit round-trip efficiency

round_trip_eff (optional, 0.5 to 1, per inverter entry) prices a unit's buy leg at price / eta. Not set: nothing changes. The discharge split is unchanged (the discharge order is TARIFF-34).

Known limit: export during a trade (TARIFF-35)

While a grid charge is on, the buy is sized to the units whose own leg clears (T1, ruled). The trade's claim fixes the site target, so a solar surplus above that size is exported, where without an efficiency the trade is sized for every unit and the other unit soaks it. PM ruling 2026-12-06: the sizing stays; TARIFF-35 files the fix. The row F4 in test_tariff30.py pins today's behaviour so a fix shows up.

The wind-down hold

A unit whose leg failed is held at 0 W charge while the site trades, and for the trade's tail: until the site target is 0 or above, until the meter exports (the loop is then soaking a surplus, not finishing the trade), or 120 s. The release is seen one 5 s cycle after the export starts.