Skip to content

EcoFlow Binding ​

This binding provides integration for power stations and micro inverters made by EcoFlow (https://www.ecoflow.com/). It discovers devices and communicates to them by using the cloud services provided by EcoFLow.

Supported Things ​

  • EcoFlow cloud API (ecoflow-api)
  • Delta 2 power station (delta2)
  • Delta 2 Max power station (delta2-max)
  • PowerStream micro inverter (powerstream)

Discovery ​

At first, you need to manually create the bridge thing for the cloud API. Once that is done, you can initiate a device scan and supported devices will be automatically discovered and added to the inbox.

Thing Configuration ​

For the cloud API thing (ecoflow-api), you need to register for a developer account at EcoFlow's developer page. Once that registration is approved, you can create access credentials under the IoT Background tab on that page, which you need for the thing configuration:

ConfigDescription
accessKeyThe access key obtained as described above
secretKeyThe secret key obtained as described above

Please note that the developer account can not be used multiple times in parallel, as doing so will disturb event updates.

For the device things, there is no required configuration (when using discovery). The following parameters exist:

ConfigDescription
serialNumberRequired: The device's serial number. Filled automatically when using discovery.

Delta 2 Channels ​

The list below lists all channels supported for both the Delta 2 and Delta 2 Max power stations.

ChannelTypeDescriptionRead OnlyRemarks
status#battery-levelNumberBattery charge level (0-100%)Yes
status#input-powerNumber:PowerTotal battery input powerYes
status#output-powerNumber:PowerTotal battery output powerYes
status#remaining-charge-timeNumber:TimeRemaining charge time as calculated by deviceYes[1]
status#remaining-discharge-timeNumber:TimeRemaining discharge time as calculated by deviceYes[1]
battery#temperatureNumber:TemperatureBattery temperatureYes
battery#voltageNumber:ElectricPotentialBattery voltageYes
battery#currentNumber:ElectricCurrentBattery input/output currentYes
battery#charger-typeStringType of currently active chargerYes[2]
battery#charge-limitDimmerUpper charge limit (0-100%)Yes
battery#discharge-limitDimmerLower discharge limit (0-100%)Yes
battery#extra-battery-powerNumber:PowerPower fed into / drawn from extra battery portYes
ac-input#set-charging-powerNumber:PowerAC charge power targetNo[3]
ac-input#voltageNumber:ElectricPotentialAC input voltageYes
ac-input#currentNumber:ElectricCurrentAC input currentYes
ac-input#powerNumber:PowerAC input powerYes
ac-input#frequencyNumber:FrequencyAC input frequencyYes
ac-input#total-energyNumber:EnergyAmount of energy drawn from AC inputYes[4]
ac-output#enabledSwitchWhether inverter / AC output is enabledNo
ac-output#xboost-enabledSwitchWhether X-Boost is enabled on AC outputNo
ac-output#voltageNumber:ElectricPotentialInverter output voltageYes
ac-output#currentNumber:ElectricCurrentInverter output currentYes
ac-output#powerNumber:PowerInverter output powerYes
ac-output#frequencyNumber:FrequencyInverter output frequencyYes
ac-output#temperatureNumber:TemperatureInverter temperatureYes
ac-output#total-energyNumber:EnergyAmount of energy provided by inverterYes[4]
dc-output#usb-enabledSwitchWhether USB output is enabledNo
dc-output#12v-enabledSwitchWhether 12V car jack output is enabledNo
dc-output#usb1-powerNumber:PowerPower drawn from left USB-A outputYes
dc-output#usb2-powerNumber:PowerPower drawn from right USB-A outputYes
dc-output#qc-usb1-powerNumber:PowerPower drawn from left quick charge USB-A outputYes
dc-output#qc-usb2-powerNumber:PowerPower drawn from right quick charge USB-A outputYes
dc-output#usbc1-powerNumber:PowerPower drawn from left USB-C outputYes
dc-output#usbc2-powerNumber:PowerPower drawn from right USB-C outputYes
dc-output#12v-out-voltageNumber:ElectricPotential12V car jack output voltageYes
dc-output#12v-out-currentNumber:ElectricCurrent12V car jack output currentYes
dc-output#12v-out-powerNumber:Power12 V car jack output powerYes
dc-output#total-energyNumber:EnergyTotal amount of energy drawn from DC outputsYes[4]
solar-input#voltageNumber:ElectricPotentialPV(1) input voltageYes
solar-input#currentNumber:ElectricCurrentPV(1) input currentYes
solar-input#powerNumber:PowerPV(1) input powerYes
solar-input#charge-stateStringPV(1) charge stateYes[5]
solar-input#total-energyNumber:EnergyTotal amount of energy provided by solar input(s)Yes

Since the number of solar inputs and additional battery inputs varies between devices, the Delta 2 Max supports some additional channels:

ChannelTypeDescriptionRead OnlyRemarks
battery#extra-battery2-powerNumber:PowerPower fed into / drawn from second battery portYes
solar-input#voltage2Number:ElectricPotentialPV2 input voltageYes
solar-input#current2Number:ElectricCurrentPV2 input currentYes
solar-input#power2Number:PowerPV2 input powerYes
solar-input#charge-state2StringPV2 charge stateYes[5]

Remarks:

  • [1] If non applicable (charge time without charger or discharge time without load) the device reports those times as 5999 minutes.
  • [2] Possible states: 'ac', 'dc' and 'solar'.
  • [3] The range of valid values is 100..600 W. Smaller charge powers do not seem to work.
  • [4] Storing those values in the device seems to be buggy, so it's possible (and was seen in the wild) for those counters to not increase monotonically.
  • [5] Possible states: 'disabled', 'charging' and 'standby'. 'standby' happens in case of solar and AC charging both being active, AC gets priority in that case.

PowerStream channels ​

The list below lists all channels supported for both the PowerStream micro inverter.

ChannelTypeDescriptionRead OnlyRemarks
inverter#statusStringInverter grid synchronization statusYes[1]
inverter#input-voltageNumber:ElectricPotentialAC voltageYes
inverter#input-frequencyNumber:FrequencyAC frequencyYes
inverter#output-powerNumber:PowerAC output powerYes
inverter#output-target-powerNumber:PowerAC output power targetNo[2]
inverter#supply-priorityStringWhether charging or discharging is preferredNo[3]
battery-input#voltageNumber:ElectricPotentialVoltage of connected batteryYes
battery-input#currentNumber:ElectricCurrentCurrent flow out of / into batteryYes
battery-input#powerNumber:PowerPower drawn from / fed into batteryYes
battery-input#temperatureNumber:TemperatureBattery temperatureYes
battery-input#activeSwitchWhether battery input is activeYes
battery-input#battery-levelNumberCharge level (0-100%) of connected batteryYes
battery-input#charge-limitDimmerUpper battery charge limit (0-100%)No
battery-input#discharge-limitDimmerLower battery discharge limit (0-100%)No
pv1-input#voltageNumber:ElectricPotentialPanel 1 voltageYes
pv1-input#voltage-targetNumber:ElectricPotentialPanel 1 MPPT target voltageYes
pv1-input#currentNumber:ElectricCurrentPanel 1 currentYes
pv1-input#powerNumber:PowerPanel 1 powerYes
pv1-input#mppt-activeSwitchWhether panel 1 MPPT is activeYes
pv2-input#voltageNumber:ElectricPotentialPanel 2 voltageYes
pv2-input#voltage-targetNumber:ElectricPotentialPanel 2 MPPT target voltageYes
pv2-input#currentNumber:ElectricCurrentPanel 2 currentYes
pv2-input#powerNumber:PowerPanel 2 powerYes
pv2-input#mppt-activeSwitchWhether panel 2 MPPT is activeYes

Remarks:

  • [1] Possible states: 'idle', 'starting', 'synchronized' and 'disconnected'.
  • [2] The range of valid values is 0..600/800 W. The upper limit depends on inverter type.
  • [3] Possible states: 'prioIsSupply' (prefer AC output over battery storage), 'prioIsStorage' (prefer battery storage over AC output)

Configuration in .things Files ​

If you want to create the API bridge in a .things file, the entry has to look as follows:

dsl
Bridge ecoflow:ecoflow-api:ecoflowapi [ accessKey="YOUR_ACCESS_KEY", secretKey="YOUR_SECRET_KEY" ]

The devices are detected automatically. If you also want to enter those manually, the syntax is as follows:

dsl
Bridge ecoflow:ecoflow-api:ecoflowapi [ accessKey="YOUR_ACCESS_KEY", secretKey="YOUR_SECRET_KEY" ]
{
    Thing delta2-max myPowerStation "EcoFlow power station" [ serialNumber="serial number as printed on device" ]
}

Item Configuration ​

You can link the channels listed above to items via the UI. If you want to do it via an .items file in your $OPENHAB_CONF/items folder, the syntax looks like this:

dsl
Number Delta2BatteryLevel "Delta 2 Battery Level" { channel="ecoflow:delta2-max:ecoflowapi:myPowerStation:status#battery-level" }
Switch Delta2UsbEnabled   "Delta 2 USB Enabled"    { channel="ecoflow:delta2-max:ecoflowapi:myPowerStation:dc-output#usb-enabled" }
[...]