What does this switch activate?

You sure it's factory? Does it open or close when activated, and "what" is the pedal doing that is up down, in between?

There used to be "a fad" to have rear lights like some buses in cities.......Regular stop lights, but green when driver was accelerating, and yellow when foot off throttle / coasting.