Friendly Name (for RESTful sensor)

Hi,

I am using a sensor that utilizes the ‘rest’ platform. In general it works fine. The only thing I was wondering about, is the friendly name attribute. The Web UI shows the sensor but with its ugly name. The friendly name, that I have set on the config, seems to be ignored. Is the friendly name not inherited all over the sensors etc.? Is there any other possibility to get a nice name in the web UI?

Here is my current config-code:

sensor:
  - platform: rest
    resource: http://x.x.x.x:yyyy/weather/humidity
    value_template: '{{ value_json.value }}'
    method: GET
    name: 'outdoor_humidity'
    friendly_name: 'humidity'
    unit_of_measurement: "%"

I don’t see the friendly name parameter in the sensor.rest example.
Is the ‘name’ value displayed?

home-assistant.io/components/sensor.rest/

You are right. There is no friendly name parameter in the example and the UI shows the string that is used as a name.
My naive assumption was, that there might be a base class for sensors that handles such basics as friendly names etc. (parameters that every sensor should have).
So I think there is no other possibility to assign a nice looking name than put it into the name parameter.
Thank you.

The sensors and a lot of other devices can be customized. friendly_name is not used in the device configuration itself but name serves the same purpose.

Thank you for your answer. Customizing works fine for me. :wink: :slight_smile: