HASS.Agent-Integration icon indicating copy to clipboard operation
HASS.Agent-Integration copied to clipboard

Discovered entities with a name that starts with the device name

Open tankdeer opened this issue 1 year ago • 1 comments

Release 2023.8.0 of Home Assistant introduced some changes to how MQTT entities work. Documented here:

https://developers.home-assistant.io/blog/2023-057-21-change-naming-mqtt-entities/

And now shows with this warning/fix in Home Assistant:

Some MQTT entities have an entity name that starts with the device name. This is not expected. To avoid a duplicate name the device name prefix is stripped of the entity name as a work-a-round. Please inform the maintainer of the software application that supplies the affected entities to fix this issue.

Here's an example of the warning logged in the log file:

2023-08-02 16:20:52.841 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'availability_topic': 'homeassistant/sensor/Ndnd/availability', 'icon': 'mdi:lan', 'unique_id': 'Ndnd_network_total_network_card_count', 'device': {'identifiers': ['hass.agent-Ndnd'], 'manufacturer': 'LAB02 Research', 'model': 'Microsoft Windows NT 10.0.19044.0', 'name': 'Ndnd', 'sw_version': '2022.20.0.0', 'connections': []}, 'name': 'Ndnd_network Network Card Count', 'state_topic': 'homeassistant/sensor/Ndnd/Ndnd_network/Ndnd_network_total_network_card_count/state', 'qos': 0, 'enabled_by_default': True, 'payload_not_available': 'offline', 'availability_mode': 'latest', 'force_update': False, 'payload_available': 'online', 'encoding': 'utf-8'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes '_network Network Card Count'

tankdeer avatar Aug 02 '23 23:08 tankdeer