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.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getStatus | query | protected | view | yes |
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:
viewon capabilitypower-meter, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=powerMeter.getStatuson your hub
Input
{ deviceId: number }Output
PowerMeterStatusSchemaShapes: PowerMeterStatusSchema