Description Usage Arguments Value
pulse a color for a defined period
1 2 3 |
color |
a string describing the desired color; see examples. |
from_color |
Same syntax as color, defaults to current color (of first bulb in selection) |
period |
time in seconds for the cycle to take place |
cycles |
number of cycles to perform |
persist |
should the color persist after the effect? default is FALSE (returns to original color) |
duty_cycle |
Ratio of the period where color is active. Only used for pulse. Defaults to 0.5. Range: 0-1 |
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. |
power_on |
should the light be powered on if it is off? (FALSE just leaves light off) |
httr response object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.