hd-trigger
Starts a flow or sets a mood when tapped, and shows how it went: its phase attribute is idle, running, done or failed, so the template can style each moment. It also plays the motion kit on itself: a pop when it worked, a shake when it failed (reduced motion fades, e-ink shows nothing). Its content is whatever the template puts inside.
| Attribute | What it is |
|---|---|
actionrequired | What a tap does.One of flow, mood. |
targetrequired | The id of the flow or mood. |
label | Accessible name, e.g. “Start Goodnight”. |
confirm | A question to ask first, e.g. “Run Leaving home?”. |
disabled | Shown but not tappable, e.g. a flow disabled in Homey. |
<hd-trigger action="flow" target="{{ settings.flow.id }}" label="Start Goodnight" confirm="Start Goodnight?"> Goodnight</hd-trigger>