Description Usage Arguments Examples
Toggle light
1 | lx_toggle(duration = 0, selector = "all", token = lx_get_token())
|
duration |
in seconds, how long to perform the transition |
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 |
1 2 3 4 5 | ## Not run:
lx_toggle(duration = 5)
lx_toggle(selector = lx_selector(location = "kitchen"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.