Controlling house heating etc from electricity and weather forecast?

@ulfwin you might be interested in this: Control a water heater and ground source heat pump based on cheap hours of spot priced electricity