Skip to content

Actions

Actions define hardware button responses on the CC2 device (Left Button, Right Button, Double Press, Long Press).

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
{
"trigger": "BTN_RIGHT_SHORT",
"action": "gotoPage",
"target": "page_details",
}