Kostal plenticore and energy dashboard: No sensor energy to grid

Hello, I can’t find the sensor with the value of energy my pv sent to the grid.

Hi,
I’m looking for the same.

In fact I did a make some calculation to know how much momentaneum energy I’m clearing to grid.
But as a standard I can’t find a sensor that give thar information.

So my calculation is this one:

  • platform: template
    sensors:
    producao_menos_consumo:
    friendly_name: ‘Retorno à Rede’
    unit_of_measurement: ‘W’
    value_template: >-
    {{ ( states(‘sensor.scb_ac_power_2’) | float |
    round(1)) - ( states(‘sensor.scb_home_power_from_pv_2’) | float
    | round(1))}}

Basically I’m making this calculation: Solar production - consumption = energy that I put on the grid

But I would like to have a sensor to use the standard HA configuration “return to grid”

Have you get other solution?