How to set up the first value? the value that doesn’t change.
I think that I need to have a statistics sensor a “state characteristic change”
and a template sensor that gives me the percentage, but I don’t know how to define the static numeric value.
I’m testing with this but I get a not expected outcome of 96,07%
I have set the input number to 100 and the “sensor.you_sensor_here” is currently 3,93 €
But it should be 2444 % (rounded), right?
I’ve used Percentage Calculator (%)
from 3,93 to 100 = 2444.5292620865134%
My suggestion is calculating the percentage difference in relation to the value first value.
Tom_l’s suggestion is calculating the percentage difference in relation to the second value.
Both are valid. It is a question of what the person wants of view.
ok to make it concrete. I have a break even amount on investments that is 3.5 euros. if the share price reaches 4 euros, I want to know how many percent it has gone up or down
Hm two suggestions, not sure which one I’m looking for haha