Automation rule with conditions per trigger

Hello,

Within an automation rule, is it possible to have multiple trigger with their respective conditions?
If yes what would be the format?
(I have tried unsuccessfully to indent the condition parameter to be part of the trigger (trigger being specific time and condition being some day of the week in my example).

Thanks

Gilles95

You could use a regular template condition and use the available trigger data as seen here: https://home-assistant.io/docs/automation/templating/#available-trigger-data to do something like:

  condition:
    condition: template
    value_template: >
      {%- if(trigger.entity_id == 'xxx' -%}
        {{ states.sensor.something.state == "on" }}
      {%- elif(trigger.entity_id == 'yyy' -%}
        {{ states.sensor.somethin_else.state == "on" }}
      {%- endif -%}

~Cheers

Thank You. I will have a look.