Calculate the complete power consumption

Hello i need help for calculation the total cost of a power consumption
Here in Germany we have 3 power line for high power devices like a flow heater
So, i can use

  - platform: template
    id: my_power
    name: "tiefkuehl aktueller Verbrauch"
    lambda: (return id(measured_current1).state * 230.0 / 1000)+(return id(measured_current2).state * 230.0 / 1000)+(return id(measured_current3).state * 230.0 / 1000); #Power = Current * Voltage (so change 230 to whatever your mains voltage is)
    unit_of_measurement: 'kW'
    update_interval: 5s

to calculate the total power ?

Here the rest of the config:

sensor:
  - platform: ads1115
    multiplexer: 'A0_GND'
    gain: 6.144
    name: "ADS1115 Channel A0-GND"
    id: adc_sensor1

  - platform: ads1115
    multiplexer: 'A1_GND'
    gain: 6.144
    name: "ADS1115 Channel A1-GND"
    id: adc_sensor2
	
  - platform: ads1115
    multiplexer: 'A2_GND'
    gain: 6.144
    name: "ADS1115 Channel A2-GND"
    id: adc_sensor3

  - platform: ct_clamp
    sensor: adc_sensor1
    name: "Phase1 aktueller Strom"
    update_interval: 2s
    id: measured_current1
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 5.0A - change this!
          # Value shown in logs: 0.01229A - change this!
          - 0.31362-> 6.3

  - platform: ct_clamp
    sensor: adc_sensor2
    name: "Phase2 aktueller Strom"
    update_interval: 2s
    id: measured_current2
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 5.0A - change this!
          # Value shown in logs: 0.01229A - change this!
          - 0.31362-> 6.3

  - platform: ct_clamp
    sensor: adc_sensor3
    name: "Phase3 aktueller Strom"
    update_interval: 2s
    id: measured_current3
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 5.0A - change this!
          # Value shown in logs: 0.01229A - change this!
          - 0.31362-> 6.3



  - platform: ct_clamp
    sensor: adc_sensor1
    name: "tiefkuehl raw values"
    internal: false
    update_interval: 2s
    unit_of_measurement: mA
    accuracy_decimals: 5
    
  - platform: total_daily_energy
    name: "tiefkuehl täglcher Verbrauch"
    power_id: my_power

Something like this:

But please be aware that you can’t get any correct power readings only from current sensors like ct clamps :warning:

To overcome this: CT Clamp for ESP - #21 by orange-assistant