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
Examples
off()
Usage
...
Parameters
None.
Returns
Examples
readLevel()
Usage
...
Parameters
None.
Returns
Examples
moveToLevel(int levelPercentage)
Usage
...
Parameters
Name | Type | Description |
---|
levelPercentage | int |
|
Returns
Examples
moveToLevel(int levelPercentage, int transitionTime)
Usage
...
Parameters
Name | Type | Description |
---|
levelPercentage | int |
|
transitionTime | int |
|
Returns
Examples
getDeviceType()
Usage
...
Parameters
None.
Returns
Examples