Use field value as Alias

Hey guys,

I have some data coming out of Home Assistant and I am looking for some help to format a graph properly.

Here’s what my data looks like:

I would ike to use the value i the field “friendly_name_str” as the alias for each of the lines.
Currently, it is using the entity_id which is correct but is not human readble.
(see on graph below)

I hope this makes sense and that there is a simple way to group the graph to achieve this.

Thanks in advance