Dominevo
ReferenceHTTP API

lawnMowerControl

The lawnMowerControl router: 4 methods of the lawn-mower-control capability, with tier, scope, input and output.

Capability lawn-mower-control · scope device · mode singleton · source packages/types/src/capabilities/lawn-mower-control.cap.ts:49.

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

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes
startMowingmutationprotectedcreateyes
pausemutationprotectedcreateyes
dockmutationprotectedcreateyes

lawnMowerControl.getStatus

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

Input

{ deviceId: number }

Output

LawnMowerControlStatusSchema

Shapes: LawnMowerControlStatusSchema

lawnMowerControl.startMowing

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

Input

{ deviceId: number }

Output

void

lawnMowerControl.pause

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

Input

{ deviceId: number }

Output

void

lawnMowerControl.dock

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

Input

{ deviceId: number }

Output

void