Skip to content

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

@tankdeer

Description

@tankdeer

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 15:33:30.970 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'availability_topic': 'octoPrint/mqtt', 'payload_available': 'connected', 'payload_not_available': 'disconnected', 'name': 'Ender 3 Print Status', 'unique_id': 'f3ced1a508db4ed5bd4f3d59757faf2c_PRINTING_S', 'state_topic': 'octoPrint/hass/printing', 'json_attributes_topic': 'octoPrint/hass/printing', 'json_attributes_template': Template<template=({{value_json.state|tojson}}) renders=0>, 'value_template': Template<template=({{value_json.state.text}}) renders=0>, 'device': {'identifiers': ['f3ced1a508db4ed5bd4f3d59757faf2c'], 'name': 'Ender 3', 'manufacturer': 'CREALITY', 'model': 'OctoPrint', 'sw_version': 'HomeAssistant Discovery for OctoPrint 3.6.3', 'connections': []}, 'qos': 0, 'enabled_by_default': True, 'availability_mode': 'latest', 'force_update': False, 'encoding': 'utf-8'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Print Status'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions