I saw the posts recently on demandshaper and was playing around, and by chance I came across this project:
It is a very intelligent demand shaper that manages car charging, house batteries, solar excess & variable electricity tariffs. All opensource and supports
openevse out of the box as well as many, many inverters & electricity meters.
Might be worth seeing if emoncms could be integrated to it too ?