Press the red button for 1 second, then plug the power back into the cat flap.
Lock the cat flap and let your cat in and out on demand.