lx_effect_flame {lifx} | R Documentation |
"Flame" effect
Description
"Flame" effect
Usage
lx_effect_flame(
period = 5,
duration = 10^10,
power_on = TRUE,
fast = FALSE,
selector = "all",
token = lx_get_token()
)
Arguments
period |
This controls how quickly the flame runs. It is measured in seconds. A lower number means the animation is faster |
duration |
How long the animation lasts for in seconds. Not specifying a duration makes the animation never stop. Specifying 0 makes the animation stop. Note that there is a known bug where the tile remains in the animation once it has completed if duration is nonzero. |
power_on |
if TRUE (default), switch any selected device that is off to on before performing the effect. |
fast |
Executes the query fast, without initial state checks and wait for no results. See https://api.developer.lifx.com/docs/set-state |
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_flame(period = 2, duration = 3)
## End(Not run)