Allocate water usage via plug status

I have a Flume sensor integrated to HA. I also have my irrigation managed by Rachio (also integrated). I will have my dishwasher and laundry machine on smart switches by the end of the week (plugs being shipped).

My hope is that I can use the status of various devices and the flow meter in tandem to allocate water usage by device. When the sprinklers are on the water flow is for irrigation, when the dishwasher is on, that flow is allocated to that device (ditto for the washing machine).

I understand the challenges with devices being run concurrently, but that is a bridge to cross later. Also, the residual usage might be much bigger than the monitored, but this is also something I can refine over time.

I did a bunch of searching in this community and googled the web but have been unable to find any examples. Does anyone have suggestions?

I am pretty new to this stuff but I am enjoying the learning.

Thanks in advance…