Created
May 22, 2021 13:16
-
-
Save Elwell/30bde8901a53b95aefb74b8336386909 to your computer and use it in GitHub Desktop.
Alexa notify on parsed MQTT JSON payload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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