AgOpen pwm output and existing bang bang hydraulic valve

I believe you will find the middle pin is connected to the housing, 1 and 2 to the coil. Aka some resistance between 1 and 2 and no resistance the last one to the housing. Hopefully no connection from 1 or 2 to housing.

Thanks for that, ended up pulling a cable and checking. Third wire is in the harness but not connected; 1 +, 2 -