Multiple trackers group badge

Hi,

I want to add a badge that shows the status of a group of trackers, I’ve created a template sensor and it creates a badge (the right badge in the image) but I want it to look like the device tracker badge (on the left), is it possible?

Thank you in advance.

Have you ever found a solution for this, I have the same problem and can’t figure out what to do to make it look like the badge on the left