Making an ON/OFF switch for WeMo Switch with Arduino+Ethernet shield

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:

  1. Arduino uno
  2. Arduino ethernet shield
  3. ON-OFF Switch
  4. 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)