Skip to content

niciqy/wemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeMo Device API

Some code snippets coppied from https://github.com/ballantyne/wemo and https://github.com/bobbrodie/siriproxy-wemo

Rewritten to use playful because simple_upnp wasn't working for me.

Usage

require 'wemo'

# Find all WeMo light switches on your network
#
switches = WeMo.light_switches

# Pick one you'd like to work with
#
basement_floods = switches.find {|s| s.name == "Basement Floods" }

# Find out if it's on of off
#
basement_floods.status
# => true

# Turn it off
#
basement_floods.off

# Get an outlet instead
#
outlets = WeMo.outlets.first

# Get all WeMo devices on the network
#
WeMo.all

Pull requests welcome 😄

About

Ruby WeMo Device API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages