Hue API: rules endpoints

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.