Learn R Programming

PhilipsHue (version 1.0.0)

rules: Hue API: rules endpoints

Description

Hue API: rules endpoints

Usage

create_rule(name, conditions, actions)

get_rules()

get_rule(id)

set_rule_attributes(id, name, conditions, actions)

delete_rule(id)

Arguments

name

name to assign to the rule

conditions

a list of conditions (e.g. the result of a call to condition() )

actions

a list of actions (e.g. the result of a call to action() )

id

ID of a specific rule

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/6-rules-api/