Introduction: Control WeMo Switch With Arduino+Ethernet Shield

Picture of Control WeMo Switch With Arduino+Ethernet Shield

There are many apps that let you control your Belkin WeMo devices, but there is no a hardware switch panel like the Hue Tap for Philips hue.

So I build one with an Arduino!

Step 1: Materials

Picture of Materials

For this project you need:

  • An Arduino board. I use the Arduino UNO but you can use any board that is compatible with Ethernet shield.
  • Arduino Ethernet shield. You need the ethernet shield to connect the arduino to the local network.
  • On/Off switch
  • 10k Ohm Resistor
  • Arduino Proto Shield + mini breadboard
  • wires
  • also use a card box as a case for the project

Step 2: Schematic

Picture of Schematic

Step 3: Code

Load the code to the arduino.

On the code you need to set the IP address an the port of your Wemo device (variables wemoIP and wemoPort):

char wemoIP[ ] = ""; //set the IP of your WeMo device

int wemoPort = 49153; //set the port of your device


DavidF15 (author)2017-09-04


I found as some info on the discovery and communication protocols used by the Wemo stuff. They use uPnP and SOAP. If you want to see what the switch advertises it can do, try

DavidF15 (author)DavidF152017-09-04

Grrr -- point your browser to the wemoipaddress:port/setup.xml file for its capabilities.

aramperez (author)2017-04-01

Nice and simple project! Note that you can eliminate the resistor, connect the other pin on the switch to ground (instead of 5V) and in your code use "pinMode(inPin, INPUT_PULLUP);"

MiguelM58 made it! (author)2015-11-06

Thank you a lot! . I used a ESP8266, I changed the Ethernet library for the ESP Wifi library and It worked flawlessly.

SamH135 (author)MiguelM582016-05-06

Could you post your sketch for this?

Terence Trouds made it! (author)2016-03-28

Merci pour ce projet ! cela fonctionne parfaitement, il suffit de préciser l'adresse IP du Switch Wemo, l'adresse MAC du shield Ethernet et un inter avec résistance de tirage sur une entrée de l'arduino et hop ! la réactivité du switch est très satisfaisante.

miffi1234 (author)2015-12-10

Hi, thank you for your projet. I like it!

As far as i know, there could be a problem adressing the WeMo-Switch, even if you set (in DHCP) a constant IP Address, ports will change (port 49152-49155).
Is there a way to always address the right port?

About This Instructable




More by gtrigonakis:Control Denon AVR with Arduino+Ethernet shield Control WeMo Switch with Arduino+Ethernet shield
Add instructable to: