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