Putting all the pieces together.
First test
After I made sure it worked, I hot glued every part onto a plastic cutout the same size as the lamp, so it would fit snuggly in the lamp.
Put everything back up behind the lamp, took a life insurance and flipped the switch.
I’m most pleased with the result