For testing purposes, after turning off the circuit breaker for the pool light, connect the two black wires from the back of the box together, then turn the breaker back on. If the light works, then it's the Pentair controller switch; otherwise it's a different problem.