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