I have written a python script to provide more call features to the twilio_call notify component.
Reading the twilio_call.py
code, I discovered that there was an escape mechanism to allow messages starting with “http” to be a passed on directly to twimlets.com
Required Parameters
caller: [1…4] # I use input_text fields to store messages and phone numbers to call.
Optional Parameters
voice: [man | woman | alice] # default man
delay: [1;10] # delay before message is said. Default is 0.
This allows time for someone to pickup the phone.
loop: [1:3] # plays message multiple times. Default is once.
language: see https://www.twilio.com/docs/api/twiml/say
speed: [normal|slow} # default is normal
Example Service Call
- service: python_script.twilio
data:
caller: '1'
delay: '1'
loop: '2'
voice: 'alice'
language: 'en-CA'
speed: 'slow'
Feel free to copy and modify the code found here on github:
https://github.com/gb53smith/Medical_Alert/blob/master/python_scripts/twilio.py
Perhaps, someone would like to add these enhancements to the home assistant twilio_call component.
This is my interim workaround.