2 wires are for 24v and the other 2 wires are for a signal usually 0- 10 v or 4 -20 ma
to drive the valve open or closed, unless the valve has a spring return. the valves with the switch in them i think is used for sprinkler tamper valves