I have several smart plugs that capture usage and from that I have an automation to check the value and send notifications if the usage is too high (compressor frozen or door left open) or low (power loss). I’m getting consistent false positives where the device isnt running as often. In looking at the data, a 2 hour reset would fix this false positive.
Is there a way to do a reset at an interval between 1 and 24 hours?
there is an action/service to either reset or recalibrate a utility meter helper. Go to dev tools > actions and search for ‘utility meter’. IIRC, reset has some quirks, so its better to ‘calibrate’ and set the value to ‘0’.
If you created the helper from the UI you have the option for every 15 minutes and also for hourly reset cycles. If you create the utility meter in YAML you can use CRON-style intervals and so options are fairly unlimited. Of course, you can reset it with an automation too.
I do question why you’re looking at the energy usage though. Can’t you just create an alert if the power stays above a certain value for a certain period of time? That would be the simplest way to achieve your goal.