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