there is a github.com/paruff/ project Sources: PV Grid Storage: battery Thermal battery, the house Consumers: EV Factors: Weather - sainlogic HEMS