When looking in Home Assistant's list of auto-discovered MQTT devices the Device is named as the Template, and not the Friendly Name.

In the picture above you can see here, I have a "Boys Globe", and a "Grid Monitor House" device.
The Boys Globe is running v8.2.0, and the incorrectly named one is running v8.2.0.5

This is a picture of both devices running v8.2.0
Install v8.2.0 and set a nice friendly MQTT name.
Look for this name in Home Assistant.
Upgrade to v8.2.0.5 and when the device restarts, the name gets changed to the Template, and not the Friendly Name.
I seem to remember that v8.2.0.4 was working fine too.
The device name should be the expected one.
By design on latest devs, see https://github.com/arendst/Tasmota/pull/8242 .
Friendlyname1 is the name assigned to the first relay and can cause some troubles when you have more than a relay assigned on device.
See this issue on HA to better understanding why I changed it.
Two solutions:
Template 255 under Tasmota and change the name of it to one you prefer and then activate it on WebUI or using module 0 command in console;I did try creating my own Template but found that it will use that template name for both the Device and the Model name in HA. I have ended up renaming the device in Home Assistant and that works for me.
It's just a pain that if you add multiple devices in one go, you have to go into HA and remember to rename them before adding the next one otherwise you have no idea which device is which.
Noted, thanks for your feedback.
For now is the only solution because use Friendlyname1 was not correct in the first place and that is an old story with a lot of discussion behind.
Perhaps in the future I'll add a configurable device name.
Maybe you could get it to send the hostname as the friendly name like ESPHome does.
Wow. Upgrading from 8.2.0.4 to 8.3.0 is now impossible to keep your HA setup running nicely.
If you have SetOption19 1 set to enable Auto Discovery all your devices rename themselves to "Generic" (the Template I use), and then HA creates new sensors/switches etc as generic_switch.
Then, you can't rename anything, as they all share the same names.
My only upgrade path is:
I think a warning should go on the release notes as upgrading to the latest release is now a really bad end user experience ;-(
Ok, i have to say the "idea" behind renaming all your devices in HA is a great one... but the Upgrade requires that you rename all your devices to the SAME name before upgrading. That way HA knows to ignore the MQTT Sent names, and keeps the current ones.
Rock on Tasmota!! :-)
Richard,
sorry if it gave you some extra work but sadly sometimes we must take some uncomfortable steps to archive a better experience.
If you look on first page of docs the change of the name for Discovery is shown as breaking change, I have also added a note on Discovery docs advising the name of the device is now the name of the module/template.
Since is an important change in the structure, the best way to update all the device at the same time is to broadcast a SetOption19 0, setup all your devices with a new template name you like and then broadcast a setoption19 1.
Alternatively, and that's my personal suggestion, delete the device under HA, disable the discovery on device, update its configuration and then enable the discovery again one by one.
Actually, I've attempted adding a new device to a new setup and it still goes badly.
I'm using a Wemos D1 Mini, connected to a PZEM0016 via a R485/TTL board.
When I first type 'SetOption19 1' the single power monitor is added to HA, However, when I restart the Wemos D1, multiple sensors are added to HA.
For example this:
sensor.grid_monitor_house_energy_reactivepower
Gets changed to this:
sensor.grid_monitor_house_energy_reactivepower_2
It seems that ALL of my original sensors have been renamed to _2, and some new _1 ones have been created.
I've even got some crazy ones such as this:
sensor.grid_monitor_house_energy_current_2_2
I'm using it since I introduced it and I don't have this issue with HA 109.0 (didn't upgrade to latest yet).
Remove completely the integration from HA (not the single device) to start over with a fresh database.
HA appends _1, _2 when the id of the device was already previously discovered.
Normally I'd say yes, but my MQTT server says otherwise:

Oh, and this is with a deleted, and re-installed MQTT server. So everything is fresh.
Ah, this seems to be due to the Template Name being truncated to 14chars on a 8.2.0 -> 8.3.0 upgrade?
Before Upgrade at 8.2.0 the Template I created was called "Grid Monitor House" Module, and after when 8,3.0 booted it was just ""Grid Monitor H" Module,
Now I don't see any new data ;-(

This is what I get in 8.2.0:

Let me check with the new HA release. Hold on.
I can reproduce the issue with long names.
I'll fix it ASAP.