Unfortunately the lamps switches are not by my bedside. Since most people usually pass out scrolling through the phone, I decided to create an app and hooked it to my bedroom lights. Now turn your lights and fans off with the with the app. No more Mr Bean style :).
Please find the GitHub link. I've already made a nice read-me there. Cheers :)