There is micro switch inside the valve which closes when the valve opens,(connected to grey and orange) and is used to switch on boiler and pump.....The brown is used to open the valve.....a separate permanant live is connected to the grey and the orange is connected to the pump/boiler.