I used the api to set:
[64] AC Charge 1 Start Time = "00:30"
[65] AC Charge 1 End Time = "04:30"
[77] AC Charge Upper % Limit = 30
[17] Enable AC Charge Upper % Limit = true
[66] AC Charge Enable = true
I also left [24] Enable Eco Mode = true.
As expected, the battery topped-up from the grid so that it was at 30% at the end of the charging period.
However, I've noticed today that when demand exceeds solar generation it's resulting in grid import. Meanwhile, the battery is being charged when solar generation exceeds demand.
I assume I have changed a setting inadvertently, but I can't determine which one. Any ideas please?
Also, is there a clear explanation anywhere of the effect/purpose of API-accessible settings?

