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