Help with Calculating few energy sensors

Hello, I have a lot shelly 1pm and tasmota, they show me the power consume per sensor, I want to calculate all the sensors together and its show me what the current energy/W/KW all of sensors together.
can I use a template? I try to do this but I did not succeed.
someone can tell me what I need to do?
Thank you

Yes you can use a template sensor. Share what you have tried (correctly formatted).

I erase all what I saw in forums , Nothing worked .
which template i need to use?

How would we know?

We donโ€™t even know what your entity ids are.

ok. this is my sensors


I want to calculate all of this entities to one sensor that showing me the current energy

Please donโ€™t post pictures of text. Post the entity ids.

I can change it later It does not matter so much what will be written but okโ€ฆ
I need to add more anyway. so this is example for my sensors. I will add more sensors later, I dont need you write me all my sensors :upside_down_face:
thank you

sensor.shelly1pm_98cdac1e2174_power
sensor.shelly1pm_e8db84d7a30e_power
sensor.shelly1pm_84cca8a824e8_power
sensor.shelly1pm_c45bbe6c4171_power
"{{ states('sensor.shelly1pm_98cdac1e2174_power')|float(0) + states('sensor.shelly1pm_e8db84d7a30e_power')|float(0) + states('sensor.shelly1pm_84cca8a824e8_power')|float(0) + states('sensor.shelly1pm_c45bbe6c4171_power')|float(0) }}"

Thank you man! its working!
maybe you know if can I Delete the numbers after dot?
55555

and can I use it in history graph on lovelace?
and maybe you know if I can add โ€œWโ€ to template?
thank you!!

Please share your full sensor configuration.

Thank you!


template:
  - sensor:
      - name: "ืฆืจื™ื›ืช ื—ืฉืžืœ ื ื•ื›ื—ื™ืช"
        state: >
          "{{ states('sensor.shelly1pm_c45bbe6c4171_power')|float(0) + states('sensor.shelly1pm_d8bfc01a1512_power')|float(0) + states('sensor.shelly1pm_84cca8a824e8_power')|float(0) + states('sensor.shelly1pm_c45bbe6c4171_power')|float(0) + states('sensor.shelly1pm_98cdac1f5218_power')|float(0) + states('sensor.shelly1pm_e8db84d79a44_power')|float(0) + states('sensor.shelly1pm_98cdac1e2174_power')|float(0) + states('sensor.tasmota_energy_power')|float(0) + states('sensor.shelly1pm_e8db84d7a30e_power')|float(0) + states('sensor.tasmota_energy_power_3')|float(0) + states('sensor.shelly1pm_e8db84d79a44_power')|float(0) + states('sensor.tasmota_energy_power')|float(0) + states('sensor.sonoff_1000cab798_power')|float(0) + states('sensor.sonoff_1000cab589_power')|float(0) + states('sensor.tnvr_mqlkht_power')|float(0) + states('sensor.tasmota_energy_power_4')|float(0) }}"

template:
  - sensor:
      - name: "ืฆืจื™ื›ืช ื—ืฉืžืœ ื ื•ื›ื—ื™ืช"
        unit_of_measurement: 'W'
        state_class: measurement
        device_class: power
        state: >
          "{{ ( states('sensor.shelly1pm_c45bbe6c4171_power')|float(0) + states('sensor.shelly1pm_d8bfc01a1512_power')|float(0) + states('sensor.shelly1pm_84cca8a824e8_power')|float(0) + states('sensor.shelly1pm_c45bbe6c4171_power')|float(0) + states('sensor.shelly1pm_98cdac1f5218_power')|float(0) + states('sensor.shelly1pm_e8db84d79a44_power')|float(0) + states('sensor.shelly1pm_98cdac1e2174_power')|float(0) + states('sensor.tasmota_energy_power')|float(0) + states('sensor.shelly1pm_e8db84d7a30e_power')|float(0) + states('sensor.tasmota_energy_power_3')|float(0) + states('sensor.shelly1pm_e8db84d79a44_power')|float(0) + states('sensor.tasmota_energy_power')|float(0) + states('sensor.sonoff_1000cab798_power')|float(0) + states('sensor.sonoff_1000cab589_power')|float(0) + states('sensor.tnvr_mqlkht_power')|float(0) + states('sensor.tasmota_energy_power_4')|float(0) )|round(0)|int(0) }}"

1 Like

thank you!
you are the king

Maybe you know why I dont see the history sensor?
a