Hi All. Is this possible.
I can't seem to get my head around it. I have 105 KWH of Lithium batteries on my off-grid solar system. The voltage range from empty to full on the batteries is from 50 to 54.4 Volt, with some buffer in both ends.
Now I would like to have an immediate script to set a virtual device to do the calculation to percentage. Ranging from 0 - 100 %, equal 50 volt is 0 % and 54.4 volt is 100 %
Is this possible and is it just my mathematic that is so rusty that I can't find my way through it, or will I have to go for a bigger script.
Help will be greatly appreciate.
Stones
I can't seem to get my head around it. I have 105 KWH of Lithium batteries on my off-grid solar system. The voltage range from empty to full on the batteries is from 50 to 54.4 Volt, with some buffer in both ends.
Now I would like to have an immediate script to set a virtual device to do the calculation to percentage. Ranging from 0 - 100 %, equal 50 volt is 0 % and 54.4 volt is 100 %
Is this possible and is it just my mathematic that is so rusty that I can't find my way through it, or will I have to go for a bigger script.
Help will be greatly appreciate.
Stones
Comment