Prioritize PV charging
0: Off; 1: On
Enable or disable the USB output.
const sn = "R331xxxx";
const client = new RestClient({
accessKey: "my-access-key",
secretKey: "my-secret-key",
host: "https://api-e.ecoflow.com",
});
const delta2 = client.getDevice(sn);
// enable usb output
await delta2.enableUsbOutput(1);
// disable usb output
await delta2.enableUsbOutput(0);
Retrieves the properties of the device asynchronously.
Retrieves the specified property of a device, if present.
ProtectedparseParses the properties of the device.
ProtectedsendSends a command with the given payload.
Set the AC auto out configuration
0: Off; 1: On
Minimum SOC for AC auto out
AC charging settings chgPauseFlag:
Set AC discharge ("enabled" and X-Boost switch settings)
Set the standby time for the AC.
Set the car charger switch.
1: On; 0: Off
Set the car charger input.
Maximum DC charging current (mA), range: 4000 mA–10000 mA
Set the car standby duration.
Auto shutdown when there is no load, unit: minute
Set the standby time for the PD module. The device will power off if no loads are connected to it and no activity is detected in the set period.
Set the energy management configuration.
Set the LCD screen timeout.
screen timeout, unit: seconds
SOC lower limit when discharging
Set the silent mode of the buzzer.
1: On; 0: Off
SOC that triggers EMS to turn off Smart Generator
SoC that triggers EMS to turn on Smart Generator
UPS settings(UPS, upper SoC limit when charging)
Device abstract class.