ReferenceHTTP API
alarmPanel
The alarmPanel router: 4 methods of the alarm-panel capability, with tier, scope, input and output.
Capability alarm-panel · scope device · mode singleton · source packages/types/src/capabilities/alarm-panel.cap.ts:69.
Every method is called at /trpc/alarmPanel.<method> — queries with GET, mutations with POST. See How to call and Authorization. Device methods take deviceId in their input.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getStatus | query | protected | view | yes |
trigger | mutation | protected | create | yes |
disarm | mutation | protected | create | yes |
arm | mutation | protected | create | yes |
alarmPanel.getStatus
- Kind: query —
GET /trpc/alarmPanel.getStatus(added by the framework) - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityalarm-panel, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=alarmPanel.getStatuson your hub
Input
{ deviceId: number }Output
AlarmPanelStatusSchemaShapes: AlarmPanelStatusSchema
alarmPanel.trigger
- Kind: mutation —
POST /trpc/alarmPanel.trigger - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityalarm-panel, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=alarmPanel.triggeron your hub
Input
{ deviceId: number }Output
voidalarmPanel.disarm
- Kind: mutation —
POST /trpc/alarmPanel.disarm - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityalarm-panel, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=alarmPanel.disarmon your hub
Input
{ deviceId: number; code?: string }Output
voidalarmPanel.arm
- Kind: mutation —
POST /trpc/alarmPanel.arm - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityalarm-panel, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=alarmPanel.armon your hub
Input
{ deviceId: number; mode: AlarmArmModeSchema; code?: string }Output
voidShapes: AlarmArmModeSchema