Display relay consumption history
This commit is contained in:
@ -35,6 +35,18 @@ export class EnergyApi {
|
||||
return data.data.consumption;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get relays consumption
|
||||
*/
|
||||
static async RelaysConsumption(): Promise<number> {
|
||||
return (
|
||||
await APIClient.exec({
|
||||
method: "GET",
|
||||
uri: "/energy/relays_consumption",
|
||||
})
|
||||
).data.consumption;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get relays consumption history
|
||||
*/
|
||||
|
Reference in New Issue
Block a user