Really dump question here - all I want to do is add two sensor values together… how the heck do I do this?
I think I need a value template but I can’t seem to get the right combination of brackets etc to get it working.
Sensor 1 - name - sensor.powermon_housesolar state - 543.38
Sensor 2 - name - sensor.powermon_shedsolar state - 474.87
I just want to create a new sensor called ‘total’ with sensor 1 state + sensor 2 state… the template sensor page has loads of complex examples, I just need a simple one
Great value cause question was spot on to be found by google and also solved and still, years later, valid so lesson learned.
And this reply might add the likelihood that others will find this too cause it helped a lot adding up the solar generator output over 5 growatt inverters to get the key figures how man kWh had been produced, how many fed in and and how may been used. A feature all fans of Watts & Wh will love and share.
thx
Cool but I want to subtract
Actually the +/- icon for the helper made me think that basic operations would be available, I’ll go with a template then. Thanks
The original poster of this topic didn’t though. Whose was why the answer was relevant.
It’s far more powerful to use yaml. The GUI is a very limited version of what is available. On purpose. If the devs tried to include everything they’d essentially be writing a yaml editor.
I want to have 1 sensor due that this isn’t correct showing in my energy graph.
In Belgium we’re having 2 tarifs, high (from 7AM - 10PM) & low (10PM-7AM).
So in my HA i’ve 2 sensors energyconsumption tarif 1 (thats the High) and tarif 2 (Low). I want to merge those to 1 sensor. Issue here is that they give the total amount of electricity that has been used over the time that the meter is used so no daily meter.
Is there a way to merge those sensors and give a daily usage of the grid?
I was thinking to make something in the configuration file like: