Hey @tslagle13, three years later I shamelessly ripped off your code and modified it to add a couple of features. Namely, to not get a lot of alerts since my pump tends to run for days after it starts running. Anyhow, your old code was exactly the start I was looking for. That and I have two of them to monitor
I used the Zooz Power Switch / Zooz Smart Plug (ZEN15). The DTH is here: Zooz DTH. This allows for “acceleration” to be the inrush of current / watts instead of physical vibration.
I can’t promise there aren’t any bugs but it seems to alert when wanted.