Not Logged In

ouimeaux 0.4.3

ouimeaux is a Python interface to Belkin WeMo devices. It uses gevent
for async I/O and requests for communication with the devices. It also
provides a minimal command-line interface for discovery and switch toggling.

Currently supported devices include Motions, Switches and Light Switches.

By default, ouimeaux subscribes to property change events on discovered
devices (this can be disabled by passing with_subscribers=False to the
Environment constructor). You can register callbacks that will be called
when switches and motions change state (on/off, or motion detected):

By default, device results are cached on the filesystem for quicker
initialization. This can be disabled by passing with_cache=False to the
Environment constructor. On a related note, if you want to use the cache
exclusively, you can pass with_discovery=False to the Environment
constructor to disable M-SEARCH requests.

You can clear the device cache either by deleting the file ~/.wemo/cache
or by using the wemo clear command.

ouimeaux requires gevent version 1.0rc2 or higher. If you don’t have the
ability to compile gevent and greenlet (a sub-dependency) locally, you can
find and download the binary installers for these packages here: