Device State Into Google Voice SMS Notify

Posted on
Fri May 22, 2015 8:04 am
jcearlock offline
Posts: 8
Joined: Apr 15, 2015

Device State Into Google Voice SMS Notify

What's the best way to insert the device state into a SMS notify? Ideally it would function like the Growl plugin with deviceID & statekeys, but I do not think that is the case. Is there a way to do this?

Posted on
Fri May 22, 2015 9:55 am
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Device State Into Google Voice SMS Notify

How are you sending the SMS?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri May 22, 2015 11:09 am
jcearlock offline
Posts: 8
Joined: Apr 15, 2015

Re: Device State Into Google Voice SMS Notify

I'm using the Google Voice plugin from the forums. I have Growl notifies sending a status report to my phone via a Pushover Growl Plugin, but I would like to get it into SMS to potentially have it read by Siri on my phone.

Posted on
Fri May 22, 2015 2:25 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Device State Into Google Voice SMS Notify

Gotcha. I don't know of any way to use that plugin with a substituted value (it's not being maintained by anyone). You could just send an email through your phone provider's email-to-SMS gateway (all of them in the US have them though I don't know where you are).

[MODERATOR NOTE] moved to correct forum

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri May 22, 2015 6:31 pm
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

Re: Device State Into Google Voice SMS Notify

I'm pretty familiar with this plugin. What exactly are you trying to accomplish? Please be specific.

Posted on
Fri May 22, 2015 7:15 pm
jcearlock offline
Posts: 8
Joined: Apr 15, 2015

Re: Device State Into Google Voice SMS Notify

Dewster - I was trying to get devices and their statekey (switch is on/off or temp sensor is at X)into a sms notify via the plugin.

I'll give the SMS gateway a try. I think I can trigger an email from Growl which may solve this.

Posted on
Fri Jul 10, 2015 7:37 pm
rycardo offline
Posts: 53
Joined: Jul 10, 2015

Re: Device State Into Google Voice SMS Notify

jcearlock,

I had the same need, there is not a way at this time - that I'm aware of - to send anything similar to writing a log entry. However, if you create a python script, you can create the message you want with device states and variable values, then have the python script send that. Below is the function I use for sending an SMS, it also checks the the plug-in is active, and does a log.
Code: Select all
def sendSMSTextToId(text, toId):
   phoneNumber = indigo.devices[toId].address
   
   logToIndigo(phoneNumber, "sendSMSTextToId", 0)
   logToIndigo(text, "sendSMSTextToId", 0)
   
   if googleVoicePlugin.isEnabled():
      googleVoicePlugin.executeAction("sendSMS", deviceId=toId, props={'smsMessage':text})
   else:
      logToIndigo("Google Voice Plugin Not Enabled, Not Able To Send Response","sendSMSTextToId", 0)

Be aware, when you are calling the function, you are passing the device ID for the Google SMS plug-in, not the phone number:
Code: Select all
sendSMSTextToId(1037834, messageText)

NOT: sendSMSTextToId(6475551915,messageText)

Hope this helps,
Rycardo

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest