Dominevo
ReferenceHTTP API

vacuumControl

The vacuumControl router: 7 methods of the vacuum-control capability, with tier, scope, input and output.

Capability vacuum-control · scope device · mode singleton · source packages/types/src/capabilities/vacuum-control.cap.ts:62.

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

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes
startmutationprotectedcreateyes
pausemutationprotectedcreateyes
stopmutationprotectedcreateyes
returnToBasemutationprotectedcreateyes
locatemutationprotectedcreateyes
setFanSpeedmutationprotectedcreateyes

vacuumControl.getStatus

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

Input

{ deviceId: number }

Output

VacuumControlStatusSchema

Shapes: VacuumControlStatusSchema

vacuumControl.start

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

Input

{ deviceId: number }

Output

void

vacuumControl.pause

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

Input

{ deviceId: number }

Output

void

vacuumControl.stop

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

Input

{ deviceId: number }

Output

void

vacuumControl.returnToBase

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

Input

{ deviceId: number }

Output

void

vacuumControl.locate

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

Input

{ deviceId: number }

Output

void

vacuumControl.setFanSpeed

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

Input

{ deviceId: number; speed: string }

Output

void