#Simple For energy anomaly detection

1 messages · Page 1 of 1 (latest)

hoary karma
#

One of the things HA is good for is detecting things going wrong. Could history be used to log how many times on X day change by 100 Watts (100 is an example) - and keep a counter based on the hour. The history stores lets say for 'Mon/Tues/Wed...' and Hour 0..23. (Saving kwh too!) This history is used to detect current electricity abnormalities. If the current counter is more than historically averaged, then set a Switch saying 'Possibly Bad Pattern' and the user can be alerted. This can detect an iron/hairdryers etc and even detect a fridge malfunctioning. It can be quite useful and simple. -could- (My examples are real). I have done a python/MQTT bits that can do logging (protototypes) but would be awesome if HA could do it

mossy willow
#

this is called outlier detection. There is not an easy way to do that directly in HA but you could write a python script to do it

hoary karma
#

I watch for Energy readings changing my 100Watts and then do a COUNTER[CURRENT_HOUR]++ for the current day. Using a reference from the week before and compare. 0% on the chart = SAME. -% is Less that reference and the numbers above are how much higher than ref. At midnight it will create a new reference for use the next week.

#

Every hour it resets (hence the graph going down -looks like sawtooth) - I done this so that I could add an automation that ignores certain hours (or even days). The aim was to detect devices that use periodic power (iron, fridge, something) increase their cycling and alert

hoary karma