core icon indicating copy to clipboard operation
core copied to clipboard

ESPhome entity naming not using friendly_name

Open wangmaster opened this issue 1 year ago • 3 comments

The problem

From the documentation https://www.home-assistant.io/integrations/esphome/

 Friendly naming

    Entity name is a combination of the friendly name and component name
    Entity ID is derived from the entity name with the device name prepended

However I have a ratgdo with the following

substitutions:
  name: ratgdov25i-<hash>
  #name: garage-door-opener
  friendly_name: Garage Door Opener
  #friendly_name: ratgdov2.5i <hash>
packages:
  ratgdo.esphome: github://ratgdo/esphome-ratgdo/v25iboard.yaml@main
esphome:
  name: ${name}
  name_add_mac_suffix: false
  friendly_name: ${friendly_name}

If I set friendly_name: Garage Door Opener the entity ID naming ends up being cover.ratgdov25i_<hash>_door

This doesn't match what the documentation says it's supposed to do with friendly_name unless I'm misreading the documentation? Is this correct?

What version of Home Assistant Core has the issue?

2024.1.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

ESPHome

Link to integration documentation on our website

https://www.home-assistant.io/integrations/esphome/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

wangmaster avatar Jan 20 '24 04:01 wangmaster

Hey there @ottowinter, @jesserockz, @kbx81, @bdraco, mind taking a look at this issue as it has been labeled with an integration (esphome) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of esphome can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign esphome Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


esphome documentation esphome source (message by IssueLinks)

home-assistant[bot] avatar Jan 20 '24 04:01 home-assistant[bot]

Seems to be a duplicate of #99937

abichinger avatar Feb 09 '24 12:02 abichinger

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.