Arrival Notification help


#1

1) Give a description of the problem
I set up this piston and it was working before I added the presence statements (line 29 & 42). What I want is if a door opens at night (ignore the current times, its for testing), I would like it to send a notification to our phones and also speak which door is open. I DON’T want it to do this though if some arrives within the last 10 min (if I come home late from work). Currently, the notification is going off, even if there is a presence change within the 10 min.

2) What is the expected behavior?
I dont want a notification if the presence changes.

3) What is happening/not happening?
Notification is still going off.

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)

9/28/2017, 1:31:38 PM +567ms
+2ms ╔Received event [Laundry Room Door].contact = open with a delay of 328ms
+166ms ║RunTime Analysis CS > 17ms > PS > 58ms > PE > 90ms > CE
+178ms ║Runtime (43434 bytes) successfully initialized in 58ms (v0.2.0ec.20170927) (176ms)
+180ms ║╔Execution stage started
+208ms ║║Comparison (enum) open changes_to (string) open = true (1ms)
+211ms ║║Cancelling condition #6’s schedules…
+212ms ║║Condition #6 evaluated true (10ms)
+225ms ║║Comparison (time) 48698780 is_between (time) 43200000 … (time) 21600000 = true (9ms)
+227ms ║║Time restriction check passed
+230ms ║║Condition #11 evaluated true (17ms)
+258ms ║║Comparison (enum) present did_not_change = true (15ms)
+260ms ║║Condition #18 evaluated true (29ms)
+261ms ║║Cancelling condition #1’s schedules…
+262ms ║║Condition group #1 evaluated true (state changed) (61ms)
+265ms ║║Cancelling statement #4’s schedules…
+276ms ║║Calculating (string) Laundry Room Door + (string) is now open >> (string) Laundry Room Door is now open
+963ms ║║Executed physical command [JR Note5].speak([Laundry Room Door is now open]) (676ms)
+964ms ║║Executed [JR Note5].speak (678ms)
+1065ms ║║Executed physical command [LAN-TAB].speak([Laundry Room Door is now open]) (97ms)
+1066ms ║║Executed [LAN-TAB].speak (99ms)
+1073ms ║║Calculating (string) Laundry Room Door + (string) is now Open >> (string) Laundry Room Door is now Open
+1119ms ║║Executed virtual command [JR Note5, LAN-TAB].sendNotificationToContacts (39ms)
+1123ms ║╚Execution stage complete. (944ms)
+1130ms ╚Event processed successfully (1130ms)

Any suggestions?


#2

Any of two did not change last 10 minutes.
Do you enter with both precense sensors?
Suspect one of the ones you got here did not change in the time periode.
Thoughts?


#3

Only 1 presence was changed, not both. I would need it to work when either 1 or both would enter. Is there something different to use other than “any of”?


#4

Try all of Presence sensors did not change.


#5

And something like this could also be used as logic.


#6

@Baz2473 - That’s it! I completely missed that orange box somehow. (I don’t think it could be any brighter)

Here is an updated piston for anyone’s reference. THANK YOU!