It is quite feasible to do with a contact free arrangement so therefore no mains intrusion, and an Arduino.
Advantage of the Arduino is it can be put to sleep and draw very little current until it is woken up, obviously by a change of state of the detector.
The detector will naturally draw some...