Entity not available when less than a day for rest call

As the subject mentioned I have a rest call that checks how long a server is up:

- platform: rest
  resource: 'https://192.168.0.1:9999/api/v1/queries/check_uptime/commands/execute'
  method: GET
  username: admin
  password: <password>
  name: HomeServer Up Time
  authentication: basic
  verify_ssl: false
  value_template: "{{ value_json.lines[0].message | regex_findall_index('OK: uptime: (\\d*.\\s\\d*.)') }}"

If it’s less than 24 hours the sensor doesn’t get created and I get in lovelace Entity not available: sensor.homeserver_up_time

I’m thinking it may be reporting CRITICAL: uptime: 21:40h and that’s causing a mismatch. Anyway to make that value_template work for like the above which is a match of OK: uptime: 9w 5d 08:32h and the CRITICAL one?