Learn R Programming

PhilipsHue (version 1.0.0)

scenes: Hue API: scenes endpoints

Description

Hue API: scenes endpoints

Usage

create_scene(name, lights, recycle = TRUE, transitiontime = 4)

create_group_scene(name, group_id, recycle = TRUE, transitiontime = 4)

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

group_id

ID of group that scene belongs to

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 that create resources return the ID of the newly created item, requests with side effects return TRUE upon success, and GET requests return the response content, parsed into a list.

See Also

https://developers.meethue.com/develop/hue-api/4-scenes/