Power Flow Card Plus 🚀

The Energy Flow Card Plus achieves what you are looking for, which is accumulated energy over a certain period of time

First of all very nice card.

It’s just what I was looking for.
I have a Huawei solar system with grid tide and battery.

The only thing is that there are no bubbles flowing.
Maybe I am missing something.

I am still reading, but if there is anyone with the same problem.
The help would be appreciated

Saludos Toby

Hello I would like to use this neice card, but I run into problems on further configuration:
This works: (shows the values)

type: custom:power-flow-card
entities:
  solar: sensor.senec_solar_generated_power

but this does not: (just shows 0 as values)

type: custom:power-flow-card
entities:
  solar: 
    entity: sensor.senec_solar_generated_power

that is the same for the other keys

Usually this fixes the issue:

use_new_flow_rate_model: true

You have to change the type to custom:power-flow-card-plus

Thank you - I mixed it up :frowning: Now it works fine

huhu
after trying to find a solution for the total kwh values for the last few days, i found another solution today.

The inverter has a sensor for current w values for grid import and export. here, however, the values were reversed. if I took electricity from the grid it was displayed as export. if I fed electricity into the grid it was displayed as consumption. that was the reason why I have not taken this sensor before.

with further search I found today for it a solution.
I have found a template, which I could adapt with my little knowledge. after I could change the names so that they fit to grid export and grid import, my integration is now running.

i was able to make it even more accurate, because i was able to adapt the values of my battery with the same template.

the following code saved me

 template:
  - sensor:
      - name: "Grid Output"
        unit_of_measurement: "W"
        state: >
          {% if states('sensor.power_meter_active_power')|float >= 0 %}
            {{ states('sensor.power_meter_active_power') }}
          {% else %}
            0
          {% endif %}
      - name: "Grid Input"
        unit_of_measurement: "W"
        state: >
          {% if states('sensor.power_meter_active_power')|float < 0 %}
            {{ -1 * states('sensor.power_meter_active_power')|float }}
          {% else %}
            0
          {% endif %}


  - sensor:
      - name: "Battery Discharge"
        unit_of_measurement: "W"
        state: >
          {% if states('sensor.battery_charge_discharge_power')|float >= 0 %}
            {{ states('sensor.battery_charge_discharge_power') }}
          {% else %}
            0
          {% endif %}
      - name: "Battery Charge"
        unit_of_measurement: "W"
        state: >
          {% if states('sensor.battery_charge_discharge_power')|float < 0 %}
            {{ -1 * states('sensor.battery_charge_discharge_power')|float }}
          {% else %}
            0
          {% endif %}

The template divides the sensor values into one sensor for positive values and one sensor for negative values, whereby all output values are displayed as positive numbers.

I hope this helps others who have a similar problem :slight_smile:

2 Likes

I really like this card. Is it possible to in a nice looking way incorporate energy prices into the graph? Right now adding secondary text doesnt really fit inside the rings. Perhaps in the title? “Grid @ 34 [currency]/kwh”?

With the latest HA update (2023.5.4) the energy flow card plus does not work anymore. Instead of loading the card, it gets stuck at “Loading
”. I haven’t changed anything to my config that was working perfectly fine before. Anyone else also having this problem?

I just updated to the lastest HA version (2023.05.4) and cleared my cache.
I’m not seeing this behavior. Do you have a period selector card in that same dashboard?

No. I don’t.

I cleared my cache and even deleted and reinstalled the card. I also tried the card with the minimal configuration like the following, but even this is not working.

- type: custom:energy-flow-card-plus
  entities:
    grid:
      entity:
        consumption: sensor.netzbezug_heute
        production: sensor.einspeisung_heute
    solar:
      entity: sensor.solarertrag_heute
  wh_kwh_threshold: 0

To be honest, I can’t tell 100% if the last update of HA or the last update of the card broke it. But it used to work perfectly fine.

It should definitely work in the newest version.
Can you add the energy date picker to the dashboard?

Edit:
Can you try the latest version (0.0.2.2.2)? Should be fixed

Yep. Now it is working again! Thanks for fixing this so quickly! Great card by the way. :wink:

1 Like


Hello, how to put this value reading negative values?
When its feeding the grid i want to see a negative value, but so far only positive values are displayed.

Would it be possible to add more individual devices?

2 Likes

With the latest version (0.0.2.4) the card is again not working if no date selection is present


In case you are referring to the Energy Flow Card Plus:

You will need to add an energy period selector to that same view, or you will need to set:

energy_date_selection: false

I did already add “energy_date_selection: false” but it is not working. I did not change anything and it was working perfectly fine in 0.0.2.2.2 but does not show up anymore with version 0.0.2.4

Hello @kaspall did you find some “work arround” to fix this problem? I have the same issue.

By default, the card gets an absolute value from the sensor.
To override this, you can use a template, which gets the state of the sensor:

{{states('sensor.YOURSENSORID'}}