Hmmm…
Assuming you have an iOS 12 device, I would approach this completely differently, and use Siri shortcuts with webcore.
@GRClark Was doing something with shortcuts and smartthings… but there are a lot of options.
You might also ask in the webcore forum:
https://community.smartthings.com/t/introducing-the-new-webcore-community-forum/96259