Power Distribution card

Bit offtopic, but can you please share the include_verbruik_actueel_apex.yaml and input_select.apex_span files? That graph is really looking great especially with the span :+1:

Not at the office now, but I posted it some time ago in the Apex card thread. Search for it and you’ll easily find it?

This would be it ApexCharts card - A highly customizable graph card - #1495 by Mariusthvdb

1 Like

Can you please chare you template to calculate the different sensors used. Thanks!

Thanks for the work on this @ulic it looks stunning!

Is there a way I can stretch the height of the card to make it fill 100% of the available viewport space?

The card was built using the design of the built-in Energy Cards as a base and last time I checked they didn’t work that way either. Right now I don’t have any plans on adding that feature.

1 Like

Thanks @ulic I was able to stretch (and magnify) it using 🔹 Card-mod - Add css styles to any lovelace card :slight_smile:

1 Like

You’ll see from my screen shot above that I have a white line running between Grid and Battery, but this will never happen.

In the screen shot from @ulic in the first post that line isn’t present.

How do I remove this line from my card? :thinking:

How do you do that? which values of styles?

I would like to reduce size of my power flow:
Capture

2 Likes

Hello, I am trying to start the power flow card, I would like to know how to make the card appear in Watts, thanks

You can use the watt_threshold setting to configure when watts or kilowatts will be shown.

Sorry for the delay in replying @Plouf34

First, I installed the Card-Mod: 🔹 Card-mod - Add css styles to any lovelace card

Then I edited the dashboard I wanted to change:

Then I selected the Edit in the bottom left corner:

Then I edited the code from this:

type: custom:power-flow-card
kw_decimals: null
w_decimals: 0
watt_threshold: 999
min_flow_rate: 3
max_flow_rate: 10
entities:
  battery_charge: sensor.lux_battery
  battery:
    consumption: sensor.lux_battery_discharge_live
    production: sensor.lux_battery_charge_live
  grid:
    consumption: sensor.lux_power_from_grid_live
    production: sensor.lux_power_to_grid_live
  solar: sensor.lux_solar_output_live

To this (note the extra card_mod section at the bottom):

type: custom:power-flow-card
kw_decimals: null
w_decimals: 0
watt_threshold: 999
min_flow_rate: 3
max_flow_rate: 10
entities:
  battery_charge: sensor.lux_battery
  battery:
    consumption: sensor.lux_battery_discharge_live
    production: sensor.lux_battery_charge_live
  grid:
    consumption: sensor.lux_power_from_grid_live
    production: sensor.lux_power_to_grid_live
  solar: sensor.lux_solar_output_live
card_mod:
  style: |
    ha-card {
      padding-top: 205px;
      width: 1060px;
      height: 700px;
     transform: scale(1.8);
      }

You can play with the CSS values and tailor it for your own requirements @Plouf34

1 Like

Very useful card, love it!
I’ve been trying to use conditions within it, to achieve the following:

  1. Include Solar and Grid, while there’s Solar production, but
  2. Only include Grid when Solar production is offline.

I have a entity for the state of the inverter, and in that the value is 2 if it’s offline and 1 if it’s online.
I can create a condition based on that, but can not get that to work with which entities are selected for this card (solar and/or grid). Maybe I’m too novice with YAML.

Is this even possible with this card, and if so, can someone please help me understand how conditional entity rows would work in this case? Thank you!

Hi there.

Apologies for what is probably an excrutiatingly short sighted question. I’m new to this.
I cant get the dashboard to work. What I have done is

  1. Installed HACS on my homeaaistant OS, running on a Pi4
  2. Installed the card via HACS
  3. Copied the first “example usage” from the Github page
  4. Gone into an existing dashboard, edited it and added a card
  5. Scrolled down to the bottom of the pop-up and chose “manual”
  6. Pasted the example usage code into the card configuration:
type: custom:power-flow-card
entities:
  battery: sensor.battery_in_out
  battery_charge: sensor.battery_percent
  grid: sensor.grid_in_out
  solar: sensor.solar_out 

All looks good, but the card doesnt seem to have anything flowing through it. All the values stay at zero. I’ve rebooted the pi

Any advice gratefully received.

thanks

danyul

You must use your own sensor entities, not the sample ones.

1 Like

Thank you. So I can only choose entries from the list that appears in the sensors list in the overview in home assistant?

@Plouf34 was that of any use?

Yes exactly, you cannot use non-existent entities that have no values.

1 Like

Thank you so much. All sorted now

tryng to add the water and gas consumption (live, not total) entities, I figured to do

        entities:
          grid:
            consumption: sensor.grid_power_consumption
            production: sensor.grid_power_production
          solar: sensor.zp_actuele_opbrengst
          water: sensor.watermeter_stand
          gas: sensor.gas_verbruik

where the watermeter_stand is the actual ticker per liter (and not a unit m3 which would not be expected as that is total, and not actual consumption), and the gas_verbruik (which does have the cubic meter unit) entity, updated each 15 minutes.

however…:

the graph shows the actual state and not a current water flow… suppose the gas might be the same, but as I dont have any other useful entities, that’l have to do.

So, how to get that water circle show the current flowing water, and not the total.
should I change any of the entities, or the config? Or would this have to be done inside the card based on the total entity (like I have now)

If the sensor doesn’t exist to provide the current usage then it just won’t work as intended.