Naming a device

When I put a name into the field, is that what all the entities associated with it are name?

When I first tried to add it, it said Power Switch with a a space between Power and Switch. I wanted to use a naming convention so I changed it to what I have in the screenshot.

I want the entities to be this convention:

switch.well_pump_1

This explains the conventions:

Thanks! I am wondering when I add the device, will the name in the name field above I give it pass to the entities or is that the friendly name?

You are adding a device so that’s the device name. What the entity names are dependent on what the integration sets, but the rules are what were listed above.

If I understand correctly, a device name of “Kitchen Light” would leave the “main” entity (that turns the light on/of) as Null, and the entity would end up light.kitchen_light.

If there’s also a “Electric Consumption [W]” entity in that case the entity would be "sensor.kitchen_light_electric_consumption_w

The friendly name ends up with the Device + Entity Name, unless you manually change (override) it then it’s just the name you enter. Hope I have that correct and I think the plan is to always prefix the device name regardless if the name has been overridden or not.

Anyway, it’s easy to test. And it’s helpful to see what changes by looking at the registry:

âžś  ~ cd /config/.storage
âžś  .storage jq . core.entity_registry | less
1 Like