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();
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
* 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
Eric Blue <ericblue76@gmail.com> - http://eric-blue.com
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.
To install WebService::Belkin::WeMo::Device, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Belkin::WeMo::Device
CPAN shell
perl -MCPAN -e shell install WebService::Belkin::WeMo::Device
For more information on module installation, please visit the detailed CPAN module installation guide.