http://www.technobots.co.uk/acatalog/Sh ... A_670.html

Simply replace the motor in the drawing with your valve solenoid.

That's assuming you can buy this switch from the new site.