So I’m a little confused by some of the documentation I’m seeing. I’m using the following in my ratgdo device yaml file
esphome:
name: ${name}
name_add_mac_suffix: false
friendly_name: Garage Door Opener
To try to change the entity_id to something that’s more friendly like cover.garage_door_opener_door
instead of cover.ratgdov25i_<macsuffix>_door
Which based on what I’m reading from the esphome integration documentation is what I’m supposed to do, but the device entities are not using the friendly name. I’ve tried removing the ratgdo device and readding it thinking maybe it’s an initial configuration thing, but that’s not doing either.
Am I missing something obvious or is this something that just isn’t possible?
It should slugify the name (not the friendly name) and use that as the prefix for all entities. You show a variable for the device name; did you define that name under the substitutions: section?
This is how mine look when I use substitutions:
substitutions:
devicename: gas-meter
friendly_name: Gas Meter
esphome:
name: $devicename
friendly_name: $friendly_name
And when I define a sensor in the code and give it name: Rate then I will end up with an entity called sensor.gas_meter_rate
This is what I’m using that seems to have been automaticaly created for me as part of using the esphome firmware on the ratgdo to add the device to homeassistant:
The commented out name/friendly_name are things I tried and none of them seem to do what I’m trying to achieve which is an entity ID that looks like cover.garage_door_opener_door
I mean this ESPHome - Home Assistant seems pretty clear that’s the behavior that is supposed to happen right?