Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106087

Sending SMS using Twilio

$
0
0

HI
I am attempting to setup Twilio to send an sms inside of an automation …

I have intalled the twilio integration that told me to setup a webhook in the twilio account which i did.

I added the following to configuration.yaml

notify:
  - name: twilio_sma
    platform: twilio_sms
    from_number: "phone number from twilio"


The automation i created in yaml


alias: SMS Send
  description: ''
  triggers:
  - type: changed_states
    device_id: 5c7059377f8a14ab716e735bc4259060
    entity_id: cf2a11b2d7b696e0738aaede2a8457a0
    domain: switch
    trigger: device
    for:
      hours: 0
      minutes: 0
      seconds: 5
  conditions: []
  actions:
  - action: notify.twilio_sms
    metadata: {}
    data:
      message: heater switched
      title: 'heater test '
      target: +972-50-3440135
      data: the heater switched
  mode: single

 

I don’t get any error but the sms is not being sent… Is the problem on the HA end or the twilio end?

Regards

Mrrcomp

5 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 106087

Trending Articles