Can you use wire than battery powered?

It runs on four 1.5V batteries, providing a total of 6V power. There's no option for wired power, as running a cable over the door would risk damage every time the door is opened.