I recently needed to create some buttons on my wife’s AT panel for manually overriding irrigation schedules and such. Basically she wanted some push-buttons, which would immediately run the drippers on specific circuits for a couple of minutes and then shut off again.
I tried a few DTH’s I found in the forums, unfortunately none of them seemed to be what I was after. Some trial and error (and a helpful nudge from @tgauchat thanks), I tweaked the existing ‘Simulated Button’ DTH so it works both from within the ST Classic app and when you authorize it to ActionTiles.
Really wasn’t much that needed to be changed, AT looks for the Momentary capability, so that was added. Second the endpoint in the original DTH was for some reason called ‘push1’, changed that to ‘push’, which is the one AT will execute.
Note: the hold endpoint does not appear to be supported by AT as of now, yet that’s IMHO something you would only use on a physical button anyway. In AT you would just create another tile button I suppose.
Anyway if you need something similar, here’s the McGyver’ed DTH: