Some energy suppliers pay a bonus on exported solar: an extra share of the market price during part of the day, often up to a yearly cap. Examples are NextEnergy (+50 %, 06:00-22:00, 6,000 kWh) and Zonneplan (+10 %, sunrise to sunset, 7,500 kWh).
This subflow runs once a day on a Victron GX (or any Node-RED with access to the VRM API):
- reads this year's export from VRM and projects the year total
- works out the bonus that will really be paid under the cap
- warns you, also as a GX notification, when export heads past the cap
- optionally writes the Dynamic ESS sell price in VRM as a schedule: normal price outside the bonus window, price plus bonus inside it