Uptime sensor not showing minutes anymore

I had to change this slightly:

 - platform: template
    sensors:
      up_time:
        friendly_name: Up Time
        value_template: >
          {{ ((now() - strptime(states('sensor.uptime'), '%Y-%m-%dT%H:%M:%S%f%z')) | string)[:-10] }}
1 Like