With a lot of help from Viktor I tinkered with an Eco Plug that I got from Home Depot for $7.50ish. I can turn it off and on using voice commands on Alexa. This has an esp8266 wireless board in it that we loaded with some code to make it look like a WeMo to Alexa.
The wires were soldered on temporarily so I could connect a USB FTDI from my PC. There wasn’t enough room inside the plug to leave the wires on so I ended up removing them.
Arduino IDE was used to upload to the esp8266. A tutorial for how to work with this is here.
I wanted a way to control my Smart Home devices inside the house if I had no Internet connection. I have a mix of Wemo and Kankun plugs right now that I’m using to control various lamps and my outdoor light.
I built a small web page on my Raspberry Pi with buttons for each device. I need to do a lot of cleanup to get the buttons lined up but what I used for the Wemo devices had a lot of padding around each image that was used. The small red light indicates the switch is on, on the Driveway button no light indicates it is off.
Below is an image from the Wemo pages that I replaced with the buttons shown above.
For Wemo’s I used the instructions found here. I had a fair amount of trouble getting this working correctly because of permission issues. First it wouldn’t build the database because of a missing line at the top of wemo_backend.py not sure if I deleted that or if it was just missing but I added “#!/usr/bin/python” and that ran. Then I had to create the logfile in “/var/log/wemo/switchlog”.