First try of operation panel, 2 decimal problem

Hi there!

I´m using a product called “husdata” that sends mqtt from my heatingpump.

I got the values for my picture:
image

But the problem I have is that the values are in 2 decimals. I can´t find how to change this to 1?

This is my mqtt setup for one sensor in configuration.yaml:

  - platform: mqtt
    state_topic: "b4e62d65a999/HP/0007"
    name: "Outdoor"
    unit_of_measurement: "°C"
    icon: mdi:thermometer

edit: This is my picture-element for that sensor

  - type: state-label
    entity: sensor.outdoor
    style:
      top: 10%
      left: 8%

Try with a value template. You can also use device_class: temperature see here for more details, then you don’t need to set unit of measurement and icon.

- platform: mqtt
  state_topic: "b4e62d65a999/HP/0007"
  name: "Outdoor"
  value_template: "{{ value_json | round(1) }}"
  device_class: temperature

I also wonder if there’s a way to get the picture bigger?

Did the code work?

Please open a separate topic for this.

The decimal work but not the unit

So add unit of measurement back and your good to go.

Thank you!