Dominevo
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.

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes

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: view on capability humidity-sensor, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=humiditySensor.getStatus on your hub

Input

{ deviceId: number }

Output

HumiditySensorStatusSchema

Shapes: HumiditySensorStatusSchema