Dominevo
ReferenceHTTP API

ambientLightSensor

The ambientLightSensor router: 1 method of the ambient-light-sensor capability, with tier, scope, input and output.

Capability ambient-light-sensor · scope device · mode singleton · source packages/types/src/capabilities/ambient-light-sensor.cap.ts:24.

Every method is called at /trpc/ambientLightSensor.<method> — queries with GET, mutations with POST. See How to call and Authorization. Device methods take deviceId in their input.

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes

ambientLightSensor.getStatus

  • Kind: query — GET /trpc/ambientLightSensor.getStatus (added by the framework)
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability ambient-light-sensor, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=ambientLightSensor.getStatus on your hub

Input

{ deviceId: number }

Output

AmbientLightSensorStatusSchema

Shapes: AmbientLightSensorStatusSchema