No no…stop thinking like a physical button.
Just a single throw DH that repeats ‘On’ when activated would work perfectly. Buttons are a crucial part of any iot ecosystem. So this must be possible. Without it, ST has lost some value.
You may need to create the handler yourself. Despite what you might hear, the Momentary capability works fine with the ‘new’ app to display a tile that fires the ‘push()’ command when pressed. So you could add a button or switch capability to that to give you an attribute you can work with.
The standard Momentary Button Tile handler might even do the job (that turns a switch attribute on and off) though you might need to run it in the Classic app first to initialise the switch state. The new app likes capability attributes to have values and the handler hasn’t been updated to initialise them.
I have my own custom DTH but haven’t really played with it enough to see if there are any deficiencies. However, if you are interested, it is this:
I tried the momentary button tile. Works great in the old app, just a blank tile in the new app.
Thanks for writing this DTH, I’m giving it a try.
It’s close to what I need. Basically I’m looking to replicate the ability to execute my “goodbye” and “I’m back” routines manually. There doesn’t appear to be any other way to do this in the new app. I’m finding that your button doesn’t respond when I push it in the app… it just spins and goes to “Checking status…”
That’s rather annoying. I can’t replicate that behaviour but that doesn’t mean a lot. I’ve added a ‘vid’ to the device handler to see if being told what to do helps the app out. It has the useful side effect of enabling the momentary action in the dashboard tile.