Twilio SMS

The twilio notification platform enables sending notifications via SMS, powered by Twilio.

The requirement is that you have setup Twilio.

To use this notification platform in your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
    platform: twilio_sms
    from_number: E164_PHONE_NUMBER or SENDER_ID

Configuration Variables

from_number stringRequired

An E.164 formatted phone number, like +14151234567. See Twilio’s guide to formatting phone numbers for more information. Alternatively, a sender ID can be used instead of a phone number. The sender ID must be formatted according to Twilio’s guidelines. See Twilio’s guide to sender ID for more information. Do keep in mind that not all countries support sender ID. See Twilio’s page of supported countries for more information.

name string(Optional, default: notify)

Setting the optional parameter name allows multiple notifiers to be created. The notifier will bind to the service notify.NOTIFIER_NAME.


Twilio is a notify platform and thus can be controlled by calling the notify service as described here. 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. It’s also possible to use whatsapp:+123456789 for sending notifications to a Whatsapp user.

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.

# Example automation notification entry
  - alias: The sun has set
      platform: sun
      event: sunset
      service: notify.twilio_sms
        message: 'The sun has set'
          - '+14151234567'
          - '+15105555555'
          - media_url: ''