Tasmota devices entity names have changed recently

So today, I noticed some issues in my Tasmota, so I deleted and reinstalled the tasmota integration.

Then, I noticed all of my entities of Tasmota changed names. Before, the name of the entity was just the friendly name (e.g. “Office AC”). Now, the name is both the device name and friendly name (e.g. “Office Appliances Office AC”).

For example, one of my entities is now switch.office_appliances_office_ac
but before reinstalling tasmota it was switch.office_ac

Can I disable/revert this? I really have no care about the device name, only for the friendly names, how it used to be.

I fixed it by removing the friendly names for all the single-entitiy devices I had and changing the hassio automations for the multi-entitiy tasmota devices.

Do you also see the switch/light name (not just the id) being concatenated too? Have I missed this happening before or is that also new?

I was wondering why Google assistant was struggling to understand me anymore… it looks like homeassistant is setting the name of the switch to say

"<device name> <friendly name>"

“Back Garden Bridge Light Back Garden Bridge Light” in my case where my tasmota device is called “Back Garden Bridge Light” and the friendly name of my switch is “Back Garden Bridge Light”. I have around 70 devices so this will be a pain to manually rename them. And even more of a pain if I ever have to reinstall the Tasmota integration and re add them all…

Is this new or did I miss this somewhere. It worked OK “some while back” but I only just noticed this.

I don’t much care for having the device name, but some people will. Is there an option somewhere to decide how the names are created?

I don’t think it should matter if the device only has one switch/light… so the solution above is maybe a little more of a workaround than a solution and quite inconsistent. Also a device might be generic such as a controller for several rooms but have friendly names for each switch fir example. In this case it doesn’t make sense to concatenate both names and send them to Google or be present in HA itself at all. It means manually changing them all now and for any new ones which has increased the work required to adopt new devices.

Is this related to Tasmota 2023.9.0 now show device name and frendly name from tasmota devices · Issue #100089 · home-assistant/core · GitHub

Andy

1 Like

I cant find any option for the naming.

I noticed this a couple of months ago, but didn’t do anything about it. Looking back at it now, I think it may stem from a MQTT change in 2023.8…

Naming of MQTT entities

The naming of MQTT entities has been changed to be aligned with the entity naming guidelines:

  • The has_entity_name entity will be set to True on all MQTT entities.
  • This means any MQTT entity which is part of a device will automatically have its friendly_name attribute prefixed with the device name.
  • Unnamed binary_sensor, button, event, number, and sensor entities will now be named by their device class instead of being named “MQTT binary sensor” etc.
  • It’s now allowed to set an MQTT entity’s name to None to mark it as the main feature of a device.