So the master RPi needs to send the ON command on a periodic basis to restart the timer.
If the RPi doesn't receive an ACK for the ON command in say 30 Seks, it cuts the power supply for the valves (hence they close).