Energy sensor for a 240v breaker

hi i have a shelly em that monitor one phase of a 240v breaker.

in the energy module is only showing the load of 120v.

i want to double it to get the real value in the energy module

how can i do it

thanks

I was thinking that as you have different phases involved here that you could create a value template to multiply the current value off the Shelly by 240 to get the real power in W, as per this example here…

  - platform: template
    sensors:
      w_calc_shelly:
        friendly_name: "Watt Calc from Shelly"
        value_template: >-
          {% set voltage = 240 %}
          {% set shelly_current = states('sensor.shelly_current_sensor') | float %}
          {% set shelly_240v_watt = (voltage * shelly_current) %}
          {{ shelly_240v_watt |float |round(3) }}
        unit_of_measurement: "W"

Except I see that my Shelly devices don’t return a current in Amps, only the voltage and wattage… so you might be stuck unless you can connect the Shelly (safely) to the two phases of the 240v AC.

the value is already in kWh

i just want to double it

how can i do, i am new to yaml

  • platform: template
    sensors:
    w_calc_shelly:
    friendly_name: “Watt Calc from Shelly”
    value_template: >-
    ‘{{states(“sensor.shellyem_c45bbe6b55bd_channel_1_energy”)| float * 2 }}’
    unit_of_measurement: “kWh”