AC Powered Wifi Motion Sensor

This is how I did this. You could do something similar or the same (if you have a spare S26)