Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discovered entities with a name that starts with the device name #32

Open
tankdeer opened this issue Aug 2, 2023 · 1 comment
Open

Comments

@tankdeer
Copy link

tankdeer commented Aug 2, 2023

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'
@amadeo-alex
Copy link

Not HASS.Agent-Integration issue, rather a HASS.Agent "itself" issue: LAB02-Research/HASS.Agent#337

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants