ReferenceHTTP API
vacuumControl
The vacuumControl router: 7 methods of the vacuum-control capability, with tier, scope, input and output.
Capability vacuum-control · scope device · mode singleton · source packages/types/src/capabilities/vacuum-control.cap.ts:62.
Every method is called at /trpc/vacuumControl.<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 |
|---|---|---|---|---|
getStatus | query | protected | view | yes |
start | mutation | protected | create | yes |
pause | mutation | protected | create | yes |
stop | mutation | protected | create | yes |
returnToBase | mutation | protected | create | yes |
locate | mutation | protected | create | yes |
setFanSpeed | mutation | protected | create | yes |
vacuumControl.getStatus
- Kind: query —
GET /trpc/vacuumControl.getStatus(added by the framework) - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityvacuum-control, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=vacuumControl.getStatuson your hub
Input
{ deviceId: number }Output
VacuumControlStatusSchemaShapes: VacuumControlStatusSchema
vacuumControl.start
- Kind: mutation —
POST /trpc/vacuumControl.start - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityvacuum-control, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=vacuumControl.starton your hub
Input
{ deviceId: number }Output
voidvacuumControl.pause
- Kind: mutation —
POST /trpc/vacuumControl.pause - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityvacuum-control, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=vacuumControl.pauseon your hub
Input
{ deviceId: number }Output
voidvacuumControl.stop
- Kind: mutation —
POST /trpc/vacuumControl.stop - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityvacuum-control, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=vacuumControl.stopon your hub
Input
{ deviceId: number }Output
voidvacuumControl.returnToBase
- Kind: mutation —
POST /trpc/vacuumControl.returnToBase - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityvacuum-control, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=vacuumControl.returnToBaseon your hub
Input
{ deviceId: number }Output
voidvacuumControl.locate
- Kind: mutation —
POST /trpc/vacuumControl.locate - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityvacuum-control, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=vacuumControl.locateon your hub
Input
{ deviceId: number }Output
voidvacuumControl.setFanSpeed
- Kind: mutation —
POST /trpc/vacuumControl.setFanSpeed - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityvacuum-control, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=vacuumControl.setFanSpeedon your hub
Input
{ deviceId: number; speed: string }Output
void