|
@@ -352,12 +352,15 @@ sequence:
|
|
if: "{{ not action }}"
|
|
if: "{{ not action }}"
|
|
then:
|
|
then:
|
|
- stop: "Action is not associated with any scripts, ending."
|
|
- stop: "Action is not associated with any scripts, ending."
|
|
-
|
|
|
|
|
|
+ - service: system_log.write
|
|
|
|
+ data:
|
|
|
|
+ level: warning
|
|
|
|
+ message: "ACTION: {{ action }} "
|
|
- if: "{{ action is string or 'variables' not in action }}"
|
|
- if: "{{ action is string or 'variables' not in action }}"
|
|
then:
|
|
then:
|
|
service: script.turn_on
|
|
service: script.turn_on
|
|
target:
|
|
target:
|
|
- entity_id: "{{ script }}"
|
|
|
|
|
|
+ entity_id: "{{ action.script }}"
|
|
else:
|
|
else:
|
|
service: script.turn_on
|
|
service: script.turn_on
|
|
target:
|
|
target:
|