Volume Button
Starts when a volume button is pressed, held, or pressed several times. Needs accessibility access; the buttons keep working normally.
A trigger in the Device State group.
Its type is trigger.volume_button.
Declared ports
Section titled “Declared ports”| Port | Label | Flow | Type |
|---|---|---|---|
out |
out | execution out | — |
state |
State | data out | Object{event: String, detail: String, timestamp: DateTime} |
Configuration
Section titled “Configuration”| Field | Key | Default | Notes |
|---|---|---|---|
| Button | key |
VOLUME_DOWN |
VOLUME_UP, VOLUME_DOWN |
| Gesture | gesture |
SEQUENCE |
PRESS, LONG_PRESS, SEQUENCE |
| Hold for at least (ms) | holdMs |
800 |
shown when gesture is LONG_PRESS |
| Number of presses | presses |
3 |
shown when gesture is SEQUENCE |
| Within (ms) | windowMs |
2000 |
shown when gesture is SEQUENCE |
- accessibility access
A missing permission is flagged in the editor rather than blocking the macro — the graph is fine, the phone is not, and granting it starts the node working with no edit here at all.