On this project I use an arduino uno with ethernet shield to control a Wemo Switch with a On-Off switch.
For this project you need:
- Arduino uno
- Arduino ethernet shield
- ON-OFF Switch
- 10k Ohm Resistor
Arduino controls the wemo device over local network. When the status of the hardware switch changes, the arduino sends a SOAP call to the Wemo device to change the power status.
Here is the code for the Arduino:
(You need to change the wemoIP and wemoPort variables with ip/port of the wemo device)