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