Having issue with entityid names with some new plugs - cant rename - have I added them incorrectly?

I bought a load of ATHOM Tech ESPHome devices - specifically ones without a relay. I added them to my network, gave them thri fixed IP address, then added then to the ESPHome integration - the entity ID names then got added are such as - sensor.athom_without_relay_plug_f26ff4_power. No biggie I through as in the later home assistant versions, all my stuff can be searched by room/device/densor - for example, this devices is Kitchen / Coffee Machine / Power.

My issue however comes in automatin edits in yaml, as these reference the actual entity ID - so sensor.athom_without_relay_plug_f26ff4_power.

I am thinking I would like to rename all these.

In ESPHOME gui - I renamed the athom_without_relay_plug_f26ff4 to say ‘Coffee Machine’ like below by clicking the three dots and rename -

That did not do it, so I clicked into it and tried rename entitiy ID’s, and ‘IDs will not change’.

So - I dont know where I am going wrong ? I have 8 of these to do - and a load of automations to re-do that have been setup too - so it is quite a task and I was going to do them one by one.

Do I need to remove them and add them is a different way ? When I added them, it just asked me for a device name (Coffee Machine) and an Area (Kitchen), but that never changed the entity ID to what I have in all the other non athom tech devices I have.

Have you tried this? I cant’t really tell from your description.




I think I know the issue here now.
These devices came with the esphome firmware already installed, whereas others I have updated through esphome with my own names.
And I guess I cant change these after they are added for some reason.
I have another plug to add now, and I can download the athom tech script for these, then edit it and flash the device, thereby giving it my own name.

Leaning more as I go. So please be gentle…

In ESPHOME, I never ‘discovered’ the devices to start with - where I could then have given them a nicer friendlier unique name I guess.

I have then since found that the config for these are on discord from Athom tech.

So to ‘took ownership’ (I think that was the term) in esphome addon of the one that is the coffee machine, then gave it a name of coffee machine instead of smart plug f26ff4. It did some compiling I think - as it would not let me move forward. I then edited its config with the one from athomtech, modded that for the name and friendly name, plus my wifi section, left the encryption key, and compiled that and installed it wirelessly to the device.

The name it has now on the website for itself is ‘coffee machine f26ff4’ - which is a step in the right direction at least for identifying these in automations.

So I allowed it to be added to the esphome integration, then keyed in its encryption key, and it added - but with the stupid horrible identityID again - but this time, when I renamed id’s, it allowed me to rename them all!

So I got there in the end.

BUT - did I need to do all these steps in the first place ? Im hoping someone with more esphome or HA experience can tell me if I could in some way have renamed the Identity ID’s without all the above ?

.

see name_add_mac_suffix

Nice - I can see that now -

name_add_mac_suffix: true

I dont I will stop learning about this stuff. So now I can re-compi;e with this set to false and be like my other esphome devices (only 4).

But, I am still hopeful that I can rename the identityID’s without going through all this rigmarole…

OK - done the coffee machine and done the dishwasher. 6 still to go.

Finally finished them all - got faster and faster as I did them.
No more yucky entityID’s.

1 Like