LightWaveRF - Integration with LightWaveRF modules
use LightWaveRF; my $lw = new LightWaveRF; $lw->register('D1', 'R1', "LivingRoom"); $lw->on('LivingRoom');
Provides an interface to LightWaveRF modules via the LightWaveRF Wifi Link.
my $lf = new LightWaveRF; Instantiates a LightWaveRF object ready to register devices against.
$lw->register(<NODE ID>, <DEVICE ID>, <NAME>); $lw->register('R1', 'LivingRoomLight');
$lw->on('LivingRoomLight'); # $lw->send_device_status('LivingRoomlight', 'F1');
$lw->on('LivingRoomLight'); # $lw->send_device_status('LivingRoomlight', 'F0');
$lw->send_device_status('LivingRoomlight', 'F1');
returns the current wattage from the power meter
This module is very much under development and not really production ready yet and there is lots of functinality still to be added to it. Patches welcome git repo is at https://github.com/grim8634/LightWaveRF.git
To install LightWaveRF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LightWaveRF
CPAN shell
perl -MCPAN -e shell install LightWaveRF
For more information on module installation, please visit the detailed CPAN module installation guide.