Phyn is a new smart water monitoring device that is installed directly onto the pipes to be able to detect possible leaks, and automatically shut off in case of a major catastrophe. I was a beta tester for this device last year and I believe they've gone official as of only a few months ago. It's a very cool device. You tell it all the kinds of water outlets you have in the house and it matches the flow rate to what it has stored in its system. For instance, it can recognize the flow pattern of a toilet flushing by time and water pressure. If a toilet flush deviates from normal by running continuously due to a faulty handle, it will send an alert. (it has done this for me twice) It works similarly with showers, dishwashers, washing machines, etc. It can also detect pinhole leaks.
It connects via WiFi, so I don't know what would be required for integration, but it might be worth reaching out to them!