Dominevo
ReferenceHTTP API

doorbell

The doorbell router: 1 method of the doorbell capability, with tier, scope, input and output.

Capability doorbell · scope device · mode singleton · source packages/types/src/capabilities/doorbell.cap.ts:74.

Every method is called at /trpc/doorbell.<method> — queries with GET, mutations with POST. See How to call and Authorization. Device methods take deviceId in their input.

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes

doorbell.getStatus

  • Kind: query — GET /trpc/doorbell.getStatus (added by the framework)
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability doorbell, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=doorbell.getStatus on your hub

Input

{ deviceId: number }

Output

DoorbellStatusSchema

Shapes: DoorbellStatusSchema

On this page