Dominevo
ReferenceHTTP API

climateControl

The climateControl router: 9 methods of the climate-control capability, with tier, scope, input and output.

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

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

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes
setModemutationprotectedcreateyes
setTargetmutationprotectedcreateyes
setTargetRangemutationprotectedcreateyes
setTargetHumiditymutationprotectedcreateyes
setFanModemutationprotectedcreateyes
setPresetmutationprotectedcreateyes
setSwingVerticalmutationprotectedcreateyes
setSwingHorizontalmutationprotectedcreateyes

climateControl.getStatus

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

Input

{ deviceId: number }

Output

ClimateControlStatusSchema

Shapes: ClimateControlStatusSchema

climateControl.setMode

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

Input

{ deviceId: number; mode: HvacModeSchema }

Output

void

Shapes: HvacModeSchema

climateControl.setTarget

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

Input

{ deviceId: number; target: number }

Output

void

climateControl.setTargetRange

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

Input

{ deviceId: number; targetLow: number; targetHigh: number }

Output

void

climateControl.setTargetHumidity

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

Input

{ deviceId: number; targetHumidity: number }

Output

void

climateControl.setFanMode

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

Input

{ deviceId: number; fanMode: string }

Output

void

climateControl.setPreset

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

Input

{ deviceId: number; preset: string }

Output

void

climateControl.setSwingVertical

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

Input

{ deviceId: number; on: boolean }

Output

void

climateControl.setSwingHorizontal

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

Input

{ deviceId: number; on: boolean }

Output

void