You’re not doing anything wrong. It simply doesn’t display trailing zeros.
In other words, by default, it does this:
1.5
Not this:
1.50
If you want to force the sensor’s value to always be displayed with 3 decimal places (or whatever amount you want) change it in the sensor’s configuration.
- Go to Developer Tools → States
- Find the sensor’s entity_id
- Click the information icon next to its entity_id
- Click the gear icon in the upper right corner
- Change “Display Precision”
- Click the Update button
Based on how you configure it (2 or 3 decimal places), you can make 6.591,56
appear as 6.591,560
or 6.290,798
as 6.290,80
.