Struct philipshue::hue::LightCommand [] [src]

pub struct LightCommand {
    pub on: Option<bool>,
    pub bri: Option<u8>,
    pub hue: Option<u16>,
    pub sat: Option<u8>,
    pub xy: Option<(f32, f32)>,
    pub ct: Option<u16>,
    pub alert: Option<String>,
    pub effect: Option<String>,
    pub bri_inc: Option<i16>,
    pub sat_inc: Option<i16>,
    pub hue_inc: Option<i16>,
    pub ct_inc: Option<i16>,
    pub xy_inc: Option<(i16, i16)>,
}

Struct for building a command that will be sent to the Hue bridge telling it what to do with a light

View the lights-api documention for more information

Fields

Whether to turn the light off or on

Brightness of the colour of the light

The hue of the colour of the light

The saturation of the colour of the light

The x and y coordinates of a colour in CIE space

The Mired Color temperature of the light. 2012 connected lights are capable of 153 (6500K) to 500 (2000K).

The dynamic effect of the light. It can be either "none" or "colorloop"

If "colorloop", the light will cycle hues

Has to be a value between -254 and 254. Increments or decrements the value of the brightness.

Has to be a value between -254 and 254. Increments or decrements the value of the saturation.

Has to be a value between -65534 and 65534. Increments or decrements the value of the hue.

Has to be a value between -65534 and 65534. Increments or decrements the value of the colour temperature.

Increments or decrements the value of the xy.

Methods

impl LightCommand
[src]

Returns a LightCommand that turns a light on

Returns a LightCommand that turns a light on

Sets the brightness to set the light to

Sets the hue to set the light to

Sets the saturation to set the light to

Sets the xy colour coordinates to set the light to

Sets the temperature to set the light to

Sets the alert mode to set the light to

Sets the effect mode to set the light to

Sets the brightness increment value

Sets the hue increment value

Sets the saturation increment value

Sets the saturation increment value

Sets the x and y increment value

Trait Implementations

impl Debug for LightCommand
[src]

Formats the value using the given formatter.

impl Default for LightCommand
[src]

Returns the "default value" for a type. Read more

impl Clone for LightCommand
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more