Text this: Optimization of electricity costs in residential heat supply systems