i have for example such switch and script
all other switchs and actions will wait until this script is completed
how to do parallel working this switch and all other automations ?
switch:
- platform: template
switches:
on_off_comp:
value_template: "{{ is_state('input_boolean.on_off_comp', 'on') }}"
turn_on:
- service: switch.turn_on
entity_id: switch.on_off_samsungtv
turn_off:
- service: script.turn_on
entity_id: script.turn_off_computer
script:
turn_off_computer:
sequence:
- service: switch.turn_off
entity_id: switch.on_off_only_comp
- service: switch.turn_off
entity_id: switch.on_off_ambilight
- delay: '00:00:05'
- service: switch.turn_off
entity_id: switch.on_off_samsungtv
- delay: '00:00:15'
- service: switch.turn_off
entity_id: switch.plug_158d000354f85b