Current on/off detector

You could integrate those pulses in software, or you could do that search.

As I’m feeling reasonably philanthropic, look here: Problem with current sensor, or me! - #13 by Mike789