TwilioSMS / Whatsapp

Description

The Twilio SMS Action Component is to send an SMS text message or Whatsapp messages via Twilio. It is useful to notify people of information from sensors.

Component Properties

NameRequiredDescription
ToTrueThe number to send the message to, starting with the country code, for example (44 in UK) 447123456789
FromTrueFrom
MessageTrueMessage to be sent, for example "The current temperature is" + cv.Payload + "°C"
TimeoutTrueTimeout (ms)
Twilio TokenFalseTwilio Token from the Base Property Profile
AccountSIDTrueAccountSID if not taken from the Base Property Profile
AuthTokenTrueAuthToken if not taken from the Base Property Profile

How to Send Messages to WhatsApp

For the specifications on sending messages to WhatsApp, refer to Twilio's Programmable Messaging API.

To use this feature, you need to enable Twilio Sandbox for WhatsApp

Steps:

1. Scan the QR code provided by Twilio on the Account Dashboard with your smartphone.

action-twilio

2. When WhatsApp opens, the passphrase specified by Twilio will be automatically entered. Simply press the send button to complete the integration.

Message Sending Method:

1. When sending a message to WhatsApp, enter the phone number displayed in the WhatsApp Sandbox in the From property.

2. Enter the phone number of the account you linked in the "To property".

* Add "whatsapp:" before the phone numbers in both the From and To properties. (Example: whatsapp:+1234567890)