Dominevo
ReferenceHTTP API

automationControl

The automationControl router: 4 methods of the automation-control capability, with tier, scope, input and output.

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

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

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes
enablemutationadminadmin onlyno
disablemutationadminadmin onlyno
triggermutationadminadmin onlyno

automationControl.getStatus

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

Input

{ deviceId: number }

Output

AutomationControlStatusSchema

Shapes: AutomationControlStatusSchema

automationControl.enable

  • Kind: mutation — POST /trpc/automationControl.enable
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=automationControl.enable on your hub

Input

{ deviceId: number }

Output

void

automationControl.disable

  • Kind: mutation — POST /trpc/automationControl.disable
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=automationControl.disable on your hub

Input

{ deviceId: number }

Output

void

automationControl.trigger

  • Kind: mutation — POST /trpc/automationControl.trigger
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=automationControl.trigger on your hub

Input

{ deviceId: number; skipCondition?: boolean }

Output

void