flixlix / power-flow-card-plus

A power distribution card inspired by the official Energy Distribution card for Home Assistant
559 stars 68 forks source link

[FEATURE REQUEST] Please add multiple battery entity option #426

Open JakobTewes opened 10 months ago

JakobTewes commented 10 months ago

Provide multiple Battery enities I have two separate battery storage systems. Would be great, having the chance, adding both ;-)

Thanks and regards

Jakob

gcoan commented 10 months ago

+1 from me. I have two inverters, each with their own solar array and battery so would love to be able to see both on the same card and not have to have two cards (one for each inverter) and look between them

matchermike1981 commented 9 months ago

+1 from me too please :-)

Wovchik commented 6 months ago

+1 have 2 different battery, too

gcoan commented 6 months ago

Have a look at https://github.com/flixlix/power-flow-card-plus/issues/512

I used the beta version of PF+ that allows up to 4 individual items and configured two of them as second battery and second solar array. It works quite well as it stands, albeit with a few limitations (esp calc house load is wrong)

Wovchik commented 6 months ago

i cant get the same Values shown like the native battery with individual items

gcoan commented 6 months ago

i cant get the same Values shown like the native battery with individual items

If you have a look at the yaml configuration I posted in the other issue,I was able to show the second battery SoC and power flow in & out.

As its not a proper battery object it doesn't show the flow direction arrow (but the moving dots are animated correctly) and it's a static battery icon but it's usable.

image

Wovchik commented 6 months ago

not working here and i dont know why... image Names, symbols and secondary values ​​are not displayed as expected. top individual should be the battery icon and % instead of W Second value with curent power botom one should have car icon and walbox as name.....

gcoan commented 6 months ago

not working here and i dont know why... Names, symbols and secondary values ​​are not displayed as expected.

top individual should be the battery icon and % instead of W

Second value with curent power

botom one should have car icon and walbox as name.....

Can you share the yaml configuration?

Are you using the beta version or the main release?

Wovchik commented 6 months ago

type: custom:power-flow-card-plus entities: battery: entity: sensor.sn_3015659959_battery_power_charge_total state_of_charge: sensor.sn_3015659959_battery_soc_total grid: entity: sensor.sn_3015659959_grid_power solar: entity: sensor.sn_3015659959_pv_power display_zero_state: true secondary_info: entity: sensor.mein_haus_solar_energie icon: '' decimals: 2 unit_of_measurement: kW individual:

newest beta and Config with gui and see now that YAML not realy contains this changes :-(

gcoan commented 6 months ago

its difficult to follow precisely as the yaml has lost all the indentation, but I can see that the individual items don't have any extra configuration other than the entity names.

  individual:
    - entity: sensor.mein_haus_ladung
      name: 
    - entity: sensor.smaev_3011748221_charging_station_power

Here's what I think the individual items should be configured like:

  individual:
    - entity: sensor.mein_haus_ladung
      name: Battery
      icon: mdi:battery
      display_zero: true
      secondary_info:
        entity: sensor.battery_percentage_soc
        unit_of_measurement: '%'
      inverted_animation: true
      display_zero_state: false
      calculate_flow_rate: true
      show_direction: true
    - entity: sensor.smaev_3011748221_charging_station_power
      name: Wallbox
      icon: mdi:car
      display_zero: true
      calculate_flow_rate: true

You'll need to put the right sensor name in for battery percentage.

Wovchik commented 6 months ago

But you made this by Hand and Not with the gui right?

Geoffrey Coan @.***> schrieb am Di., 12. März 2024, 18:11:

its difficult to follow precisely as the yaml has lost all the indentation, but I can see that the individual items don't have any extra configuration other than the entity names.

individual:

  • entity: sensor.mein_haus_ladung name:
  • entity: sensor.smaev_3011748221_charging_station_power

Here's what I think the individual items should be configured like:

individual:

  • entity: sensor.mein_haus_ladung name: Battery icon: mdi:battery display_zero: true secondary_info: entity: sensor.battery_percentage_soc unit_of_measurement: '%' inverted_animation: true display_zero_state: false calculate_flow_rate: true show_direction: true
  • entity: sensor.smaev_3011748221_charging_station_power name: Wallbox icon: mdi:car display_zero: true calculate_flow_rate: true

You'll need to put the right sensor name in for battery percentage.

— Reply to this email directly, view it on GitHub https://github.com/flixlix/power-flow-card-plus/issues/426#issuecomment-1992157624, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK5VT6WQ63XTIE4UMPKX57LYX4ZMPAVCNFSM6AAAAAA7HIBKYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJSGE2TONRSGQ . You are receiving this because you commented.Message ID: @.***>

gcoan commented 6 months ago

But you made this by Hand and Not with the gui right?

Yes I copied and adapted my own configuration for you.

But I created mine using the gui so don't know why it's not working for you

Wovchik commented 6 months ago

Thanks now it works: image but Gui still bugy have to change the yaml for every thing in the individual part

gcoan commented 6 months ago

There are some limitations with using the individual items as a battery. The flow direction and charge/discharge rate doesn't work properly, it doesn't sense whether the power is positive or negative. If you set invert_animation then the flow direction is correct for charging but not discharging and vice versa. But its still useful to have multiple things on one card

GolfOWL commented 6 months ago

One question - is there anything new / an update for the android layout in the meantime? Because on my android (S23) I only see "Netz" (left), "Solar" (top), "Batterie" (bottom) and "Home" (right).

Screenshot_20240313_134549_Home Assistant

PS: I am using beta 0.2...

gcoan commented 6 months ago

One question - is there anything new / an update for the android layout in the meantime? Because on my android (S23) I only see "Netz" (left), "Solar" (top), "Batterie" (bottom) and "Home" (right).

Have you added some extra "individual" items like car, second battery, second solar, oven or some other power monitors? The big change is the ability to have up to 4 individual items in this beta

image

GolfOWL commented 6 months ago

One question - is there anything new / an update for the android layout in the meantime? Because on my android (S23) I only see "Netz" (left), "Solar" (top), "Batterie" (bottom) and "Home" (right).

Have you added some extra "individual" items like car, second battery, second solar, oven or some other power monitors? The big change is the ability to have up to 4 individual items in this beta

image

Yes, that is my problem. I see them (individual 1-x) in the browser - but not on my mobil device :-(

gcoan commented 6 months ago

One question - is there anything new / an update for the android layout in the meantime? Because on my android (S23) I only see "Netz" (left), "Solar" (top), "Batterie" (bottom) and "Home" (right).

Yes, that is my problem. I see them (individual 1-x) in the browser - but not on my mobil device :-(

That's super-weird. Suggest you raise a new ticket for the Android issue

FabianNiesen commented 1 month ago

I also would like to see a better solution for 2 batteries and 2 Solar inverter. Also with preferably more the 4 additional devices.