Door Left Open Reminder - Configurable by Individual Contact


#81

Now I see where it is in your piston. The @AllPresence global variable is a device variable that contains a list of all the presence sensors you want to check.
Global variable appear in a panel on the right when you edit a piston. You’ll have to create a device global variable called @AllPresence (Click on the blue area in front of the name to change “dynamic” to “device”.), select Physical Devices, and then you’ll get that drop-down list that will contain all your devices. That’s where you’re looking for something that looks like MyName’s Galaxy Note10 (or whatever your phone is called), select that one and any others for other people in your home and then save the global variable.


#82

@qoheleth is correct and this is what I suspected the problem might be. For simplicity when importing, I should probably post a more generic version of the piston that doesn’t include the use of the global variable.


#83

OK thanks, I was able to get the @allpresence setup, But I am still different from the sample. Now my line 75 says "@allPresence’s presense is present, the sample shows Presense Sensor 1’s presense is present.

Also, how do I get (2) phone numbers to send a SMS for line 73? I typed (2) with an “and” beween them but only 1 shows up in the screen shot.


#84

On line 69 and 71 you’ve used the variable ‘@allPresence’. On line 75, you’ve used the variable ‘@AllPresence’. Those two are NOT the same and will cause problems. Use one or the other, but not both, or … for the sake of simplicity and clarity, especially since you’re new to this, consider eliminating the @global variables altogether and replacing them with specific devices names instead. I wish I’d done that in the example.

To send an SMS to two numbers, specify an expression and use the format

{9998881234};{9998881235}


#85

Just a note here: Lines 67-73 result in sending the SMS notification every time they execute. (presence is either present or not present) So, encorporating bthrock’s post, you could replace everything from 68-80 with
Send SMS notification “{alertMessage}” to {9998881234};{9998881235};


#86

For clarity, the way the piston was designed to work is that it sends to the alert to whichever one of us (my wife or I) is home, both to avoid disturbing the other and because the person at home can actually do something about the open door or window. If we’re both not home, then it goes to both of us. If we’re both home, then it goes to me.

For most people, a simpler notification like you suggest is going to be more than adequate. I may include something like that in an update as well, if only because it’s easier to explain and support. :thinking:


#87

Yes. I had it set up to broadcast in my original arrive/leave piston, but I changed it at my wife’s request. I still get everything. She just gets a “Hello” and “Goodbye” message.


#88

I would like to have it like you @bthrock and have it send the notification to me or my wife only if one of us is home and to both if we are both home or away. This is my latest attempt and it is still not working. If I select SMS as the delivery method for the alert is there something I needed to setup elsewhere first to get the message or is just listing the phone number in the piston all I need to do?


#89

I can take a closer look at the details of the piston you posted a bit later, but could you also post a snapshot of the invoking piston (Door Left Open Reminder A)? Both pistons are needed for this to work and I want to be sure we’re focusing on the right issue.


#90

Sure, here is my Reminder A.


#91

I just received the door open message, it looks like this is working now.


#92

I am getting the notifications, but not everything is working as planned. When both me and my wife were away we both received the notification which is what I want. But, when I was away and my wife was home I received the notification and she did not receive anything. This is the opposite of what I want to happen, I would like the person home to get the notification.


#93

You have two presence sensors on Line 75. Assuming one is yours and one is your wife’s, that condition will always evaluate to be true and the SMS notification will go to the phone number provided in Line 77 every time. This is the how it should generally flow.

Line 74: Else If
Line 75: (Husband’s Presence Sensor) is Present
Line 76: then
Line 77: Send {alertMessage} to (Husband’s Phone Number)
Line 78: else
Line 79: Send {alertMessage} to (Wife’s Phone Number)