I have a procedure I run (on an external computer) that sends MQTT discovery messages to Home Assistant. I group some of my lights into a device with the name: “HomeVisionXL X10”.
Example:
homeassistant/light/HVXLb1d0d912ed315aad_C_5/config
{
"uniq_id": "HVXLb1d0d912ed315aad_C_5",
"name": "C-5 Kitchen Table",
"ret": false,
"qos": 1,
"dev": {
"ids": [
"HVXLb1d0d912ed315aad_X10"
],
"name": "HomeVisionXL X10",
"mdl": "HomeVision",
"mf": "CustomSolutions"
},
"~": "stat/KitchenTable/RESULT",
"stat_t": "~",
"cmd_t": "cmnd/KitchenTable/POWER",
"pl_on": "ON",
"pl_off": "OFF",
"stat_val_tpl": "{{ value_json.POWER }}",
"bri_cmd_t": "cmnd/KitchenTable/POWER",
"bri_stat_t": "~",
"bri_scl": "100",
"bri_val_tpl": "{{ value_json.Dimmer }}",
"on_cmd_type": "brightness"
}
The above creates an entity, “light.c_5_kitchen_table
”, and a Device, “HomeVisionXL X10
”.
Looking at the Device in the GUI shows the light as “C-5 Kitchen Table
” in the “Controls” list, as expected.
But, when I add the light to an entity card, I get this default name:
HomeVisionXL X10 C-5 Kitchen Table
Why is the device name prepended to the Entity’s name? How to I prevent that?
I know I can manually edit the entity card to delete the device name portion in the name, but I have many entities like this spread out over 10+ devices.
I checked the forum and the web in general, and haven’t found an answer.