Delete a task by its index.
The index of the task to delete.
Retrieves the properties of the device asynchronously.
Protected
parseParses the properties of the device.
Protected
sendSends a command with the given payload.
Set the custom load power.
The custom load power to set. Must be between 0 and 600.
Set the brightness of the indicator light.
The brightness value to set. Must be between 0 and 1023.
Set the lower charging level.
The lower limit to set. Must be between 1 and 30.
Set the power supply priority either to power supply or battery/storage.
The priority to set.
const sn = "HW51xxxx";
const client = new RestClient({
accessKey: "my-access-key",
secretKey: "my-secret-key",
host: "https://api-e.ecoflow.com",
});
const powerStream = client.getDevice(sn);
await powerStream.setPowerSupplyPriority("powerSupply");
// or
await powerStream.setPowerSupplyPriority("battery");
Set the upper charging level.
The upper limit to set. Must be between 70 and 100.
Represents a smart plug device.