Skip to content
/ wemo Public

Simple Python class for Belkin WeMo device. Uses Miranda for UPnP.

Notifications You must be signed in to change notification settings

snosrap/wemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WeMo

wemo.py contains a simple Python class for the Belkin WeMo device. It uses Miranda for UPnP.

Files

  • wemo.py - The main class, supports turning the outlet on/off as well as changing the device's name. Running python wemo.py lists WeMos on the network along with their binaryState (on/off).
  • miranda.py - A slightly modified version of the miranda client.

Sample Usage

$ python
>>> from wemo import *
>>> 
>>> wemos = search()
>>> for wemo in wemos:
...     print wemo.binaryState, "\t", wemo.friendlyName
... 
True 	Master Bedroom
False 	Kitchen
True 	Staircase
>>> 
>>> w = wemos[0]
>>> w.binaryState = False
>>> w.binaryState = True
>>> w.binaryState = not w.binaryState
>>> 

About

Simple Python class for Belkin WeMo device. Uses Miranda for UPnP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages