Changing the name of a component that was automatically discovered

I’m trying to change the name of a WeMo switch. I have discovery on, and the switch was automatically discovered and works fine. I’m trying to change the name though, and can’t figure out how. I added a customize: section under homeassistant: in configuration.yaml. I’m not sure how to reference it in my customize section though. I’ve tried switch.wemo_switch, switch.wemo_switch_1 (which was used in a sample configuration.yaml file I saw somewhere on here), switch.“WeMo Switch” (since in the gui it gets listed as WeMo Switch) but none of these seem to work.

customize:
    switch.wemo_switch
        homebridge_name: light
        friendly_name: light

None of this seems to make any difference. I’ve reloaded core after changing the config file too.

What am I doing wrong?

Thanks!

You forgot to run a config check, either manually or via the GUI :wink:

You’re missing a : after the device:

customize:
    switch.wemo_switch:
        homebridge_name: light
        friendly_name: light

Thanks! Fixed that colon issue, but still having the same problem.

It seems like this should work from everything I’ve read, but two questions I haven’t figured out the answer for:

  1. What is the name of a component that’s discovered automatically (the name you should use to refer to it in config.yaml)? Is there a place to look it up?
  2. What changes to name? homeassistant_name? friendly_name?

I’m guessing if I know the answer to these I will get this working.

By the way, the reason I’m trying to change the name is because I’m using homebridge so I can control my light (plugged into the wemo switch) with Siri on an iPhone. Right now it works, but I have to say, “Hey Siri, turn on the wemo switch”. I’d like to be able to say, “Hey Siri, turn on the light”.

Have you read the documentation yet? Right at the bottom it says:

New customize information will be applied the next time the state of the entity gets updated.

  1. That’s the entity_id, which you can find by clicking on the name of the entity in the GUI
  2. There’s nothing in the documentation about homeassistant_name, it’s only friendly_name, which is the name displayed in the GUI.