Hi, we are returning a xml result as a custom sensor. The result looks ike this: <?xml version="1.0" encoding="Windows-1252"?> <prtg> <result> <Channel>Duration</Channel> <Float>1</Float> <DecimalMode>2</DecimalMode> <Value>12,565</Value> <Unit>TimeSeconds</Unit> </result> </prtg> But the result is not shown as "sek.", only as floating. How to show the result as "12,57 Sek."?


Article Comments

Hello,

"float" overwrites the unit here.

As alternative you can use a custom unit string, but this means that no automatic conversion to hours etc.


Dec, 2020 - Permalink