Many earlier signals were Searchlight, which has of course made a reappearance with current, slightly different technology. These use a single light (so no hood/snow issues) and a mechanically-moving slide with red, yellow and green filters for the aspects. In the days of simple electrics, the connection from the signalbox was done with a single pair of wires for setting the aspect. The colour aspects, inside the signal, were mounted in a U-shaped slide, with red at the bottom, and yellow and green on each side. Positive polarity swung it one way, to the green. Negative polarity swung it the other way, to the yellow. No current and the weighted slide fell to the mid position and displayed red. Bulb power was provided by batteries, and a lot of the ones on open line were approach-lit to save current.
The LNER installed them quite extensively in the 1930s. The GWR did things differently (of course) and although they used searchlight units, they were just 2-aspect, replicating exactly what semaphore signals would show at night, with two units, well separated, mounted one on top of the other for stop signal over distant. Searchlights came from the USA where they were (and still are) very widespread, and the UK ones were initially imports and then produced by a licensee. Are there any mechanical ones still left? When did the last one go?
The ones on the GE main line lasted just into TPWS times, and the connection to this was done directly off the mechanical mechanism. Although the current polarity changed immediately, searchlights could take a few seconds to move the slide from one side to the other, yellow to green, passing the red briefly on the way, which GE drivers were just used to. But if the signal was just changing from yellow to green as the train passed, there was a second of red, and the train gets a TPWS trip. This was of course sorted out in short order, but one wonders if the original TPWS designers had any idea how they worked, or why they used the physical mechanism instead of the wiring.