Adding multiple conditions

I am attempting to add two conditions to an automation.
This is what the first condition is

  condition:
    - condition: template
      value_template: >
        {% set values = ['Good','Moderate','Unhealthy for Sensitive Groups','Unhealthy','Very unhealthy','Hazardous'] %}
        {{trigger.from_state.state in values and trigger.to_state.state in values}}

I want to add a time condition to only fire the automations at set time like this

  condition:
    - after: 08:00:00
      before: 19:00:00
      condition: time

But I can not seem to get the yaml code correct.
Can any one help me out.
Thank you.

Did you look at the example here: https://www.home-assistant.io/docs/automation/condition/ ?
Or even easier by using UI i.e Configuration->Automations and then hit the edit-Button

Listing them like this means that both conditions (Template Condition AND Time Condition) must evaluate to true to allow execution of the automation’s action.

  condition:
    - condition: template
      value_template: >
        {% set values = ['Good','Moderate','Unhealthy for Sensitive Groups','Unhealthy','Very unhealthy','Hazardous'] %}
        {{trigger.from_state.state in values and trigger.to_state.state in values}}
    - condition: time
      after: '08:00:00'
      before: '19:00:00'

Thanks, worked perfectly.