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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.