Electrical Questions? Ask an Electrician Online.
Hi, I'm Mike G and I'll be assisting you. I suggest NB opening the box and checking the wire connections. You may find a loose termination. If it is connected with the pushback connections, remove the wires and use the screw terminations.
The pilot may only need power but that is independent from the operation of the switch. You need to start somewhere, check the terminations.
Do you have a 2 wire voltage tester? To continue troubleshooting you'll need one.
Might want to try putting the line and load wires together to make sure the light will work. If it does, the switch is bad. If it doesn't you have another issue. Good luck.