@vectronic/homebridge-twilio-sms
v1.0.2
Published
Homebridge plugin to send SMSes with a static message using Twilio API (paid service)
Downloads
325
Maintainers
Readme
homebridge-twilio-sms
Homebridge plugin to send SMSes with static text via Twilio.
Twilio configurations
To use this plugin, you need to signup to their website and get a phone number from their service to use as twilioNumber.
the accountSid and authToken can be retrieved from https://www.twilio.com/console/account/settings
Installation
- Install homebridge using:
npm install -g homebridge - Install this plugin using:
npm install -g @vectronic/homebridge-twilio-sms - Configure via the Homebridge UI or update your
config.jsonmanually
Configuration
Twilio credentials are configured at the platform level. Each accessory defines its own message and recipient phone numbers, allowing you to create multiple SMS switches for different alerts.
Example config.json entry:
"platforms": [
{
"platform": "TwilioSMS",
"name": "Twilio SMS",
"accountSid": "4352435f45f423456d652643dxre",
"authToken": "RVGH54CG45G5TG354GRT45T45G4G",
"twilioNumber": "+445287562349",
"accessories": [
{
"name": "Power Lost",
"messageBody": "Power loss detected",
"toNumbers": ["+445287563029", "+445287563483"]
},
{
"name": "Water Leak",
"messageBody": "Water leak detected!",
"toNumbers": ["+445287563029"]
}
]
}
]