HA 2025.5 ESPHome device names now on frontend

Here’s what I posted on discord. This will allow you to retain your entity names when upgrading to 2025.5 from any previous version.

  1. (only do this if you updated to 2025.5 already) Downgrade to 2025.4

  2. Run this in template editor

    {%- for e in integration_entities('esphome') %}
    {{ e }}:
      friendly_name: "{{ state_attr(e, 'friendly_name') }}"
    {%- endfor %}
    
  3. Add results from template editor into to customize.yaml

    Add the following to configuration.yaml if you have never customized entities via yaml.

    homeassistant:
      customize: !include customize.yaml
    

    Then create a file customize.yaml in your config folder and paste the results from the template.

  4. Restart HA

  5. Upgrade HA

  6. (optional) Remove customize.yaml and any references to it in configuration.yaml


If you already updated and made changes to other things and you can’t really downgrade, these steps will likely get the names back:

  1. Run this in the template editor

    {%- for e in integration_entities('esphome') %}
    {{ e }}:
      friendly_name: "{{ state_attr(e, 'friendly_name')|regex_replace('^' ~ device_name(e)~' ', '') }}"
    {%- endfor %}
    
  2. Add results from template editor into to customize.yaml

    Add the following to configuration.yaml if you have never customized entities via yaml.

    homeassistant:
      customize: !include customize.yaml
    

    Then create a file customize.yaml in your config folder and paste the results from the template.

  3. Restart HA

  4. (optional) Remove customize.yaml and any references to it in configuration.yaml

FYI This is marked as a solution for more optics only.

16 Likes