Class LightProperties
java.lang.Object
org.openremote.agent.protocol.tradfri.device.DeviceProperties
org.openremote.agent.protocol.tradfri.device.LightProperties
The class that contains the properties of an IKEA TRÃ…DFRI light
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the brightness of the lightGet the colour of the light in hexadecimalsGet the colour temperature of the lightGet the X value of the colour of the lightGet the Y value of the colour of the lightgetHue()Get the hue of the lightgetOn()Get the on state of the lightGet the saturation of the lightGet the transition time for updating the lightvoidsetBrightness(Integer brightness) Set the brightness of the light within the LightProperties class
Note: This does not change the actual lightvoidsetColourHex(String colourHex) Set the colour of the light to a predefined hexadecimal colour within the LightProperties class
Note: This does not change the actual light Available colours:
RGB:org.openremote.agent.protocol.tradfri.util.ColourHexColour temperatures:org.openremote.agent.protocol.tradfri.util.ColourTemperatureHexvoidsetColourTemperature(Integer colourTemperature) Set the colour temperature of the light within the LightProperties class
Note: This does not change the actual lightvoidsetColourX(Integer colourX) Set the X value of the colour of the light within the LightProperties class
Note: This does not change the actual lightvoidsetColourY(Integer colourY) Set the Y value of the colour of the light within the LightProperties class
Note: This does not change the actual lightvoidSet the hue of the light within the LightProperties class
Note: This does not change the actual lightvoidSet the on state of the light within the LightProperties class
Note: This does not change the actual lightvoidsetSaturation(Integer saturation) Set the saturation of the light within the LightProperties class
Note: This does not change the actual lightvoidsetTransitionTime(Integer transitionTime) Set the transition time for updating the light within the LightProperties class
Note: This does not change the actual lightMethods inherited from class org.openremote.agent.protocol.tradfri.device.DeviceProperties
getInstanceId, setInstanceId
-
Constructor Details
-
LightProperties
public LightProperties()Construct the LightProperties class
-
-
Method Details
-
getOn
Get the on state of the light- Returns:
- The on state of the light (true for on, false for off)
-
getBrightness
Get the brightness of the light- Returns:
- The brightness of the light
-
getColourHex
Get the colour of the light in hexadecimals- Returns:
- The colour of the light in hexadecimals
-
getHue
Get the hue of the light- Returns:
- The hue of the light
-
getSaturation
Get the saturation of the light- Returns:
- The saturation of the light
-
getColourX
Get the X value of the colour of the light- Returns:
- The X value of the colour of the light
-
getColourY
Get the Y value of the colour of the light- Returns:
- The Y value of the colour of the light
-
getColourTemperature
Get the colour temperature of the light- Returns:
- The colour temperature of the light
-
getTransitionTime
Get the transition time for updating the light- Returns:
- The transition time for updating the light
-
setOn
Set the on state of the light within the LightProperties class
Note: This does not change the actual light- Parameters:
on- The new on state for the light (true for on, false for off)
-
setBrightness
Set the brightness of the light within the LightProperties class
Note: This does not change the actual light- Parameters:
brightness- The new brightness for the light
-
setColourHex
Set the colour of the light to a predefined hexadecimal colour within the LightProperties class
Note: This does not change the actual light Available colours:
- RGB:
org.openremote.agent.protocol.tradfri.util.ColourHex - Colour temperatures:
org.openremote.agent.protocol.tradfri.util.ColourTemperatureHex
- Parameters:
colourHex- The new colour for the light
- RGB:
-
setHue
Set the hue of the light within the LightProperties class
Note: This does not change the actual light- Parameters:
hue- The new hue for the light
-
setSaturation
Set the saturation of the light within the LightProperties class
Note: This does not change the actual light- Parameters:
saturation- The new saturation for the light
-
setColourX
Set the X value of the colour of the light within the LightProperties class
Note: This does not change the actual light- Parameters:
colourX- The X value of the new colour for the light
-
setColourY
Set the Y value of the colour of the light within the LightProperties class
Note: This does not change the actual light- Parameters:
colourY- The Y value of the new colour for the light
-
setColourTemperature
Set the colour temperature of the light within the LightProperties class
Note: This does not change the actual light- Parameters:
colourTemperature- The new colour temperature for the light
-
setTransitionTime
Set the transition time for updating the light within the LightProperties class
Note: This does not change the actual light- Parameters:
transitionTime- The new transition time for updating the light
-