The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

LightWaveRF - Integration with LightWaveRF modules

SYNOPSIS

 use LightWaveRF;
 my $lw = new LightWaveRF;
 $lw->register('D1', 'R1', "LivingRoom");
 $lw->on('LivingRoom');
 

DESCRIPTION

Provides an interface to LightWaveRF modules via the LightWaveRF Wifi Link.

Methods

new

        my $lf = new LightWaveRF;

    Instantiates a LightWaveRF object ready to register devices against.

register

        $lw->register(<NODE ID>, <DEVICE ID>, <NAME>);
        $lw->register('R1', 'LivingRoomLight');

on

        $lw->on('LivingRoomLight'); # $lw->send_device_status('LivingRoomlight', 'F1');

off

        $lw->on('LivingRoomLight'); # $lw->send_device_status('LivingRoomlight', 'F0');

send_device_status

        $lw->send_device_status('LivingRoomlight', 'F1');

get_kwh

returns the current wattage from the power meter

AUTHOR Graeme Lawton <graeme@per.ly>

Development

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