Total power consumption for today

Hi,
I use the following code in a statistics card in the lovelace to display the power consumption for today of the individual phases. Now I would like to display the total power consumption (L1+L2+L3) for today.
How could I do that?

title: Stromverbrauch heute
type: vertical-stack
cards:
  - type: horizontal-stack
    cards:
      - type: statistic
        entity: sensor.shellyem3_485519dbf224_channel_a_energy
        period:
          calendar:
            period: day
        stat_type: change
        name: L1
      - type: statistic
        entity: sensor.mystrom_energy_consumption_l1
        period:
          calendar:
            period: day
        stat_type: change
        name: L1 PV
  - type: horizontal-stack
    cards:
      - type: statistic
        entity: sensor.shellyem3_485519dbf224_channel_b_energy
        period:
          calendar:
            period: day
        stat_type: change
        name: L2
      - type: statistic
        entity: sensor.mystrom_energy_consumption_l2
        period:
          calendar:
            period: day
        stat_type: change
        name: L2 PV
  - type: horizontal-stack
    cards:
      - type: statistic
        entity: sensor.shellyem3_485519dbf224_channel_c_energy
        period:
          calendar:
            period: day
        stat_type: change
        name: L3
      - type: statistic
        entity: sensor.mystrom_energy_consumption_l3
        period:
          calendar:
            period: day
        stat_type: change
        name: LVP 3


Hi,

I solved it this way, a sensor that totals all three lines and a utiltiy meter that resets monthly.

Incidentally, this is already explained here in the forum quite a few times, you can find wonderful via the search function :slightly_smiling_face:


      - name: "Stromverbrauch insgesamt"
        unique_id: stromverbrauch_insgesamt
        icon: mdi:transmission-tower-export
        state: >-
          {{ 
            [ states('sensor.shelly_em3_channel_a_energy'), 
              states('sensor.shelly_em3_channel_b_energy'),
              states('sensor.shelly_em3_channel_c_energy'),
            ] | map('float') | sum
          }}
        availability: >-
          {{ 
            [ states('sensor.shelly_em3_channel_a_energy'), 
              states('sensor.shelly_em3_channel_b_energy'),
              states('sensor.shelly_em3_channel_c_energy'),
            ] | map('is_number') | min
          }}
        unit_of_measurement: kWh
        device_class: energy
        state_class: total_increasing


utility_meter:
  strom_monatsverbrauch:
    unique_id: strom_monatsverbrauch
    source: sensor.stromverbrauch_insgesamt
    name: Strom Monatsverbrauch
    cycle: monthly
    delta_values: false

Here is a thread that can help you further

Greetings
Moss