I’ve got a dashboard widget that gives us our energy usage for a range of appliances aroudn the house. I’ve just got each on a smart switch running tasmota which communicates to HA via mqtt.
Generally it all seems to be working pretty well. I’m wondering what it would look like to add another sensor derived from the “yesterday” energy use data, but taking a single value from each day for the past 30 days (perhaps also last 365?) and calculating the average across that duration. I’ve tried to write this out but my facility with HA math operations / stats is a “growth area”. Wondering if anyone else has already done this and can share how they approached it?
Extra bonus points for anyone who has figured out how to calc energy use per cycle (I’ve got a binary sensor that turns on/off when the appliance goes above/below a given kw threshold).