tolwi / hassio-ecoflow-cloud

EcoFlow Cloud Integration for Home Assistant
353 stars 60 forks source link

Add new sensors for River 2 Max (and maybe others models) #99

Closed chertvl closed 1 year ago

chertvl commented 1 year ago

Hi, Tolwi. First of all thank you for great integration!

I have River 2 Max (-CN version) and it works great with your component! My firmwares: v4.1.1.56 + v.2.1.2.26(wifi).

I found some useful for me data in debug file, and I want to ask you add them as HA sensors:

in [data][params] has battery capacity info:

"bms_bmsStatus.fullCap": 17998, - Maximum capacity of batteries in miliAmpere*hours (mAh, may be converted in Ah by /1000). "bms_bmsStatus.remainCap": 17995, - current state of capacity in mAh. "bms_bmsStatus.designCap": 20000, - declared capacity by manufacturer (may be useful if device need for calibration (full discharge/charge) if Full capacity is different from Design capacity, as in my 1-day new ecoflow).

"inv.acInVol": 219483, - "In" and: "inv.invOutVol": 220368, - "Out" AC voltage by invertor, measured in mV, may be converted in Volts by /1000 for sensor. (useful for unstable electricity as mine in Ukraine, now I measure my AC voltage by zigbee sockets with refresh-rate ~8mins, I think quality device as Ecoflow will be better and faster for that).

Thank you!

chertvl commented 1 year ago

Thank you sooo much!!!

tolwi commented 1 year ago

Looks like capacities are incorrect It's 20000 in design capacity for both Delta2 and River2Max

chertvl commented 1 year ago

It's 20000 in design capacity for both Delta2 and River2Max

Its okay. 20000mAh = 20Ah, then: River 2 has 12.8V (4 cells) battery pack, 12.8V 20Ah = 256Wh River 2 Max has 25.6V (8 cells) battery pack, 25.6V 20Ah = 512Wh River 2 Pro has 38.4V (12 cells) battery pack, 38.4V 20Ah = 768Wh Delta 2 has 51.2V (16 cells) battery pack, 51.2V 20Ah = 1024Wh

Each LiFePo4 cell in Ecoflow have nominal 3.2V and 20Ah. When battery cells connected in series, voltage of battery pack is summed. The capacity and current is not summed (they summed in parallel connection only, but there is no any parallel cells connection in these models).

chertvl commented 1 year ago

May I ask you also to add sensor or binary_sensor for charging state? Got it:
"bms_emsStatus.chgState": 1, 1 - is charging, 0 - is not charging internal battery.

So far I have written an automation in which I determine the fact of the charging using of the charging remaining time sensor state != 0
😀