Hi.
Who knows how to set the “name” attribute for an mqtt device when creating it? It set to null, and the passed name attribute is written in the entity_registry to the “original_name” attribute.
For example, my auto-detection code:
{
"dev": {
"ids": "Light12_Dining",
"name": "Light12/Dining",
},
...
"cmps": {
"Light12_Dining4": {
"p": "light",
"uniq_id": "light.Light12_Dining4",
"def_ent_id": "light.Light12_Dining4",
"name": "Dining",
...
}
}
}
In the registry it looks like this:
… “name”: null,… “original_name”: “Dining”
In HA, the device is displayed with a name, but in order to transfer information about it to external integration, I have to manually fill in the Name.