Moin,
Auch wenn die Frage schon älter ist:
Du musst statt Basic-Number das Basic-HTML Widget benutzen.
Der HTML-Code sieht dann in etwa so aus:
<table>
<tr>
<td>{hm-rpc.0.deinSensor.1.TEMPERATURE;operation1;operation2;...}°C</td>
</tr>
</table>
Folgende Operationen werden unterstützt:
\* - multiplying. Argument must be in brackets, like "*(4)". In this sample we multiplying value with 4.
\+ - add. Argument must be in brackets, like "+(4.5)". In this sample we add to value 4.5.
\- - subtract. Argument must be in brackets, like "-(-674.5)". In this sample we subtract from value -674.5.
/ - dividing. Argument must be in brackets, like "/(0.5)". In this sample we dividing value by 0.5.
% - modulo. Argument must be in brackets, like "%(5)". In this sample we take modulo of 5.
round - round the value.
round(N) - round the value with N places after point, e.g. 34.678;round(1) => 34.7
hex - convert value to hexadecimal value. All letters are lower cased.
hex2 - convert value to hexadecimal value. All letters are lower cased. If value less 16, so the leading zero will be added.
HEX - same as hex, but upper cased.
HEX2 - same as hex2, but upper cased.
date - format date according to given format. Format is the same as in iobroker.javascript
min(N) - if value is less than N, take the N, elsewise value
max(M) - if value is greater than M, take the M, elsewise value
sqrt - square root
pow(n) - power of N.
pow - power of 2.
floor - Math.floor
ceil - Math.ceil
random(R) - Math.random() * R, or just Math.random() if no argument
formatValue(decimals) - format value according to system settings and use decimals
date(format) - format value as date. Format is like: "YYYY-MM-DD hh:mm:ss.sss"
array(element1,element2[,element3,element4]) - returns the element of index. e.g.: {id.ack;array(ack is false,ack is true)}
MfG