Skip to content
Python API to Belkin WeMo devices
Branch: develop
Clone or download
iancmcc Merge pull request #187 from gst/add_py36
Add Python3.6 in travis
Latest commit 89f3d05 Jan 13, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
ouimeaux Fix: gevent API change Nov 28, 2018
.travis.yml Add Python3.6 in travis Jan 13, 2019
AUTHORS.rst Update authors and changelog Mar 19, 2015
CONTRIBUTING.rst Remove extra README file Jul 16, 2017
LICENSE Updated packaging to include Sphinx, travis, tox Jan 25, 2014 Remove extra README file Jul 16, 2017
setup.cfg Remove svn tag Mar 19, 2015 Merge pull request #150 from scottsuine/feature/CORS Nov 11, 2017


Open source control for Belkin WeMo devices


  • Supports WeMo Switch, Light Switch, Insight Switch and Motion
  • Command-line tool to discover and control devices in your environment
  • REST API to obtain information and perform actions on devices
  • Simple responsive Web app provides device control on mobile
  • Python API to interact with device at a low level

About this fork

The original repository can be found here:

It doesn't appear to be maintained and it doesn't work with modern Python packages.

It has been forked here so that I can include my modifications to requirements.txt as well as document how to use it.


$ sudo pip install virtualenv
$ mkdir ouimeaux-env
$ virtualenv ouimeaux-env
$ source ouimeaux-env/bin/activate
$ cd ouimeaux-env
$ pip install git+

At this point you should be able to use wemo and wemo server so long as you've activated your environment with source ouimeaux-env/bin/activate.

Note: Ensure that the pip and virtualenv command you use belongs to a Python 2 installation. On some systems, there are multiple versions of Python installed. See below for an example from my Fedora system.

$ /bin/ls -1 "$(dirname $(which python))/virtualenv"{,-2} "$(dirname $(which python))/p"{ython,ip}[23]

$ pip --version
pip 9.0.1 from /usr/lib/python3.5/site-packages (python 3.5)

$ pip2 --version
pip 9.0.1 from /usr/lib/python2.7/site-packages (python 2.7)


Using a VPN

The wemo command won't be able to communicate with your devices if you're connected to a VPN. It may be redirecting UDP traffic somewhere else. Disconnect from the VPN and the tool should work.

Open an issue and I'll try to help.

You can’t perform that action at this time.