From c38e5fdd874a6e0ad2bf7f44d0ded136e785c51e Mon Sep 17 00:00:00 2001 From: Chris Johnston Date: Tue, 9 Jul 2019 16:15:53 -0700 Subject: [PATCH] Add Twilio SMS media_url docs (#9792) * Update twilio SMS docs for media_url setting This updates the Twilio SMS docs for the `media_url` PR. * :pencil2: Tweak * :pencil2: Tweak --- source/_components/twilio_sms.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/_components/twilio_sms.markdown b/source/_components/twilio_sms.markdown index 6afe3fce0e6..15bdc37ed19 100644 --- a/source/_components/twilio_sms.markdown +++ b/source/_components/twilio_sms.markdown @@ -45,6 +45,10 @@ name: Twilio is a notify platform and thus can be controlled by calling the notify service [as described here](/components/notify/). It will send a notification to all E.164 phone numbers in the notification **target**. See the notes above regarding the `from_number` configuration variable for information about formatting phone numbers. +Media can be included with messages by setting the optional `media_url` variable. Only `.gif`, `.png`, or `.jpeg` content are supported, according to the Twilio documentation and this feature is [only supported in the US and Canada.][mms] + +[mms]: https://www.twilio.com/docs/sms/send-messages#include-media-in-your-messages + ```yaml # Example automation notification entry automation: @@ -59,4 +63,6 @@ automation: target: - '+14151234567' - '+15105555555' + data: + - media_url: 'https://www.home-assistant.io/images/supported_brands/home-assistant.png' ```