Send Email and SMS on alert issue
-
Hi ALL!
Could you help me know how to set a condition in status or Type when points alerts to send email and sms?
--- IMAGE REMOVED ---
As the picture, in this condition, it will send 652 messages via sms when it enable.
I expect to set a condition in Type to make Point AutoWindowDoorCotroler - Windows1Staus, when it becomes to be value 1, send me alert message via sms.Regards,
Jenny
-
Hi Jenny,
If I'm understanding you correctly, you would like to only send messages for certain values and conditions. This can be accomplished by using a Script, and then using points on the Scripting Data Source as output for the publisher. So your script could be...
AutoWindowDoorController - Windows1Status ==> context point pif( p.value == 1 && !alarmActive.value ) {
publishAlarm.set(true);
alarmActive.set(true);
} else if( p.value != 1 ) {
alarmActive.set(false);
}And create a settable, binary point called 'publishAlarm' on the script and publish it instead. Have a second settable binary point called alarmActive, to prevent updating the published point each time the script runs. The Twilio publisher was envisioned working with a Meta Point or a script, which is why there are the features to do multiple replacements as suggested in the Twilio Publisher's help documents.
I removed your image so that the settings for your Twilio account aren't visible to everyone wandering by. The "Type" column is a read-only display of what module the point comes from. It looks like I may need to check that it's still working.....