Try moving the magnet closer to the main contact block, the gap should be no more than 8mm. Sometimes packaging may be required for uPVC doors and windows, to bring the contacts and magnets closer together.

Ensure the red LED comes on when you break the magnetic contacts.