I have had another think.
You must have had something to activate your previous device, what was this?
If you wish to active the solenoid when the light comes on, just connect to the light supply. If yoy wish to activate when either one of two filaments is energised, then you will need a...