feature-requests icon indicating copy to clipboard operation
feature-requests copied to clipboard

Add option to not prepend friendly_name to Home Assistant entities

Open DrBlokmeister opened this issue 1 year ago • 1 comments

Describe the problem you have/What new integration you would like

When adding a friendly_name to a device, this name is displayed in the ESPHome dashboard, improving user friendliness. However, this also prepends the friendly_name to entities in Home Assistant. When using a configuration like:

substitutions:
  device_name: "Plug Electric Car"

esphome:
  friendly_name: ${device_name}

sensor:
  - platform: total_daily_energy
    name: "${device_name} Energy Today"
    power_id: "power"

Home Assistant will add the entity sensor.plug_electric_car_plug_electric_car_energy_today, which is unwanted.

It would be nice if we got the option to disable prepending of the friendly_name to any entities in Home Assistant.

Please describe your use case for this integration and alternatives you've tried:

Currently two options are available:

  • not using friendly name, which makes the ESPHome dashboard look more ugly.
  • Not manually prepending the device name to the entities. However, when I have many entities referring to the same packaged file (such as network diagnostics) and these entities do not have a friendly name defined, suddenly the naming of the sensor would just be sensor.wifi_signal for a random device.

Additional context

I was a bit unsure if this is an ESPHome feature request or a Home Assistant feature request. If I'm in the wrong category, please let me know.

DrBlokmeister avatar May 26 '24 06:05 DrBlokmeister

+1 this is kind of annoying :) Also see #2476 and in particular https://github.com/esphome/feature-requests/issues/2476#issuecomment-1844034117 which I believe is describing the same issue (although I find your example quite helpful in describing this too).

paravoid avatar Jun 15 '24 22:06 paravoid

This seems to have become a bigger problem starting in April this year

https://github.com/esphome/feature-requests/issues/3174

Makr91 avatar Jul 01 '25 16:07 Makr91

As I have just pointed out in https://github.com/esphome/feature-requests/issues/2476#issuecomment-3042901117, the duplication seems to depend on the used view...

caco3 avatar Jul 06 '25 22:07 caco3