Welcome to ECN,
The lower picture showing the lighting contactor does not make good viewing, a pool
area should really have non-metallic, weather-proof enclosures.
If that is what is in that enclosure,I would
also check the enclosure to the left of it too.