NAME

Device::Osram::Lightify::Light - The interface to a single light

DESCRIPTION

This module allows basic operation of an Osram lightify bulb.

The objects are not expected to be constructed manually, instead they are discovered dynmically via communication with the hub.

SYNOPSIS

use Device::Osram::Lightify;

my $tmp = Device::Osram::Lightify::Hub->new( host => "1.2.3.4" );

# Show all nodes we found
foreach my $light ( $tmp->lights() ) {
   print "Found light " . $light->name() . "\n";
}

DESCRIPTION

This module allows basic control of an Osram Lightify bulb.

METHODS

new

Create a new light-object.

This is invoked by Hub:lights() method, which will read a binary string containing all the details of the light - we must then parse it according to Device::Osram::Lightify::API.