Troubleshoot

Disconnect power at the panel and verify with a meter before wiring.

What's it doing?