Control Devices
If you want to use SharpTools.io Rule HTTP Triggers to control devices in SmartThings, here’s a brief summary.
-
Create a rule in SharpTools and add an HTTP Trigger (Event → HTTP).
Note: You can optionally define a parameter here if you want to send data/variables from Tasker.
-
Add desired conditions/actions to your Rule Flow
Note: You can use the parameters that were passed in from Tasker (defined in the first step) by tapping the</>
button next to a parameter, then when prompted to select a variable, tap the Context Variables tab → Event → HTTP Event → Parameters
-
Copy the HTTP trigger URL to your clipboard and save the rule
You can tap the copy icon in the HTTP trigger to copy it to your clipboard. You can always visit SharpTools.io from your phone and reopen the rule to more easily copy the HTTP Trigger URL. -
Update your Tasker Task to use an HTTP Request which calls the HTTP Trigger URL
You can find the action in Tasker under Net → HTTP Request. The default ‘GET’ method is fine, so all we need to do is fill in out URL and optionally add our Query Parameters.Note that the Query Parameters field in tasker is in the form
parameter:value
where parameter is the name of the parameter to send to the HTTP Trigger.
I’ve kept this example intentionally simple, but of course you can take advantage of the full suite of features in the SharpTools Rule Engine once you’ve triggered an HTTP task. Some examples:
- Pass in a device identifier as a parameter and then use conditions to determine which device to send actions to.
- Use conditions to determine what type of action to take within the rule (eg. if the value is above a threshold, turn the humidifier on, otherwise send a notification)
- Store values into SharpTools variables for display in dashboards or as triggers/conditions in other rules. For example, you might compare a passed in parameter or variable against a device’s state within your rule before determining what action to take.
- Use notifications with Email, Pushbullet, Pushover, SMS and more.
- Interact with SmartThings and other platforms like Hubitat or Home Assistant
- Run SmartThings Scenes with our next gen integration
- And more! Let me know if you have specific questions!
Push Events to Phone
You can also use the SharpTools.io Rule Engine to send push events to your phone (using Pushbullet, Pushover, or Tasker Plugins like Join) and react to those in your Tasker profiles.
-
Create a Rule in SharpTools that triggers based on whatever device changes you are interested in
-
In the Flow, use your desired push service to push the message to your device
For example, you could use Action → Notification → PushoverIn my example, I’m using Context Variables to get the name of the device for the Title of the message and the value of the triggering device to pass to Tasker.
Pushover has some nice features where you can access the value of the title / message through
%pushovertitle
and%pushovermessage
variables in Tasker. -
In Tasker, create a profile using your desired push service’s plugin
From here, you can setup your Tasker profiles however you like. Using the Pushover example from above, we have access to the device name in the%pushovertitle
variable and the device value in the%pushovermessage
variable. You could of course change what data you include in the title and message and adapt to your use case as needed.