Auto shut off water valve

The easiest way is to create a virtual switch and set auto off 5S in the virtual switch driver page.
Bind the virtual switch with your Iris switch with RM or with switch binding app.

Now set the virtual switch to turn ON in your HSM water alert.