Help with 24 hour power usage

Similar to the approach of storing the value in an input_number field, you could use MQTT to store values and template sensors to show the cumulative values. I’ve got hourly, daily and monthly usage being show this way. This was my inspiration…