Twilio.com API Interface Plugin

it’s a little bit more complicated than that …
do you have php running somewhere ? then i can give you an example with curl.

Everyone,

I hope someone can help me.

In the Vera Twilio API there is an option to send variables.
But how to do this? I point the URL to: http://klikbert.nl/twiml.php
The php script reacts on the ‘bron’ variable. POST or GET, that doesn’t matter.

See: Dropbox - File Deleted
And: Dropbox - File Deleted

What am I doing wrong? It won’t work…

SOLUTION:

I think there is a little bug in the script. The prefix http:// is added. So in the Vera interface you have to omit it, or it won’t work :slight_smile:

local TWICmdLine = "https://api.twilio.com/2008-08-01/Accounts/" .. TWIAccountSID .. "/Calls --data-urlencode " .. "\034" .. "Called=" .. PhoneNumber .. "\034" .. " --data-urlencode " .. "\034" .. "Caller=" .. TWICallerID .. "\034" .. " --data-urlencode " .. "\034" .. "Url=http:" .. "\047" .. "\047"

Glad it’s working now :slight_smile:

… which is bad if other protocols are beeing used …

thanks for the tipp

Hello,
I’ve just started to use Twilio service, it works very well, I can say too well. When my trigger is tripped I get double SMS from Twilio service. I’ve already checked the settings and logs of Twilio service, there is only one SMS per tripped trigger. If I sent sms directly from Twilio I get only one SMS. Has somebody met such bug?

I have the plugin setup and it works, thanks. However I get a message saying “Can’t Detect Device”, it still seems to work, any ideas?

Same thing here. U17 on Veralite
Plugin works but Can’t Detect Device displayed constantly.

Hi Guys,

Does anyone still have this working in UI7. i get the Cant detect device error but also I cant make it work. i try the simple LUA:

luup.call_action(“urn:twilioapi-org:serviceId:TwilioInterface1”, “InitiateVoiceCall”,{ PhoneNumber= “555-555-1212”, Message=“Greetings from your Vera Home Automation System”}, 66)

With my phone number and my ID but nothing shows in the logs on Twilio and it doesnt call me or txt me…

I wonder if SOlivas is still around?

James

You have to register your phone # on Twilio first. (i.e. it will only call or text to registered phone numbers … it does not want you to use it to spam the world!)

I thought i had done that…(did it on the web site, got the confirmation txt and it shows my number as confirmed) is there an easy way to see any errors?

I support Twillio via my Vera Alerts plugin.
I do not support this plugin.

You might check the log file to see if you see anything:

 http://Your.Vera.IP.Address/cgi-bin/cmh/log.sh?Device=LuaUPnP

Someone can helpe me please.
I use Vera Edge firmware 1.7.4151 and installed twilio app. Just say can’t detect device.
I configure
Account SID xxxxxxxxxxxxxx
Auth Tokenxxxxxxxxxxxxxxxxxxxxx
Caller ID+351 308 806 xxx (number that i buy)
I user this code ```
luup.call_action(“urn:twilioapi-org:serviceId:TwilioInterface1”, “InitiateVoiceCall”,{ PhoneNumber= “+351 916 259 xxx”, Message=“Greetings from your Vera Home Automation System”}, 5).
The number is verified in twilio.com
Can’t reveive anything.
the response in log sbrk JobHandler_LuaUPnP::HandleActionRequest Problem with getnameinfo <0x757ce520>
sbrk JobHandler_LuaUPnP::HandleActionRequest Problem with getnameinfo <0x747ce520> 08 03/27/19 18:00:56.277 JobHandler_LuaUPnP::HandleActionRequest device: 5 service: urn:twilioapi-org:serviceId:TwilioInterface1 action: Initi ateVoiceCall <0x747ce520> 08 03/27/19 18:00:56.278 JobHandler_LuaUPnP::HandleActionRequest argument PhoneNumber=+351308806030 <0x747ce520> 08 03/27/19 18:00:56.278 JobHandler_LuaUPnP::HandleActionRequest argument Message=Greetings from your Vera Home Automation System <0x747ce520> 02 03/27/19 18:00:56.279 Device_LuaUPnP::HandleActionRequest 5 none of the 1 implementations handled it <0x747ce520> 01 03/27/19 18:01:22.968 sbrk JobHandler_LuaUPnP::HandleActionRequest Problem with getnameinfo <0x747ce520> 08 03/27/19 18:01:22.969 JobHandler_LuaUPnP::HandleActionRequest device: 0 service: urn:micasaverde-com:serviceId:HomeAutomationGateway1 action: RunLua

What i’m doing wrong?
Thanks in advanced.