Entiniyty value unit?

Hi

How i change values unit? My energy meter give plain number value and I want those values are W and kwh? So how i change those?

image

Add unit_of_measurement to the sensor’s definition with an appropriate symbol.

1 Like

Thanks, but I dont know where I add that unit of measurement?

If it’s a self-defined sensor, then add the attribute to the sensor’s entry in configuration.yaml . If the sensor is coming from an integration or a custom component, contact the integration’s author to add the attribute to the generated sensors.

Read here for more information Customizing entities - Home Assistant

1 Like