Here is one link: SmartThings Rest API using Tasker. This tells you how to use Tasker to interact directly with your devices. Obviously, you’ll need the Tasker app. After you have the Tasker app, you can download all of Jake’s Profiles and Tasks for Tasker. You run the database builder (I think that’s what it is) to get a list of all your devices. Then you can use the other tasks to interact with the devices (e.g., to issue an open command to your garage door).
Here is a link to my post & the replies in the Tasker Google Group: https://groups.google.com/g/tasker/c/UEsgyLhP8d8/m/4-V24_F3AAAJ?pli=1. This discusses the concept of how to use Tasker, AutoLocation, and Geofences.
My Tasker Task is below. I deleted some of the action items that I no longer use, but you should be able to get the idea from this how when I entered my geofence I issue a command to SharpTools to open the door (I haven’t modified this yet to issue the command directly to the SmartThings API, so I’m just showing this to set forth the logic). By the way, I loop the command to open because sometimes it doesn’t work the first time.
A1: Notify [
Title: Opening Garage Door 1 Car
Number: 0
Permanent: On
Priority: 3
LED Rate: 0 ]
A5: Variable Set [
Name: %attempts
To: 0 ]
<LoopStart>
A6: Variable Add [
Name: %attempts
Value: 1
Wrap Around: 0 ]
<Open Garage Door RCB -- THIS IS WHERE YOU'D PUT THE SMARTTHINGS API COMMAND FROM JAKE'S TASKS>
A7: HTTP Request [
Method: GET
URL: https://trigger.sharptools.io/rule/xxxxxxx
Timeout (Seconds): 30
Structure Output (JSON, etc): On
Continue Task After Error:On ]
<Using multiple attempts to ensure opening>
A12: Goto [
Type: Action Label
Label: LoopStart ]
If [ %attempts < 5 ]
<Waiting to Unlock Kitchen Door After Garage Door Opens -- I ALSO UNLOCK MY KITCHEN DOOR WHEN I GET HOME>
A22: Wait [
MS: 0
Seconds: 1
Minutes: 0
Hours: 0
Days: 0 ]
<Unlock Kitchen Door -- YOU COULD DO THIS DIRECTLY WITH JAKE'S TASKS>
A23: HTTP Request [
Method: GET
URL: https://trigger.sharptools.io/rule/xxxxxxxxx
Timeout (Seconds): 30
Structure Output (JSON, etc): On
Continue Task After Error:On ]
A27: Notify Cancel [
Title: Opening Garage Door 1 Car ]
<Turn it off so it doesn't fire again>
A36: Profile Status [
Name: Garage Door Open 1 Car
Set: Off ]