Dominevo
ReferenceHTTP API

irTransmitter

The irTransmitter router: 3 methods of the ir-transmitter capability, with tier, scope, input and output.

Capability ir-transmitter · scope device · mode singleton · source packages/types/src/capabilities/ir-transmitter.cap.ts:141.

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

MethodKindTierToken scopeViewer
sendmutationprotectedcreateyes
learnmutationprotectedcreateyes
getInfoqueryprotectedviewyes

irTransmitter.send

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

Input

{ deviceId: number; timings?: number[]; native?: { format: "tuya"; code: string }; settings?: { carrierHz?: number; dutyCyclePercent?: number; repeat?: number; repeatDelayMs?: number } }

Output

IrSendResultSchema

Shapes: IrSendResultSchema

irTransmitter.learn

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

Input

{ deviceId: number; timeoutMs?: number = 20000 }

Output

IrLearnResultSchema

Shapes: IrLearnResultSchema

irTransmitter.getInfo

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

Input

{ deviceId: number }

Output

IrTransmitterInfoSchema

Shapes: IrTransmitterInfoSchema