Thanks for all the posters here and int he other parts of the forum.
I was able to get my hub and 8 eco links, smart sensor and fortress alarm up and running in about 15 minutes. Very happy
Now, the wife asked why only I get SMS’s and not her. I shrugged.
Then I say this
Thanks. I tested putting two numbers into the SmartThings native apps separated by either a semicolor or a comma. It does not work. If more than one number exists in the SMS text field, nothing is sent. This really is something that SmartThings apps should support. When the security alarm is ringing or motion is detected where it should not be, I would think most people would want to send the SMS text to more than one phone.
Which led me to missing MetaDatam and back to the smart things custom apps which I know nothing about except the FAQ.
Is there a walk through on how to add the information I need for this app?
smart
(Ron S)
May 27, 2015, 2:54pm
2
Custom app is the solution…
Check the documentation and if you are new to groovy, check this basic example:
http://docs.smartthings.com/en/latest/smartapp-developers-guide/example-bon-voyage.html
Basic snippet…
blah…blah…
preferences {
section( "Notifications" ) {
input "pushbullets", "device.pushbullet", title: "Pushbullet Device(s)", multiple: true, required: false
input "sendPushMessage", "enum", title: "Send a push notification?", metadata:[values:["Yes","No"]], required:false
input "phone", "phone", title: "Enter Phone#?", required: false
input "phone1", "phone", title: "Enter Second Phone#?", required: false
}
}
def notifyUser(msg){
if (phone){
sendSms( phone, msg );
}
if (phone1){
sendSms( phone1, msg );
}
if (sendPushMessage != "No") {
sendPush( msg );
}
def title = "Home Mode Manager: ${app.label}"
pushbullets.each() {it ->
it.push(title, msg)
}
log.debug (msg);
}
1 Like
Oh boy. What did I get myself into here.
I’ll have to give the basic example a read before your code. Although I understand the storing of responses in variables and using those in the main code, i’ve got a lot of work to do.
I should have just told the wife it can’t be done
smart
(Ron S)
May 27, 2015, 4:18pm
4
Most of the wives, girlfriends, boyfriends, husbands, partners etc. hate receiving these texts. Shouldn’t you be counting yourself to be lucky that she wants these notifications?
1 Like
If you know a programming language it’s easy and addictive. The simulator in the IDE helps a lot.