Description Usage Arguments Details Value Examples
set lifx color
1 |
color |
a string describing the desired color; see examples. |
selector |
a string in format '[type]:[value]', where type can be 'all', 'id', 'label', 'group', 'group_id', 'location', 'location_id', 'scene_id', and value is what you want to target. The default is 'all', which needs no value argument. |
duration |
the length of the effect |
power_on |
should the light be powered on if it is off? (FALSE just leaves light off) |
Note that the kelvin temperature ranges from 2700 to 8000. Hue in HSB list is a number between 0 and 360, whereas saturation and brightness should be between 0 and 1.
httr response object
1 2 3 4 5 6 7 8 9 | ## Not run:
color("green", "label:desk") # deep green, brightness untouched on lights labeled 'desk'
color("blue brightness:100%") # deep blue, maximum brightness
color("hsb:0,1,1") # deep red, maximum brightness
color("random") # random hue, maximum saturation, brightness untouched
color("kelvin:2700") # warm white, brightness untouched
color("saturation:100%") # set maximum saturation
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.