tolwi / hassio-ecoflow-cloud

EcoFlow Cloud Integration for Home Assistant
309 stars 53 forks source link

Not possible to add Delta2 as Battery to the Energy Dashboard #27

Open moehringn opened 1 year ago

moehringn commented 1 year ago

Currently, the Delta2 cannot be added to the energy dashboard, probably due to some missing state_class.

I was linked to this page https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics It would be nice if this could be integrated to make the Delta2 (and also the other devices) available on the energy dashboard.

Thank you.

tolwi commented 1 year ago

https://www.home-assistant.io/integrations/integration/?#energy

MrXLR8 commented 1 year ago

Any progress on this?

davidbb commented 1 year ago

This is easy to do since the integration already provides instantaneous power readings. All you need is to integrate the value over time to get energy readings (as @tolwi says above) . To do this, in Home assistant:

Settings - Devices and services - Helpers. Create helper - Integration - Riemann sum integral sensor Give it a name, and for input sensor choose the ecoflow sensor providing AC in power (should end in ac_in_power). Choose left Riemann sum, leave precision 2, and choose k(kilo) for metric prefix. Choose Hours for time unit (this gives kWh).

Repeat for AC out power. This gives you 2 new sensors with energy readings, which after a few minutes you can add to the energy dashboard.

Fyr42 commented 10 months ago

This is easy to do since the integration already provides instantaneous power readings. All you need is to integrate the value over time to get energy readings (as @tolwi says above) . To do this, in Home assistant:

Settings - Devices and services - Helpers. Create helper - Integration - Riemann sum integral sensor Give it a name, and for input sensor choose the ecoflow sensor providing AC in power (should end in ac_in_power). Choose left Riemann sum, leave precision 2, and choose k(kilo) for metric prefix. Choose Hours for time unit (this gives kWh).

Repeat for AC out power. This gives you 2 new sensors with energy readings, which after a few minutes you can add to the energy dashboard.

Thanks a lot for these little explanation. I'm a HA noob and I was hesitant to which type of sensor to put or what I want to see : the instant value of solar production or the cumulative one through the day. And if it's a cumulative one, is HA a big boy and can do the sum (aka the Riemann integral ... oh god it's correct but why put that nightmare name for phd people :p )

nimitiz86 commented 10 months ago

This is easy to do since the integration already provides instantaneous power readings. All you need is to integrate the value over time to get energy readings (as @tolwi says above) . To do this, in Home assistant:

Settings - Devices and services - Helpers. Create helper - Integration - Riemann sum integral sensor Give it a name, and for input sensor choose the ecoflow sensor providing AC in power (should end in ac_in_power). Choose left Riemann sum, leave precision 2, and choose k(kilo) for metric prefix. Choose Hours for time unit (this gives kWh).

Repeat for AC out power. This gives you 2 new sensors with energy readings, which after a few minutes you can add to the energy dashboard.

Hi, I follow your instruction but I have a problem, it’s work for ACOUT but for AC IN no. AC OUT appear in energy dashboard but isn’t for AC IN, any suggestion? Thanks a lot