Can you share some more details about how you have things setup?
It sounds like you’re probably using a virtual switch along with an automation in the SmartThings mobile app to connect it to STHM. Does the automation only work when the switch gets flipped on and does nothing when the switch gets flipped off?
It feels a bit redundant, but you could map the status of the switch to a true/false variable (for display purposes only). Variable tiles have the ability to change their click Action (Tap) to Open Hyperlink which opens up a cool option… you can use a special $.runRule("XXXX")
hyperlink syntax to run a rule that only ever sends the ‘on’ command -or- conditionally sends the on command only when the switch is off (or variable is false).