ReferenceHTTP API
enumSensor
The enumSensor router: 1 method of the enum-sensor capability, with tier, scope, input and output.
Capability enum-sensor · scope device · mode singleton · source packages/types/src/capabilities/enum-sensor.cap.ts:34.
Every method is called at /trpc/enumSensor.<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 |
enumSensor.getStatus
- Kind: query —
GET /trpc/enumSensor.getStatus(added by the framework) - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityenum-sensor, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=enumSensor.getStatuson your hub
Input
{ deviceId: number }Output
EnumSensorStatusSchemaShapes: EnumSensorStatusSchema