I purchased a Valbia water shutoff valve as discussed in this other thread. and am controlling it with a Phidgets 1018 8/8/8 controller, touched upon here.
Here are some install pics:
This is the complete install with the Valbia valve on the left and the water meter on the bottom. It was actually a pretty big project, and since I had hardly ever sweated pipe before, was a learning experience. It's a good thing my wife was out of town as I don't think she would've allowed me to cut the water main! Fortunately, there are no leaky joints.
This is a bypass design using lever-actuated ball valves (3), which I chose as I wanted to be certain that if there were any failures I could restore continuity to the house and be able to work on the system as needed. When all the levers are pointed down, water is flowing through the water meter and Valbia, and can be monitored and controlled. When all the levers are horizontal, water is bypassing the water meter and Valbia and flowing straight through the upper pipe.
This picture shows the position sensor hookup to the digital input side of the Phidgets device. Note the grounds (yellow and black) are twisted together and the digital inputs are separate. The inputs are at positions 0 and 1.
The digital outputs control which relay operates. The control wires are the red and green ones on the right of the relay (left), entering the Phidigets 8/8/8 device (right) on its lower left, position 0 and 1 (not Ground) so that the valve can be opened or closed. The three conductor wire is the control harness for the relay module itself, attached to position 0 of the Analog Inputs, seen at the upper right of the Phidgets device.
This pic of the transformer to relay to valve is a little confused, especially since the valve hookup is not shown! Hopefully I can add some explanation. It should be noted that thanks to Berkinet's advice, this is a 24v AC valve, which is easier to hook up and perhaps a little more idiot proof than the 12v DC valve I was initially interested in.
The circuit is as follows: one of the transformer leads goes straight to input 3 on the Valbia 's power control for the return circuit. The other transformer lead splits (see wire nut) and bridges the two relay inputs to provide power. The power wires from the relays then enter the Valbia and are connected to inputs 1 and 2, to control open and close. Both are N0, so power is only applied when actuated.
I created 4 devices using the Phidgets plugin, 2 to open and close, and 2 to sense the position of the valve. When the valve is opened or closed, the appropriate action is set to automatically switch off after 10 seconds.The Valbia has dry contacts to tell when the valve achieves open or closed, so it is true feedback. Once the devices are created, the valve is controllable from the iPhone via Indigo with active state feedback, and I intend to incorporate it into both my water sensor actions as well as vacation actions.
For now, I don't have the pulse sensing water meter working. Am hoping Berkinet will add this module to his great plugin.
Hope this is helpful for anyone who is looking at whole house water control. There are a lot of good solutions out there, but I thought that I'd have more flexibility and options by incorporating an industrial quality valve and a pulse sensing water meter with Phidgets. And anyway, getting the Phidgets thing going opens up more possibilities for future expansion....
edit: The water meter pulse counter is now working, using the 8/8/8 DIO board, not the Phidgets frequency counter. See link above to the Phidgets Plugin Discussion page. Looks like the frequency counter is unnecessary.