Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Overview

Represents a Light on the network.

As a sub-class of Device, it inherits everything from that interface, as well as providing convenience methods for interacting with Lights.

API

on()

Usage

...

Parameters

None.

Returns

Return TypeDescription


Examples

...

off()

Usage

...

Parameters

None.

Returns

Return TypeDescription


Examples

...

readLevel()

Usage

...

Parameters

None.

Returns

Return TypeDescription


Examples

...

moveToLevel(int levelPercentage)

Usage

...

Parameters

NameTypeDescription
levelPercentageint

Returns

Return TypeDescription


Examples

...

moveToLevel(int levelPercentage, int transitionTime)

Usage

...

Parameters

NameTypeDescription
levelPercentageint
transitionTimeint

Returns

Return TypeDescription


Examples

...

getDeviceType()

Usage

...

Parameters

None.

Returns

Return TypeDescription


Examples

...
  • No labels