ILightController Class
Interface for Light Controllers
This interface is used to represent light controllers
Item Index
Methods
setPowerOn
()
Turn on power
setPowerOff
()
Turn off power
isPowered
()
Boolean
Get power state
Returns:
Boolean:
true if powered, false otherwise
setBrightness
(
-
percent
Set brightness
Parameters:
-
percent
Numberbrightness as percentage
getBrightness
()
Number
Get brightness
Returns:
Number:
brightness as percentage
setPowerOn
()
Turn on power
setPowerOff
()
Turn off power
isPowered
()
Boolean
Get power state
Returns:
Boolean:
true if powered, false otherwise
setBrightness
(
-
percent
Set brightness
Parameters:
-
percent
Numberbrightness as percentage
getBrightness
()
Number
Get brightness
Returns:
Number:
brightness as percentage