Friendly name?

Hi All

I have been struggling with this for some time and I think I am making this to complicated :slight_smile:

I have added many groups in order to get them organized, but how do I get the Friendly names to work with this?
Do I really have to go and use customize? or is there a easy way to use friendly names?

Example: Names are generated from the IOS app names using IOS discovery and HASSIO

  home_iphone_group:
    name: iPhones
    entities:
      - sensor.caspersensiphone7p_battery_level
      - sensor.caspersensiphone7p_battery_state
    # - device_tracker.caspersensiphone7p
      - sensor.ninas_iphone_6s_battery_level
      - sensor.ninas_iphone_6s_battery_state
    # - device_tracker.ninas_iphone_6s
      - sensor.thomass_iphone_battery_level
      - sensor.thomass_iphone_battery_state
    # - device_tracker.thomass_iphone
      - sensor.victoriasiphone_battery_level
      - sensor.victoriasiphone_battery_state
    # - device_tracker.victoriasiphone

This works bye the way but isnt really “pretty”
I didn’t want to ask this question but any effort to resolve it by myself have generated multiple issues…

Regards
Casperse

It depends on the component. Many components allow you to name in the setup. Discovered devices can also be renamed after discovery by changing the name attribute. Just make sure you don’t touch the MAC address.

EDIT: your last resort is the customize section. Personally I like the customize section because it keeps your UI names in one spot.

I really would like to keep it simple but also doing it the same for all?
I finally got the multiple trackers to work together so I really don’t want to change the known_devices files
Anyway to just input some friendly names above the “ugly” ones and have them displayed in the group?

How would I go about this in the customize section?

Ah ok, that’s not the friendly name. That’s the entity_id. For that, you need to manage the entity registry.

https://www.home-assistant.io/docs/configuration/entity-registry/

EDIT: For clarification, the friendly name is the name that appears in the UI.

So found the file: entity_registry.yaml

sensor.caspersensiphone7p_battery_level:
config_entry_id:
name:
platform: ios
unique_id: level_henrik_iphone

Change to: (UPDATED)

sensor.caspersensiphone7p_battery_level
config_entry_id:
name: My battery level
platform: ios
unique_id: level_henrik_iphone