powered by
Turn effects off
lx_effect_off(power_off = FALSE, selector = "all", token = lx_get_token())
If TRUE, also turns the light(s) 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
lx_selector
API token (see ?lx_save_token). If left empty, the token is retrieved from the environmental variable if available. (see lx_save_token)
lx_save_token
an 'httr' response object (see response)
response
# NOT RUN { lx_effect_off() # }
Run the code above in your browser using DataLab