LED on and off indicator for solenoid
simulate this circuit &ndash; Schematic created using CircuitLab


SW2 indexes the solenoid.
D3 lights when SW1 is open.
When SW1 is closed the forward voltage drop of D1 will be lower than the combined forward voltage drop of D4 and D3 so D1 should light and D3 turn off.


If D3 is still glowing when it should be off then add another diode in series in the D3, D4 branch.