Why when I use automation.trigger it waits for other automation to finish.
actions:
- action: switch.toggle
metadata: {}
data: {}
target:
entity_id: switch.switchbot_1
- action: automation.trigger
metadata: {}
data:
skip_condition: true
target:
entity_id: automation.czas_na_kawe_ciag_dalszy
- set_conversation_response: Już grzeję ekspres! # It waits here for automtion from the above step to finish
Trigger should only trigger, not trigger and wait.
Troon
(Troon)
December 5, 2024, 11:22am
2
What automation mode is automation.czas_na_kawe_ciag_dalszy
set to?
I don’t know if this will solve your issue, but try setting it to parallel
.
tom_l
December 5, 2024, 11:26am
3
You should not need to trigger automations manually. That is what scripts are for.
Default, so single
. Setting to parallel
doesn’t solve this.
Fair, but trigger should only trigger. There should be switch, same like skip_condition
, maybe wait for finish
tom_l
December 5, 2024, 11:28am
6
Use a script. Depending on how you call it it will not wait for the script to complete, see: https://www.home-assistant.io/integrations/script/#waiting-for-script-to-complete
tom_l
December 5, 2024, 11:30am
7
Or you can parallel actions, see: https://www.home-assistant.io/docs/scripts#parallelizing-actions
Make sure you read the warnings.
I get it that I should use script, but if automations shouldn’t be triggered manually why automation.trigger exists?
tom_l
December 5, 2024, 11:37am
9
Testing the actions (and conditions if you run the service with the skip_conditions option set to false).
Yes I know that this discussion should already be ended BUT wouldn’t it be the same as what buttons Run actions
in automation options and Run action
in actions do?
tom_l
December 5, 2024, 11:45am
11
Yep, but they came later. HA has excellent bacwards compatibility, old services and syntax are often retained when new methods are introduced.
Also not everyone uses the automation editor (me for one).
Get it, thanks for explanation, and sorry for my nitpicking.
But I still think there should be a switch like wait for finish
1 Like