Custom SMS message


#1

Hello all,

I am trying to send SMS notifications based on presence. Here is what I am doing:

If door is locked then check after 4 minutes who is still here. If someone is here then send SMS notification - [Door] Locked but %person1%, %person2%, person%3 is home.

I don’t understand how to create an expression string that checks for the presence of these mobile devices and add them into a single SMS notification string.

Any ideas/examples?


#2

Create a device variable, something like whosHome. Then after your 4 minute wait add an if statement that checks for presence. Click the settings cog and click the drop down for save matching device list. Select your whosHome variable.

Now in your text just reference the whosHome variable. It will format with commas as well as “and” where necessary


#3

@c1arkbar

Thank you!! Exactly what I was looking for.