You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Homeassistant MQTT auto discovery complains about a missing name in device info:
2025-01-28 17:08:27.088 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: button 179357f5 query_lockstate
2025-01-28 17:08:27.089 INFO (MainThread) [homeassistant.components.mqtt.entity] MQTT device information always needs to include a name, got {'unique_id': '179357f5_query_lockstate', 'enabled_by_default': False, 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'payload_press': '1', 'device': {'identifiers': ['nuki_179357f5'], 'connections': []}, 'name': 'Query lock state', 'command_topic': 'nuki-garten/lock/query/lockstate', 'availability': [{'topic': 'nuki-garten/maintenance/mqttConnectionState', 'payload_available': 'online', 'payload_not_available': 'offline'}], 'qos': 0, 'payload_not_available': 'offline', 'encoding': 'utf-8', 'payload_available': 'online', 'retain': False, 'availability_mode': 'latest'}, if device information is shared between multiple entities, the device name must be included in each entity's device configuration
2025-01-28 17:08:27.098 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: button 179357f5 query_config
2025-01-28 17:08:27.098 INFO (MainThread) [homeassistant.components.mqtt.entity] MQTT device information always needs to include a name, got {'unique_id': '179357f5_query_config', 'enabled_by_default': False, 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'payload_press': '1', 'device': {'identifiers': ['nuki_179357f5'], 'connections': []}, 'name': 'Query config', 'availability_mode': 'all', 'command_topic': 'nuki-garten/lock/query/config', 'availability': [{'topic': 'nuki-garten/maintenance/mqttConnectionState', 'payload_available': 'online', 'payload_not_available': 'offline'}, {'topic': 'nuki-garten/lock/availability', 'payload_available': 'online', 'payload_not_available': 'offline'}], 'qos': 0, 'payload_not_available': 'offline', 'encoding': 'utf-8', 'payload_available': 'online', 'retain': False}, if device information is shared between multiple entities, the device name must be included in each entity's device configuration
2025-01-28 17:08:27.101 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: button 179357f5 query_commandresult
2025-01-28 17:08:27.101 INFO (MainThread) [homeassistant.components.mqtt.entity] MQTT device information always needs to include a name, got {'unique_id': '179357f5_query_commandresult', 'enabled_by_default': False, 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'payload_press': '1', 'device': {'identifiers': ['nuki_179357f5'], 'connections': []}, 'name': 'Query lock state command result', 'availability_mode': 'all', 'command_topic': 'nuki-garten/lock/query/lockstateCommandResult', 'availability': [{'topic': 'nuki-garten/maintenance/mqttConnectionState', 'payload_available': 'online', 'payload_not_available': 'offline'}, {'topic': 'nuki-garten/lock/availability', 'payload_available': 'online', 'payload_not_available': 'offline'}], 'qos': 0, 'payload_not_available': 'offline', 'encoding': 'utf-8', 'payload_available': 'online', 'retain': False}, if device information is shared between multiple entities, the device name must be included in each entity's device configuration
2025-01-28 17:08:27.164 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: button 179357f5 unlatch
2025-01-28 17:08:27.165 INFO (MainThread) [homeassistant.components.mqtt.entity] MQTT device information always needs to include a name, got {'unique_id': '179357f5_unlatch', 'enabled_by_default': False, 'payload_press': 'unlatch', 'device': {'identifiers': ['nuki_179357f5'], 'connections': []}, 'name': 'Open', 'availability_mode': 'all', 'command_topic': 'nuki-garten/lock/action', 'availability': [{'topic': 'nuki-garten/maintenance/mqttConnectionState', 'payload_available': 'online', 'payload_not_available': 'offline'}, {'topic': 'nuki-garten/lock/availability', 'payload_available': 'online', 'payload_not_available': 'offline'}], 'qos': 0, 'payload_not_available': 'offline', 'encoding': 'utf-8', 'payload_available': 'online', 'retain': False}, if device information is shared between multiple entities, the device name must be included in each entity's device configuration
2025-01-28 17:08:27.165 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: button 179357f5 lockngo
2025-01-28 17:08:27.165 INFO (MainThread) [homeassistant.components.mqtt.entity] MQTT device information always needs to include a name, got {'unique_id': '179357f5_lockngo', 'enabled_by_default': False, 'payload_press': 'lockNgo', 'device': {'identifiers': ['nuki_179357f5'], 'connections': []}, 'name': "Lock 'n' Go", 'availability_mode': 'all', 'command_topic': 'nuki-garten/lock/action', 'availability': [{'topic': 'nuki-garten/maintenance/mqttConnectionState', 'payload_available': 'online', 'payload_not_available': 'offline'}, {'topic': 'nuki-garten/lock/availability', 'payload_available': 'online', 'payload_not_available': 'offline'}], 'qos': 0, 'payload_not_available': 'offline', 'encoding': 'utf-8', 'payload_available': 'online', 'retain': False}, if device information is shared between multiple entities, the device name must be included in each entity's device configuration
2025-01-28 17:08:27.166 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: button 179357f5 lockngounlatch
2025-01-28 17:08:27.166 INFO (MainThread) [homeassistant.components.mqtt.entity] MQTT device information always needs to include a name, got {'unique_id': '179357f5_lockngounlatch', 'enabled_by_default': False, 'payload_press': 'lockNgoUnlatch', 'device': {'identifiers': ['nuki_179357f5'], 'connections': []}, 'name': "Lock 'n' Go with unlatch", 'availability_mode': 'all', 'command_topic': 'nuki-garten/lock/action', 'availability': [{'topic': 'nuki-garten/maintenance/mqttConnectionState', 'payload_available': 'online', 'payload_not_available': 'offline'}, {'topic': 'nuki-garten/lock/availability', 'payload_available': 'online', 'payload_not_available': 'offline'}], 'qos': 0, 'payload_not_available': 'offline', 'encoding': 'utf-8', 'payload_available': 'online', 'retain': False}, if device information is shared between multiple entities, the device name must be included in each entity's device configuration
2025-01-28 17:08:27.178 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: button 179357f5 query_battery
2025-01-28 17:08:27.179 INFO (MainThread) [homeassistant.components.mqtt.entity] MQTT device information always needs to include a name, got {'unique_id': '179357f5_query_battery', 'enabled_by_default': False, 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'payload_press': '1', 'device': {'identifiers': ['nuki_179357f5'], 'connections': []}, 'name': 'Query battery', 'availability_mode': 'all', 'command_topic': 'nuki-garten/lock/query/battery', 'availability': [{'topic': 'nuki-garten/maintenance/mqttConnectionState', 'payload_available': 'online', 'payload_not_available': 'offline'}, {'topic': 'nuki-garten/lock/availability', 'payload_available': 'online', 'payload_not_available': 'offline'}], 'qos': 0, 'payload_not_available': 'offline', 'encoding': 'utf-8', 'payload_available': 'online', 'retain': False}, if device information is shared between multiple entities, the device name must be included in each entity's device configuration
Here is an example of a corresponding MQTT config topic:
Not sending the name has zero impact on functionality and as such it's a pretty useless requirement / INFO message (HA choosing not to make it into more than an INFO message also gives an idea of the abscence of impact).
We'll add the name to all entities to prevent the message though.
PROBLEM DESCRIPTION
Homeassistant MQTT auto discovery complains about a missing name in device info:
Here is an example of a corresponding MQTT config topic:
Maybe the
dev
object needs the name attribute provided?I am using Homeassistant 2024.11.3.
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
TO REPRODUCE
Restart nuki hub to trigger HA MQTT auto discovery.
EXPECTED BEHAVIOUR
No home assistant errors.
The text was updated successfully, but these errors were encountered: