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.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
send | mutation | protected | create | yes |
learn | mutation | protected | create | yes |
getInfo | query | protected | view | yes |
irTransmitter.send
- Kind: mutation —
POST /trpc/irTransmitter.send - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityir-transmitter, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=irTransmitter.sendon your hub
Input
{ deviceId: number; timings?: number[]; native?: { format: "tuya"; code: string }; settings?: { carrierHz?: number; dutyCyclePercent?: number; repeat?: number; repeatDelayMs?: number } }Output
IrSendResultSchemaShapes: IrSendResultSchema
irTransmitter.learn
- Kind: mutation —
POST /trpc/irTransmitter.learn - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityir-transmitter, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=irTransmitter.learnon your hub
Input
{ deviceId: number; timeoutMs?: number = 20000 }Output
IrLearnResultSchemaShapes: IrLearnResultSchema
irTransmitter.getInfo
- Kind: query —
GET /trpc/irTransmitter.getInfo - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityir-transmitter, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=irTransmitter.getInfoon your hub
Input
{ deviceId: number }Output
IrTransmitterInfoSchemaShapes: IrTransmitterInfoSchema