Entry-name derived from MQTT message

I want the name of my entry dependent from a MQTT message.

I want, as an example, name the entry “dec.23” and the value “100”.

The name “dec.23” depends of a message from the MQTT topic “xx/Date” with the value “dec.23”.
The value comes from the massage “xx/Value” and is, in this example “100”.

Is this possible?

what do you mean by

Do you want an input_text to contain that data or are you trying to create an entity and you want its name to be the mqtt topic name?

I want that name show up in my hass webpage.

In steat of a fixed name like “switch living room” I want this name depend on the value of a MQTT toppic/message

Then I don’t think it’s possible. You can change an entity’s status (whether name or attributes) but you can’t change an entity’s name or ID.
There may be a way in lovelace-ui for this to be done, but I’m not proficient in that yet

You can create entities with a certain name using MQTT discovery. I’m not exactly sure if that is what you want though

Thanks for your reply.
The point is, I collect data over a long period (hours, days, months) new data replaces the oldest data. So the labels (f.i. dates or time) changes every day or every hour. I don’t think thats possible with MQTT discovery.