Actions
Actions define hardware button responses on the CC2 device (Left Button, Right Button, Double Press, Long Press).
Supported action types
Section titled “Supported action types”| Action Code | Execution |
|---|---|
gotoPage |
Switches active screen to target InfoPage ID |
sendMqtt |
Publishes MQTT uplink payload to backend |
triggerAlert |
Triggers local buzzer or haptic vibration pattern |
toggleWidget |
Toggles visibility of target widget |
Example configuration
Section titled “Example configuration”{ "trigger": "BTN_RIGHT_SHORT", "action": "gotoPage", "target": "page_details",}