KWH over time monitor/trigger/alert

I have two use cases where i’d like to be able to program a “look back” of how much energy an outlet is using in KWH over a short period of time and alert or trigger it to go off based on breaking those rules. I can’t accomplish this using the out of the box energy saver / watt reading since power will spike up and down over the time. I’ve searched and haven’t found anything yet. I’m willing to learn core and write it but don’t want to reinvent the wheel.

Two example uses:

  1. I have small, 600w, sealed oil space heaters that use about 0.1 KWH in 60 mins when the built in thermostat is properly set. However, if a kid messes with the thermostat, then it can run at 600w constantly, using ~0.6 KWHs in 60 minutes. So, i’d like to have an automation where when the heater outlet is on, every 60 minutes check if KWH reported by outlet has increased by more than 0.2 in last 60 minutes, and if so, disable outlet or send alert (or both).

  2. We have a downstairs freezer and refrigerator. In lieu of a temp sensor or pressure switch to detect a door open or malfunction, the amount of power those devices use is very consistent (doors are infrequently opened). So, say these average again 0.1 KWH in 60 minutes with the compressor coming on an off, i’d have a check for if outlet is on, alert if KWH use in last 60 minutes exceeds 0.15 KWH.

sympathies - Have you tried reasoning with the kid, just give him a chance to act responsibly … ok just kidding. He won’t get it until he pays the bill. In the old days you could beat some understanding into them

webCore sounds like the right approach - your algorithm is not too complicated. I have looked around 1-2 years ago and I didn’t find anything close. Now my approach is to monitor a 2day live chart, so I do not use webcore for KWH logging. . webCore forums will help write it, really sounds like 5-6 lines tops.

I think you may also consider temperature alarm. You want it low, the kid or whoever sets it high, there is probably a higher-than-normal-temperature at which you could guess the Tstat was tampered, and then high-temperature-alarm can notify you. I’d prefer a plug-in that also included a built-in KWH meter that you could confirm remotely (e.g. Zooz Zen15).

I have a few temperature alarms in classicPhoneApp/ SmartHomeMonitor/ Custom/ NewRule/ temp/ etc. They notify me.

1 Like

Tweak as needed.

1 Like