Explorar o código

fix script variable

Joachim M. Giæver hai 1 ano
pai
achega
219e4bb3b9
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      script/notify_user.yaml

+ 5 - 2
script/notify_user.yaml

@@ -352,12 +352,15 @@ sequence:
                   if: "{{ not action }}"
                   then:
                     - 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 }}"
                   then:
                     service: script.turn_on
                     target:
-                      entity_id: "{{ script }}"
+                      entity_id: "{{ action.script }}"
                   else:
                     service: script.turn_on
                     target: