Formatting mqtt payload differences

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.

  1. Go to Developer Tools → States
  2. Find the sensor’s entity_id
  3. Click the information icon next to its entity_id
  4. Click the gear icon in the upper right corner
  5. Change “Display Precision”
  6. 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.

2 Likes