Each commissioned button generates three events for the Programming tab in Composer:
| Event | Name | Description |
|---|---|---|
| Press | SWITCH_N_PRESS | Fired on a short press (quick tap) |
| Long Start | SWITCH_N_LONG_START | Fired when a long press begins (first hold event) |
| Long End | SWITCH_N_LONG_END | Fired when a long press ends (button released after hold) |
Where N is the 1-based button number (e.g. SWITCH_1_PRESS, SWITCH_2_LONG_START).
Short Press Behaviour
A short press fires:
SWITCH_N_PRESSeventDO_PUSH+DO_CLICKto the BUTTON_LINK binding
Long Press Behaviour
A long press fires:
SWITCH_N_LONG_STARTon the first hold eventDO_PUSHon every repeated hold event (for continuous actions like dim stepping)SWITCH_N_LONG_ENDwhen no new hold events arrive within 500msDO_RELEASEto the BUTTON_LINK binding on release
Comments
0 comments
Article is closed for comments.