Skip to content

Instantly share code, notes, and snippets.

@Elwell
Created May 22, 2021 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Elwell/30bde8901a53b95aefb74b8336386909 to your computer and use it in GitHub Desktop.
Save Elwell/30bde8901a53b95aefb74b8336386909 to your computer and use it in GitHub Desktop.
Alexa notify on parsed MQTT JSON payload
- id: 'whatever'
alias: Valid SMS for gate
description: Announces sender of a valid gate trigger
trigger:
- platform: mqtt
topic: twilio/sms
payload: true
value_template: '{{ value_json.Gate_Auth }}'
condition: []
action:
- service: notify.persistent_notification
data_template:
message: '{{ trigger.payload }}'
title: Twilio SMS
- service: notify.alexa_media
data_template:
target:
- media_player.echo_dot
data:
method: all
type: announce
message: SMS Request to open gate from {{ trigger.payload_json["Gate_Name"] }}
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment