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

Issues with setting up Amazon Notify and

$
0
0

@AndrewCrider wrote:

I have been having trouble setting up amazon.notify services and data templates. I have the following two scripts and both are erroring out. I’m on the latest version of Home Assistant. I can get the script to work if I remove data template and just use a single value for “message”, but whenever I try to template, I get an error. Any help would be great!

midnight:
  alias: Midnight Notifiaction
  sequence:
    data_template: 
      message:' {{ [ "Welcome Back Boss", "Yo" ] | random}}'
      type: tts
      target:
        - media_player.media_player.echo

'1587326108891':
  alias: office speaks
  sequence:
  - service: notify.alexa_media_echo
    data_template:
      data:
        target:  media_player.media_player.echo
        method: all
        type: announce
      message:  
        {{ [ 'Welcome Back Boss', 'Yo', 'for shizzle' ] | random}}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 102572

Trending Articles



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