Dominevo
ReferenceHTTP API

powerMeter

The powerMeter router: 1 method of the power-meter capability, with tier, scope, input and output.

Capability power-meter · scope device · mode singleton · source packages/types/src/capabilities/power-meter.cap.ts:152.

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

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes

powerMeter.getStatus

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

Input

{ deviceId: number }

Output

PowerMeterStatusSchema

Shapes: PowerMeterStatusSchema