HueSDK.API.Rules (HueSDK v0.1.0) View Source
Interface to the Rules API
See the official documentation for more information.
Link to this section Summary
Functions
Creates a new rule in the bridge rule engine.
Deletes the specified rule from the bridge.
Gets a list of all rules that are in the bridge.
Returns a rule object with id matching <id> or an error if <id> is not available.
Updates a rule in the bridge rule engine.
Link to this section Functions
Specs
create_rule(HueSDK.Bridge.t(), map()) :: HueSDK.HTTP.response()
Creates a new rule in the bridge rule engine.
Specs
delete_rule(HueSDK.Bridge.t(), String.t()) :: HueSDK.HTTP.response()
Deletes the specified rule from the bridge.
Specs
get_all_rules(HueSDK.Bridge.t()) :: HueSDK.HTTP.response()
Gets a list of all rules that are in the bridge.
Specs
get_rule_attributes(HueSDK.Bridge.t(), String.t()) :: HueSDK.HTTP.response()
Returns a rule object with id matching <id> or an error if <id> is not available.
Specs
update_rule(HueSDK.Bridge.t(), String.t(), map()) :: HueSDK.HTTP.response()
Updates a rule in the bridge rule engine.