Text this: Micro-grid energy optimisation with demand management