Helper with two sum value sensors

Hey all,

I have to PV systems, I have implemented one already and created an Energy dashboard where I can see the production from PV modules. Now I have installed the other one and I would like to add a combined production value to the dashboard. I wanted to create a helper where I sum both values to one but not really able to do that.
I have tried to create similar helper as the existing one but if I take the existing one as a template I’m not sure how to go on.
I have clicked on the “create helper” as I see them the current helper was created from a “temple” I selected the “template” option and stuck on the next windows as I can’t see what to use on the existing helper.
Can anyone help me to create a helper where I sum both values from two different sensors? Maybe Helper is not the way to go, so let me know if I’m totally wrong with my approach.
Thanks all


You could use this helper:

Create an template sensor with this:

{{ ((states("sensor.your_sensor_1") | float(0)) + (states("sensor.your_sensor_2") | float(0))) | round(2) }}

If you want your value to have an unit, use this:

{{ ((states("sensor.your_sensor_1") | float(0)) + (states("sensor.your_sensor_2") | float(0))) | round(2) | string +"your_unit_here" }}

round(2) means 2 decimals in the value if you want to change that.