pulse: pulse

Description Usage Arguments Value

Description

pulse a color for a defined period

Usage

1
2
3
pulse(color, from_color = current_color(selector)[[1]], period = 5,
  cycles = 1, persist = FALSE, duty_cycle = 0.5, selector = "all",
  power_on = TRUE)

Arguments

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)

Value

httr response object


cboettig/lifxr documentation built on May 13, 2019, 2:08 p.m.