action truesight_get_device_energy_usage { label: "Gets the energy usage for a specific device and a given period." description: "You need to provide the device ID:
- use the hardware/devices service to get all available device IDs." provider: truesight method: GET path: "/hardware/energy-usage/{deviceId}" encoding: json input: { type: "object" properties: { basis: { type: "string" enum: ["MONTHLY", "DAILY", "HOURLY"] } deviceId: { type: "integer" format: "int32" } rollPeriod: { type: "string" enum: ["ONE_DAY", "ONE_WEEK", "ONE_MONTH", "SIX_MONTHS", "ONE_YEAR"] } } required: ["deviceId"] additionalProperties: false } output: { type: "object" additionalProperties: true } }