/wemocontrol

Discover, find the status of, and control your WeMo outlet device.

Primary LanguageGroovyApache License 2.0Apache-2.0

wemocontrol

WeMo API written in Groovy for controlling switches.

How to:

  1. Clone the repository (git clone https://github.com/brendonanderson/wemocontrol.git)
  2. cd wemocontrol
  3. Build the code (gradle build)
  4. Build the jar (gradle uberjar)
  5. cd build/libs
  6. Search for WeMo devices (java -jar wemocontrol.jar -d -i en1 -t 20000 where en1 is your network interface name)
  7. Turn on a device that was discovered (java -jar wemocontrol.jar -i en1 -e http://192.168.1.120:49153/setup.xml -n)
  8. Turn off a device that was discovered (java -jar wemocontrol.jar -i en1 -e http://192.168.1.120:49153/setup.xml -f)

See this blog post for details: http://www.objectpartners.com/2014/03/25/a-groovy-time-with-upnp-and-wemo/