flixlix / energy-flow-card-plus

An upgraded Energy Distribution Card for Home Assistant, with added features like Individual Devices and refined UI enhancements, while maintaining the Energy Dashboard's original design.
155 stars 8 forks source link

[OTHER] #101

Open andreaskuempel opened 11 months ago

andreaskuempel commented 11 months ago

Hi; I have two solar converters and try to have them both in the solar view. In the original energy card it is possible to select them both. In the energy flow card plus, i can only add one entity. So I created a new entity which is the sum of both total energy entities of my converters. But in the solar field of the flow card plus the solar energy is everytime 0Wh. Please help me, I tried many things for hours, but it won't will work.

here is the code for my created sensor(sorry, i don't know how to add the code correctly to this message):

# PV_Gesamtenergie
  - name: "PV_Gesamtenergie"
    unique_id: "PV_Gesamtenergie"
    unit_of_measurement: "kWh"
    device_class: "energy"
    state_class: "total_increasing"
    state: "{{ (states('sensor.inverter_total_yield') | float + states('sensor.growatt_energy_total') | float) | round(2) }}"

image

nagi121 commented 9 months ago

Some Problem: Two solar inverters and no way to show the addition of both energy values.

- platform: template 
  sensors:
    solar_energy_total:
      friendly_name: "Solar Energie"
      unit_of_measurement: 'kWh'
      device_class: energy
      value_template: "{{ (( states('sensor.solar_dach_energy') | float(0) + states('sensor.solar_womo_energy') | float(0) )) | float }}"

Doing the corresponding thing with power works without problems.