entity: sensor.zonnepanelen_vooraan_actueel_vermogen (comes as a negative number, eg - 500 Watt)
entity: sensor.zonnepanelen_achteraan_actueel_vermogen (comes as a negative number, eg - 500 Watt)
helper : sensor.totalsolar : sum of both entities, also comes as a negative number, eg -1000Watt)
sensor : sensor.stroommeter_actueel_vermogen : the power I use from the electricity net (comes as a positive number, eg 500 Watt)
Now, I want to use the exact amount of power that I use. So I need the sum of the sensor sensor.stroommeter_actueel_vermogen and the helper sensor.totalsolar.
When sensor.stroommeter_actueel_vermogen is 500 Watt and sensor.totalsolar is 300 Watt, I should get 800 Watt. But with the helper I’ve created (sensor.totalenergy) I get 200 Watt, because sensor.totalsolar is a negative number.
So, to have the helper sensor.totalenergy working, I need to change it from a negative value into a positive value. How should I do this?
Hi Jake,
I’ve deleted it, and created it in helpers. Don’t know if that is correct what I did is correct…
Would appreciate if you could help me out with this after your work or later. Trying to figure this out since a few days so a few days extra isn’t that hard
looks like absolute value only works as a filter instead and not as a function. If it’s always negative and you want it to always be positive, try this instead. But keep your units and other info filled in…