Dominevo
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.

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes
triggermutationprotectedcreateyes
disarmmutationprotectedcreateyes
armmutationprotectedcreateyes

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: view on capability alarm-panel, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=alarmPanel.getStatus on your hub

Input

{ deviceId: number }

Output

AlarmPanelStatusSchema

Shapes: AlarmPanelStatusSchema

alarmPanel.trigger

  • Kind: mutation — POST /trpc/alarmPanel.trigger
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability alarm-panel, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=alarmPanel.trigger on your hub

Input

{ deviceId: number }

Output

void

alarmPanel.disarm

  • Kind: mutation — POST /trpc/alarmPanel.disarm
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability alarm-panel, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=alarmPanel.disarm on your hub

Input

{ deviceId: number; code?: string }

Output

void

alarmPanel.arm

  • Kind: mutation — POST /trpc/alarmPanel.arm
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability alarm-panel, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=alarmPanel.arm on your hub

Input

{ deviceId: number; mode: AlarmArmModeSchema; code?: string }

Output

void

Shapes: AlarmArmModeSchema