Plug this in to a smart switch. Maybe one of these https://www.lowes.com/pd/Iris-120-Volt-White-Smart-Plug/999925330
The only devices I’ve heard of to measure water flow is