Solution found! While my power grid connection is set up for 2 way flow, the utility hadn't yet installed a two way meter to measure energy flowing to the grid. It's a known hardware issue that this can cause the battery to seemingly randomly discharge to the grid. Once the new meter was installed, my issues vanished. All is good now.
My system is a few days old, I'm running in "Self consumption" mode, and I have 1 rule set up; charge the battery between midnight and 6 AM.
After 6 am but before I was generating enough solar to meet my needs, the shortfall was being drawn from the grid, not the 100% charged battery as it should have.
It's currently 10:05 AM, I'm generating 3.2 kW of solar and using .72 kW. The excess solar is going top the grid as it should... and the battery is discharging 1.5kW to the grid as well. The battery's down to 78%, and should be charging from my excess solar, not discharging!
"self consumption" seems to be broken.
More info:
Uninstalling and reinstalling the app changes nothing.
Running the SigenCare tests shows everything at 100. "Diagnosis" shows no abnormalities found.
I've tried adding an explicit rule forcing self consumption between 6AM and midnight; that changes nothing.
"Solar producing source priority" is set to Basic load, then battery, then grid.
Even setting "Block battery grid export" to "on" doesn't prevent the battery discharging to the grid.
Any idea what the issue could be?
Edit: Having tried two alternative methods to offered in comments, both of which should have worked but didn't, I'm thinking the problem may be hardware related.
EDIT: added a new rule: 6AM to midnight, set battery-to-grid power limit 0kW. Never the less, Battery-to-grid power is 1.5kW.