History Stats to HH:mm

Hi i have a platform like this

- platform: history_stats

    name: Chris PC Uptime

    entity_id:  switch.wake_chris

    state: 'on'

    type: time

    start: '{{ now().replace(hour=0, minute=0, second=0) }}'

    end: '{{ now() }}'

And im i want to show in a Gauce like above with HH:mm
Screenshot 2021-01-23 160846

I see that on Glance cant enter attribute:value must create Sensor Template can help with that ?
Also when inter on the glance i want to see weekly uptime stats or monthly if it possible