scenes: Hue API: scenes endpoints

Description Usage Arguments Value See Also

Description

Hue API: scenes endpoints

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
create_scene(name, lights, recycle = TRUE, transitiontime = 4,
  return_id = FALSE)

get_scenes()

get_scene(id)

set_scene_attributes(id, ...)

set_scene_lightstate(scene_id, light_id, ...)

delete_scene(id)

Arguments

name

name to assign to the scene

lights

vector of light IDs included in the scene

recycle

logical indicating whether the scene can be automatically deleted by the bridge

transitiontime

duration (in milliseconds) of the scene transition

return_id

when creating a new resource, the default is to return TRUE (invisibly) upon success; setting return_id = TRUE will return the ID of the newly created resource instead.

id, scene_id

id of a specific scene

...

named parameters describing scene attributes or light state (e.g. name = 'foo'; on = TRUE)

light_id

id of a specific light in the scene

Value

Requests with side effects return TRUE (invisibly) upon success. GET requests return the response content, parsed into a list.

See Also

https://developers.meethue.com/documentation/scenes-api


fascinatingfingers/PhilipsHue documentation built on Nov. 25, 2019, 2:22 a.m.