power-flow-card-plus icon indicating copy to clipboard operation
power-flow-card-plus copied to clipboard

[FEATURE REQUEST] Please add multiple battery entity option

Open JakobTewes opened this issue 1 year ago • 19 comments

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

Thanks and regards

Jakob

JakobTewes avatar Nov 11 '23 13:11 JakobTewes

+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

gcoan avatar Nov 17 '23 23:11 gcoan

+1 from me too please :-)

matchermike1981 avatar Dec 18 '23 13:12 matchermike1981

+1 have 2 different battery, too

Wovchik avatar Mar 08 '24 00:03 Wovchik

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)

gcoan avatar Mar 08 '24 01:03 gcoan

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

Wovchik avatar Mar 08 '24 09:03 Wovchik

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

gcoan avatar Mar 08 '24 10:03 gcoan

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.....

Wovchik avatar Mar 12 '24 12:03 Wovchik

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?

gcoan avatar Mar 12 '24 13:03 gcoan

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: - entity: sensor.mein_haus_ladung - entity: sensor.smaev_3011748221_charging_station_power clickable_entities: true display_zero_lines: true use_new_flow_rate_model: true w_decimals: 0 kw_decimals: 1 min_flow_rate: 0.75 max_flow_rate: 6 max_expected_power: 2000 min_expected_power: 0.01 watt_threshold: 1000 transparency_zero_lines: 0

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

Wovchik avatar Mar 12 '24 13:03 Wovchik

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.

gcoan avatar Mar 12 '24 17:03 gcoan

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: @.***>

Wovchik avatar Mar 12 '24 17:03 Wovchik

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

gcoan avatar Mar 12 '24 17:03 gcoan

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

Wovchik avatar Mar 13 '24 11:03 Wovchik

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

gcoan avatar Mar 13 '24 12:03 gcoan

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...

GolfOWL avatar Mar 13 '24 12:03 GolfOWL

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

gcoan avatar Mar 13 '24 13:03 gcoan

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 :-(

GolfOWL avatar Mar 13 '24 16:03 GolfOWL

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

gcoan avatar Mar 13 '24 16:03 gcoan

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

FabianNiesen avatar Aug 07 '24 07:08 FabianNiesen