First, add the Twilio integration:
https://www.home-assistant.io/integrations/twilio/ Next, add these to your configuration.yaml file and then restart HA: Copy to Clipboard
twilio: # Get the following items from: https://console.twilio.com/
account_sid: abcdabcdabcdabcd # Change this to your Twilio account SID
auth_token: abcdabcdabcdabcd # Change this to your Twilio Auth Token
notify:
- name: TwilioSMS
platform: twilio_sms
from_number: '+12345678901' # Change this to be your Twilio SMS phone number
Here is an example Automation that will send a SMS alert. Copy to Clipboard
alias: Twilio Test SMS Motion
description: ""
triggers:
- type: motion # change the device and entity id to match your alert items
device_id: daa9c576f449214ee52bbbe4fd6e283c
entity_id: 817bf9789b6927c62c2cf3f625bef790
domain: binary_sensor
trigger: device
for:
hours: 0
minutes: 0
seconds: 1
- trigger: sun
event: sunset
offset: 0
conditions: null
actions:
- action: notify.twiliosms
data: # Change target to +1 and then your cell phone to receive alerts
target: "+12345678901"
message: Motion alert!
|