With the SharpTools Tasker plugins being sunset when SmartThings shuts down Groovy in September, you might consider switching to HTTP Actions in Tasker.
You could either do it directly with the SmartThings REST API or using HTTP Triggers with SharpTools.io Rule Engine.