Open mathieucarbou opened 1 month ago
request to change from:
<span>{ calculateProgress(currentValue, data.min, data.max).toFixed(0) }<span class="font-normal">{ data.symbol }</span></span>
to
<span>{ currentValue }<span class="font-normal">{ data.symbol }</span></span>
The percentage 0-100 is only linked to the computation of the progress bar. But the value displayed should be in relation with the value sent from the ESP, and also in relation with the min and max set in the card definition.
I.e. i have a slider 0 - 10000 that I am swapping with a progress bar 0 - 10000:
The slider shows the correct value after the fix and the % for the progress bar correctly computed.
request to change from:
to
The percentage 0-100 is only linked to the computation of the progress bar. But the value displayed should be in relation with the value sent from the ESP, and also in relation with the min and max set in the card definition.