Change light state relative to current state (wrapper for POST state delta
lx_delta(
hue = NULL,
saturation = NULL,
brightness = NULL,
kelvin = NULL,
infrared = NULL,
duration = 0,
power = NULL,
selector = "all",
token = lx_get_token()
)
set the hue (0-255)
set the saturation (0-1)
set the brightness (0-1)
set the color temperature. limits depend on the specific lamp; limits are likely in the range of 2500-9000
infrared brightness (0-1)
in seconds, how long to perform the transition
string - if set to "on", turns the light on, if set to "off" turns it off.
'LIFX' api "selector" such as "all", "id:12345", or "location:kitchen". Can be created with lx_selector
or written manually (see https://api.developer.lifx.com/docs/selectors
API token (see ?lx_save_token). If left empty, the token is retrieved from the environmental variable if available. (see lx_save_token
)
an 'httr' response object (see response
)