I’m working on a blueprint where I need to execute an input action as part of a sequence with actions in the blueprint.
As a minimal example:
blueprint:
name: "Test: action after delay"
domain: automation
input:
action1:
name: Action after delay
selector:
action:
action:
- delay: { seconds: 5 }
- !input action1
This doesn’t work, of course, because !input action1
is an array, so when you try to save an automation this way you get the error:
Unable to determine action @ data[‘action’][1]
My workaround so far is to add a pointless if
statement, just so I can use the then:
parameter:
action:
- delay: { seconds: 5 }
- if: { condition: template, value_template: "{{ true }}" }
then: !input action1
Is there a better way to do this?