Automations - add parallel actions / or bypass failed actions

Hello,

I have a little issue concerning actions on an automation.

On the following scenario, when the automation is triggered and if the Android notify service fail (TV off), the next action is ignored (switch on the light)

Scénario example:

alias: Nouveau courrier disponible
trigger:
  - entity_id: xxxx
    platform: state
    to: 'on'
condition: []
action:
  - service: notify.android_tv_fire_tv
    data:
      message: Du courrier est arrivé dans la boîte aux lettres!
      title: Boîte aux lettres ouverte
  - service: light.turn_on
    target:
      device_id: xxx
initial_state: 'on'
mode: single
max: 10

It can be interesting to be able to ignore failure action so that next action can be executed without issue.

Another feature idea can be to be able to run multiple actions in parallel.

For people that will tell me ‘change the order’, it’s not possible on this case (it’s not the full scenario in the example and Android one need to be executed before the next one (too slow)).

Best regards,

All of this can be done by putting some of your actions in scripts and calling them from the automation. They can be run in parallel, or series depending on how you call them. They can cause the automation to halt on error, or not, again depending on how you call them.

https://www.home-assistant.io/integrations/script/#waiting-for-script-to-complete

Thank you, will try it!
And it’s not possible to do it via the UI, right?