So I put together something simple to automatically shut the water off when a leak is detected. The valve works in a simple manner: The yellow/green wire is tied to Neutral. If the brown wire receive ...