For most application driving the solenoid valve we just apply the proper voltage to the coil. But we found the coil became very hot for continuous driving for a while.Here I had a solution to reduce the power consumption when it driving It worked like this,when the power DC24v apply it and the capacitor charging for large current and the coil same get the current and the valve activate, capacitor charging for a while the charging current reduced and the voltage across the coil devide by the resistor low down the power of the coil and the coil get only a little heat.
First step you should test the solenoid valve "holding"voltage and "inrush" voltage. Connect the solenoid valve and adjust the voltage from 0v to 24v and you should hear the activated noise "ka". For this example it about 20v, it means the voltage must be large than 20v the valve activate.(This we call holding voltage). And then turn the voltage from 24v to 0v, same as before you can hear another "ka" noise, it means de-activate (or released). For this example it about 3v.(This we call inrush voltage)