Good day! I would like to run different scripts using one automation. But unfortunately I don’t understand how to do it. Now I have implemented it like this:
- alias: После поискать выбрать 1 фильм
trigger:
platform: event
event_type: yandex_intent
event_data:
intent: videobox_enter_film
condition:
condition: template
value_template: "{{ '1' in trigger.event.data.what }}"
action:
- service: script.turn_on
entity_id: script.enter_1_film_play
- alias: После поискать выбрать 2 фильм
trigger:
platform: event
event_type: yandex_intent
event_data:
intent: videobox_enter_film
condition:
condition: template
value_template: "{{ '2' in trigger.event.data.what }}"
action:
- service: script.turn_on
entity_id: script.enter_2_film_play
- alias: После поискать выбрать 3 фильм
trigger:
platform: event
event_type: yandex_intent
event_data:
intent: videobox_enter_film
condition:
condition: template
value_template: "{{ '3' in trigger.event.data.what }}"
action:
- service: script.turn_on
entity_id: script.enter_3_film_play
But I would like everything to be in one automation.