Text this: Predictive residential energy management with photovoltaic power generation and battery energy storage