Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OTHER] #101

Open
andreaskuempel opened this issue Dec 14, 2023 · 1 comment
Open

[OTHER] #101

andreaskuempel opened this issue Dec 14, 2023 · 1 comment

Comments

@andreaskuempel
Copy link

andreaskuempel commented Dec 14, 2023

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
Copy link

nagi121 commented Feb 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants