lx_effect_breathe {lifx} | R Documentation |
"Breathe" effect
Description
"Breathe" effect
Usage
lx_effect_breathe(
color,
from_color = NULL,
period = 1,
cycles = 1,
persist = FALSE,
power_on = TRUE,
peak = 0.5,
selector = "all",
token = lx_get_token()
)
Arguments
color |
color The color to use for the breathe effect. use lx_color() as input |
from_color |
The color to start the effect from. If this parameter is omitted then the color the bulb is currently set to is used instead. |
period |
The time in seconds for one cycle of the effect. |
cycles |
The number of times to repeat the effect. |
persist |
boolean; If FALSE set the light back to its previous value when effect ends, if true leave the last effect color. |
power_on |
If FALSE, does not turn light on if it is off |
peak |
Defines where in a period the target color is at its maximum. Minimum 0.0, maximum 1.0. |
selector |
'LIFX' api "selector" such as "all", "id:12345", or "location:kitchen". Can be created with |
token |
API token (see ?lx_save_token). If left empty, the token is retrieved from the environmental variable if available. (see |
Value
an 'httr' response object (see response
)
Examples
## Not run:
lx_effect_breathe(color = "red",from_color = "blue",period = 3,cycles = 5,power_on = TRUE)
## End(Not run)