ReferenceHTTP API
navigation
The navigation router: 11 methods of the navigation capability, with tier, scope, input and output.
Capability navigation · scope device · mode singleton · source packages/types/src/capabilities/navigation.cap.ts:359.
Every method is called at /trpc/navigation.<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 |
move | mutation | protected | create | yes |
stop | mutation | protected | create | yes |
goToPoint | mutation | protected | create | yes |
listActions | query | protected | view | yes |
runAction | mutation | protected | create | yes |
playSound | mutation | protected | create | yes |
setLightOn | mutation | protected | create | yes |
setLightMode | mutation | protected | create | yes |
setLightLevel | mutation | protected | create | yes |
getFeatures | query | protected | view | yes |
navigation.getStatus
- Kind: query —
GET /trpc/navigation.getStatus(added by the framework) - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitynavigation, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=navigation.getStatuson your hub
Input
{ deviceId: number }Output
NavigationStatusSchemaShapes: NavigationStatusSchema
navigation.move
- Kind: mutation —
POST /trpc/navigation.move - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitynavigation, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=navigation.moveon your hub
Input
{ pan?: number; tilt?: number; speed?: number; deviceId: number }Output
voidnavigation.stop
- Kind: mutation —
POST /trpc/navigation.stop - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitynavigation, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=navigation.stopon your hub
Input
{ deviceId: number }Output
voidnavigation.goToPoint
- Kind: mutation —
POST /trpc/navigation.goToPoint - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitynavigation, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=navigation.goToPointon your hub
Input
{ x: number; y: number; deviceId: number }Output
voidnavigation.listActions
- Kind: query —
GET /trpc/navigation.listActions - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitynavigation, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=navigation.listActionson your hub
Input
{ deviceId: number }Output
NavigationActionEntrySchema[]Shapes: NavigationActionEntrySchema
navigation.runAction
- Kind: mutation —
POST /trpc/navigation.runAction - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitynavigation, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=navigation.runActionon your hub
Input
{ deviceId: number; actionId: NavigationActionIdSchema }Output
voidShapes: NavigationActionIdSchema
navigation.playSound
- Kind: mutation —
POST /trpc/navigation.playSound - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitynavigation, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=navigation.playSoundon your hub
Input
{ deviceId: number; soundId: number }Output
voidnavigation.setLightOn
- Kind: mutation —
POST /trpc/navigation.setLightOn - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitynavigation, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=navigation.setLightOnon your hub
Input
{ deviceId: number; on: boolean }Output
voidnavigation.setLightMode
- Kind: mutation —
POST /trpc/navigation.setLightMode - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitynavigation, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=navigation.setLightModeon your hub
Input
{ deviceId: number; mode: NavigationLightModeSchema; level?: number }Output
voidShapes: NavigationLightModeSchema
navigation.setLightLevel
- Kind: mutation —
POST /trpc/navigation.setLightLevel - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitynavigation, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=navigation.setLightLevelon your hub
Input
{ deviceId: number; level: number }Output
voidnavigation.getFeatures
- Kind: query —
GET /trpc/navigation.getFeatures - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitynavigation, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=navigation.getFeatureson your hub
Input
{ deviceId: number }Output
NavigationFeaturesSchemaShapes: NavigationFeaturesSchema