A while back I purchased this remote control outlet kit from Amazon (Etekcity 3 Pack Wireless Remote Control Outlet with 1 Remote (Extra Battery included) Auto-programmable Function Socket…) I was wondering if you could hack the remote (or any similar kit) so that an Arduino ( or maybe a Raspberry Pi) could activate the buttons thus being able to turn the outlet receiver on and off. Then add a light sensor so that the system knows if its dark and also add some sort of receiver to it so you can keep a transmitter on your person and the lights (floor lamp connected to the outlet receiver) would turn on if it was dark enough and you were in range (getting home late in the evening) then have a time out period to turn the lights off if the transmitter is out of range for a period of time, kind of how newer cars can lock the doors automatically if the key fob is out of range for a period of time. Finally it would be great if you could keep some physical buttons on the device to over ride the automation in case you need the lights when the system still thinks is do bright.