Méthode |
Description |
|
__construct ( integer $id, stdClass $attributes, Client $client ) |
Construct a Phue Light object |
|
__toString ( ) : string |
__toString |
|
getAlert ( ) : string |
Get alert |
|
getBrightness ( ) : integer |
Get brightness |
|
getColorMode ( ) : string |
Get color mode of light |
|
getColorTemp ( ) : integer |
Get Color temperature |
|
getEffect ( ) : string |
Get effect mode |
|
getHue ( ) : integer |
Get hue |
|
getId ( ) : integer |
Get light Id |
|
getModel ( ) : AbstractLightModel |
Get model |
|
getModelId ( ) : string |
Get model Id |
|
getName ( ) : string |
Get assigned name of light |
|
getRGB ( ) : array |
Get calculated RGB |
|
getSaturation ( ) : integer |
Get saturation |
|
getSoftwareVersion ( ) : string |
Get software version |
|
getType ( ) : string |
Get type |
|
getUniqueId ( ) : string |
Get unique id |
|
getXY ( ) : array |
Get XY |
|
isOn ( ) : boolean |
Is the light on? |
|
isReachable ( ) : boolean |
Get whether or not the bulb is reachable. |
|
setAlert ( string $mode = SetLightState::ALERT_LONG_SELECT ) : self |
Set light alert |
|
setBrightness ( integer $level = SetLightState::BRIGHTNESS_MAX ) : self |
Set brightness |
|
setColorTemp ( integer $value ) : self |
Set Color temperature |
|
setEffect ( string $mode = SetLightState::EFFECT_NONE ) : self |
Set effect |
|
setHue ( integer $value ) : self |
Set hue |
|
setName ( string $name ) : self |
Set name of light |
|
setOn ( boolean $flag = true ) : self |
Set light on/off |
|
setRGB ( integer $red, integer $green, integer $blue ) : self |
Set XY and brightness calculated from RGB |
|
setSaturation ( integer $value ) : self |
Set saturation |
|
setXY ( float $x, float $y ) : self |
Set XY |
|