i’m still not sure i’m getting it. you’ll have to be more verbose. gpt might also be able to answer you (i’m not a gpt hater…) but you’d need to be a lot more verbose and specific for it to work well for you.
in any case, here’s my guess as to what you mean, you can create a helper like this and set the template here like so:
the other interpretation i might have is that you want to create a sensor with the attributes being name, distance, duration and pace, but that would baffle me because your sensor.last_activites is already that plus a few other attributes which you could ignore…