Enable channel status
EPS mode configuration (eps: 0: off, 1: on)
Retrieves the properties of the device asynchronously.
Protected
parseParses the properties of the device.
Protected
sendSends a command with the given payload.
Set channel current configuration
Set configuration status
Set emergency mode
const sn = "SP10*****";
const client = new RestClient({
accessKey: "my-access-key",
secretKey: "my-secret-key",
host: "https://api-e.ecoflow.com",
});
const device = client.getDevice(sn);
await device.setEmergencyMode({
isCfg: 1,
backupMode: 1,
overloadMode: 1,
chSta: [
{ "priority": 1, "isEnable": 1 },
{ "priority": 1, "isEnable": 1 },
{ "priority": 2, "isEnable": 1 },
{ "priority": 3, "isEnable": 1 },
{ "priority": 4, "isEnable": 1 },
{ "priority": 5, "isEnable": 1 },
{ "priority": 6, "isEnable": 1 },
{ "priority": 7, "isEnable": 1 },
{ "priority": 8, "isEnable": 1 },
{ "priority": 9, "isEnable": 1 }
]
});
Set grid power configuration
Load channel control
Set load channel info
Set region info
Update RTC time
Set scheduled charging job
const sn = "SP10*****";
const client = new RestClient({
accessKey: "my-access-key",
secretKey: "my-secret-key",
host: "https://api-e.ecoflow.com",
});
const device = client.getDevice(sn);
await device.setScheduledChargingJob({
cfgIndex: 1,
cfg: {
"param": {
"lowBattery": 95,
"chChargeWatt": 2000,
"chSta": [
1,
0
],
"hightBattery": 100
},
"comCfg": {
"timeScale": [
255,
255,
255,
255,
255,
255,
255,
255,
255,
255,
255,
255,
255,
255,
255,
255,
255,
127
],
"isCfg": 1,
"type": 1,
"timeRange": {
"isCfg": 1,
"startTime": {
"sec": 0,
"min": 0,
"week": 4,
"hour": 0,
"month": 1,
"year": 2023,
"day": 11
},
"timeMode": 0,
"endTime": {
"sec": 59,
"min": 59,
"week": 7,
"hour": 23,
"month": 1,
"year": 2023,
"day": 22
},
"mode1": {
"thur": 0,
"sat": 0,
"wed": 0,
"tues": 0,
"fri": 0,
"sun": 0,
"mon": 0
},
"isEnable": 1
},
"isEnable": 1,
"setTime": {
"sec": 35,
"min": 53,
"week": 4,
"hour": 15,
"month": 1,
"year": 2023,
"day": 11
}
}
}
});
Set scheduled discharging job
const sn = "SP10*****";
const client = new RestClient({
accessKey: "my-access-key",
secretKey: "my-secret-key",
host: "https://api-e.ecoflow.com",
});
const device = client.getDevice(sn);
await device.setScheduledChargingJob({
cfgIndex: 1,
cfg: {
"chSta": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"comCfg": {
"timeScale": [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"isCfg": 1,
"type": 2,
"timeRange": {
"isCfg": 1,
"timeMode": 0,
"startTime": {
"sec": 0,
"min": 0,
"week": 2,
"hour": 0,
"month": 10,
"year": 2022,
"day": 24
},
"endTime": {
"sec": 59,
"min": 59,
"week": 2,
"hour": 23,
"month": 10,
"year": 2022,
"day": 25
},
"isEnable": 1
},
"isEnable": 1,
"setTime": {
"sec": 61,
"min": 9,
"week": 7,
"hour": 16,
"month": 11,
"year": 2022,
"day": 15
}
}
}
});
Set split phase info config
const sn = "SP10*****";
const client = new RestClient({
accessKey: "my-access-key",
secretKey: "my-secret-key",
host: "https://api-e.ecoflow.com",
});
const device = client.getDevice(sn);
await device.setSplitPhaseInfoConfig([
{linkCh: 0, linkMark: 0},
{linkCh: 0, linkMark: 0},
{linkCh: 0, linkMark: 0},
{linkCh: 0, linkMark: 0},
{linkCh: 0, linkMark: 0},
{linkCh: 0, linkMark: 0},
{linkCh: 0, linkMark: 0},
{linkCh: 0, linkMark: 0},
{linkCh: 0, linkMark: 0},
{linkCh: 0, linkMark: 0},
]);
Standby channel control
Set standby charging and discharging parameters
Start self check
Device abstract class.