Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Passing variable to a script, can't get it to work

$
0
0

@krash wrote:

Hey guys,
I’ve red almost every similar post but it doesn’t seem to work for me.
Here is my script:

script:
  test_notification_persistant:
    sequence:
      - service: persistent_notification.create
        data_template:
          message: "{{message}}"
          title: "{{message}}"

And here is the service i call:
image

And here’s what i get:
image

It’s an over-simplified example, im actually trying to pass a camera name in order to run the camera.snapshot service but i can’t get either to work.

Any clues? because it seems to work for everyone but me :stuck_out_tongue:

Posts: 5

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>