Shelly 3EM returned energy, photovoltaic

Hi,
I´m using a Shelly 3EM. With this I calculate how much energy is used on all 3 phases.
I also produce solar energy which i feed in balanced over the phases. E.g. 1000W is needed on phase 1, phase 1 supplies 300W, phase 2: 200W and phase 3: 500W.
I calculate the power consumption as follows:

#Strom Netzbetreiber gesamt
template:
- sensor: 
    - name: "Leistung gesamt Netz"
      unique_id: leistung_netz_total
      state: >-
        {{ (states('sensor.shellyem3_channel_a_power')|float(0) +
            states('sensor.shellyem3_channel_b_power')|float(0) +
            states('sensor.shellyem3_channel_c_power')|float(0)) }}
      unit_of_measurement: W
      device_class: power
      state_class: measurement

Now I also want to include the energy returned value (example: sensor.shellyem3_channel_a_energy_returned). However, not for the last 24 hours, but for today, the current month and the current year.
How can I do that?

Hi,

have you found a solution?

Thanks,
Aleardo

Hi Aleardo,

no, unfortunately not.

Greetings
Sascha