Send push message to the person who's made the door open


#1

1) Give a description of the problem
Looking for syntax on how to include message to person who’s presence sensor opened the door

2) What is the expected behavior?
a push message

3) What is happening/not happening?
this script is working I just want to also notify the person who’s phone opened it

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS)


#2

You could do something like what is shown in this example:

Essentially you’ve got an array of contacts which match the presence sensors and then you grab out of that array the appropriate value that you’re looking for and that’s who gets the message.


#3

Push messages cannot be directed to one person - they are sent to everyone that has the ST app installed.

Would you want to do it with SMS messages? That could be done.


#4

@michicago - actually they can. I am doing it now, I just want to script it based on someone’s presence.


#5

They can? Must be a new development. I’ll have to look at options.

Thanks!


#6

I know you can selectively push to contacts if Contacts is enabled but can you do it dynamically?


#7

I am wondering with an if statement like this will do it.

if $currrentEventDevice is equal to "Person’s presence sensor"
send notification to contact “matching person”