Unit of measurement

image

hello, i am trying to give my measure a unit of measurement. This value should actually be one in mm. I now get the measured value well but there is no unit behind it. Can anyone help me get this done

You can do it with Customize:

Hello Tom, can you give me an example how to apply this in my situation?

Add a customize include under homeassistant to your configuration.yaml file if it does not exist.

homeassistant:
  customize: !include customize.yaml

Create the customize.yaml file in your /config folder and add the following inside it:

sensor.rain_total:
  unit_of_measurement: 'mm'

Assuming that sensor.rain_total is actually the sensor entity_id you need to change the unit of.

6 Likes

thanks thats fixed