View Source HueSDK.API.Rules (HueSDK v0.1.1)
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
@spec create_rule(HueSDK.Bridge.t(), map()) :: HueSDK.HTTP.response()
Creates a new rule in the bridge rule engine.
@spec delete_rule(HueSDK.Bridge.t(), String.t()) :: HueSDK.HTTP.response()
Deletes the specified rule from the bridge.
@spec get_all_rules(HueSDK.Bridge.t()) :: HueSDK.HTTP.response()
Gets a list of all rules that are in the bridge.
@spec 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.
@spec update_rule(HueSDK.Bridge.t(), String.t(), map()) :: HueSDK.HTTP.response()
Updates a rule in the bridge rule engine.