NAME

WebService::Belkin::Wemo::Device - Device class for controlling Wemo Switches =head1 SYNOPSIS

Sample Usage:

my $wemo = WebService::Belkin::WeMo::Device->new(ip => '192.168.2.126', db => '/tmp/belkin.db');

OR

my $wemo = WebService::Belkin::WeMo::Device->new(name => 'Desk Lamp', db => '/tmp/belkin.db');

print "Name = " . $wemo->getFriendlyName() . "\n"; print "On/Off = " . $wemo->isSwitchOn() . "\n";

print "Turning off...\n"; $wemo->off();

print "Turning on...\n"; $wemo->on();

DESCRIPTION

The Belkin WeMo Switch lets you turn electronic devices on or off from anywhere inside--or outside--your home. The WeMo Switch uses your existing home Wi-Fi network to provide wireless control of TVs, lamps, stereos, and more. This library allows basic control of the switches (turning on/off and getting device info) through UPNP

METHODS

* getFriendlyName - Get the name of the switch
* isSwitchOn - Returns true (1) or false (0)
* on - Turn switch on
* off - Turn switch off
* toggle - Toggle switch on/off

AUTHOR

Eric Blue <ericblue76@gmail.com> - http://eric-blue.com

COPYRIGHT

Copyright (c) 2013 Eric Blue. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.