LAB02-Research / HASS.Agent-Integration

HASS.Agent's Home Assistant integration. Adds notifications and mediaplayer capabilities to HASS.Agent - a Windows based client (companion app) for Home Assistant.
MIT License
101 stars 17 forks source link

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

Open tankdeer opened 11 months ago

tankdeer commented 11 months ago

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 commented 11 months ago

Not HASS.Agent-Integration issue, rather a HASS.Agent "itself" issue: https://github.com/LAB02-Research/HASS.Agent/issues/337