Getting flooded with notifications now... help please


#1

1) Give a description of the problem
A piston that’s been working fine for several months has started “flooding” me with notifications now when triggered. Not always, but a couple of such times the last couple of weeks.

2) What is the expected behavior?
I expect one notification the first time the checked condition is true. I believe that is what happened originally when I tested the piston.

3) What is happening/not happening?
Today for example, when the condition on line 28 became true I received 99 notifications within a minute.
Log snapshot below shows that particular event. I think the last time it happened, I got like 45 notifications… so that number seems to vary.

Oddly, none of the garage door contacts in the higher level while loop (line 23) were open (at least not per the IDE events log) at the time the inner “if” statement inactive timeout expired, so I am not sure how the line 28 condition gating notifications even evaluated true - but it must have since the “then” statements were executed.

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
1/17/2019, 2:13:52 PM +107ms
+0ms ╔Received event [HayekHome].time = 1547763187384 with a delay of 44722ms
+275ms ║Runtime (41885 bytes) successfully initialized in 142ms (v0.3.109.20181207) (273ms)
+276ms ║╔Execution stage started
+317ms ║║Executed virtual command sendPushNotification (11ms)
+425ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (98ms)
+517ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (89ms)
+648ms ║║Executed virtual command sendPushNotification (13ms)
+743ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (86ms)
+837ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (91ms)
+933ms ║║Executed virtual command sendPushNotification (12ms)
+1043ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (97ms)
+1132ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (87ms)
+1213ms ║║Executed virtual command sendPushNotification (18ms)
+1333ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (111ms)
+1439ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (105ms)
+1529ms ║║Executed virtual command sendPushNotification (15ms)
+1751ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (211ms)
+1857ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (103ms)
+1937ms ║║Executed virtual command sendPushNotification (14ms)
+2063ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (111ms)
+2163ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (99ms)
+2238ms ║║Executed virtual command sendPushNotification (12ms)
+2361ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (113ms)
+2474ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (112ms)
+2547ms ║║Executed virtual command sendPushNotification (11ms)
+2623ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (66ms)
+2747ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (123ms)
+2851ms ║║Executed virtual command sendPushNotification (12ms)
+2997ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (132ms)
+3111ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (113ms)
+3190ms ║║Executed virtual command sendPushNotification (9ms)
+3299ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (99ms)
+3415ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (115ms)
+3485ms ║║Executed virtual command sendPushNotification (10ms)
+3505ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (10ms)
+3572ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (66ms)
+3656ms ║║Executed virtual command sendPushNotification (11ms)
+3676ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (10ms)
+3770ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (93ms)
+3836ms ║║Executed virtual command sendPushNotification (10ms)
+3855ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (9ms)
+3947ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (90ms)
+4016ms ║║Executed virtual command sendPushNotification (10ms)
+4036ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (10ms)
+4126ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (89ms)
+4192ms ║║Executed virtual command sendPushNotification (10ms)
+4211ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (10ms)
+4301ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (89ms)
+4368ms ║║Executed virtual command sendPushNotification (10ms)
+4387ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (11ms)
+4479ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (91ms)
+4509ms ║╚Execution stage complete. (4233ms)
+4511ms ╚Event processed successfully (4511ms)
1/17/2019, 2:13:47 PM +73ms
+1ms ╔Received event [HayekHome].time = 1547763187384 with a delay of 39689ms
+207ms ║Runtime (41885 bytes) successfully initialized in 105ms (v0.3.109.20181207) (205ms)
+209ms ║╔Execution stage started
+263ms ║║Executed virtual command sendPushNotification (9ms)
+363ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (89ms)
+460ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (93ms)
+748ms ║║Executed virtual command sendPushNotification (9ms)
+846ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (88ms)
+929ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (82ms)
+1015ms ║║Executed virtual command sendPushNotification (9ms)
+1122ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (95ms)
+1209ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (85ms)
+1286ms ║║Executed virtual command sendPushNotification (8ms)
+1386ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (90ms)
+1470ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (83ms)
+1546ms ║║Executed virtual command sendPushNotification (8ms)
+1722ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (167ms)
+1807ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (83ms)
+1884ms ║║Executed virtual command sendPushNotification (9ms)
+1991ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (97ms)
+2111ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (119ms)
+2199ms ║║Executed virtual command sendPushNotification (10ms)
+2296ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (88ms)
+2373ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (76ms)
+2448ms ║║Executed virtual command sendPushNotification (9ms)
+2533ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (76ms)
+2616ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (81ms)
+2688ms ║║Executed virtual command sendPushNotification (9ms)
+2775ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (77ms)
+2850ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (73ms)
+2924ms ║║Executed virtual command sendPushNotification (9ms)
+3014ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (80ms)
+3089ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (74ms)
+3163ms ║║Executed virtual command sendPushNotification (9ms)
+3249ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (77ms)
+3323ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (73ms)
+3394ms ║║Executed virtual command sendPushNotification (8ms)
+3483ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (80ms)
+3558ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (72ms)
+3630ms ║║Executed virtual command sendPushNotification (8ms)
+3718ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (78ms)
+3792ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (73ms)
+3864ms ║║Executed virtual command sendPushNotification (9ms)
+3973ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (100ms)
+4058ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (83ms)
+4131ms ║║Executed virtual command sendPushNotification (8ms)
+4228ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (88ms)
+4311ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (81ms)
+4380ms ║║Executed virtual command sendPushNotification (8ms)
+4470ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (80ms)
+4546ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (74ms)
+4613ms ║║Executed virtual command sendPushNotification (8ms)
+4698ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (76ms)
+4771ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (72ms)
+4839ms ║║Executed virtual command sendPushNotification (9ms)
+4924ms ║║Executed [Echo - Family Room].setVolumeSpeakAndRestore (77ms)
+5002ms ║║Executed [Echo - Media Room].setVolumeSpeakAndRestore (77ms)
+5053ms ║╚Execution stage complete. (4843ms)
+5063ms ║Setting up scheduled job for Thu, Jan 17 2019 @ 2:13:08 PM PST (in 1s), with 15 more jobs pending
+5071ms ╚Event processed successfully (5071ms)
1/17/2019, 2:13:42 PM +445ms
+1ms ╔Received event [HayekHome].time = 1547763186809 with a delay of 35635ms
+7389ms ║Piston waited at a semaphore for 7129ms
+7393ms ║Runtime (41955 bytes) successfully initialized in 7262ms (v0.3.109.20181207) (7389ms)
+7395ms ║╔Execution stage started
+7396ms ║╚Execution stage complete. (1ms)
+7412ms ║Setting up scheduled job for Thu, Jan 17 2019 @ 2:13:07 PM PST (in 1s), with 33 more jobs pending
+7422ms ╚Event processed successfully (7423ms)

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

Not sure what shard you’re on, but NA02 is having issues at the moment: https://status.smartthings.com/incidents/4yy00dfll2v8


#3

No clue which one, nor what one is;-). How do I find out which shard I’m on?

As I mentioned above, the problem I saw this week also happened once last week, so the NA02 problem doesn’t sound like the culprit.


#4

There were issues last week also. As to what shard the quickest way is to go to https://account.smartthings.com/login and see where it redirects you; for me that’s https://graph-na02-useast1.api.smartthings.com/ - shard is the second grouping in the redirect (na02 in this instance).


#5

My redirect goes to https://graph.api.smartthings.com/, so I guess thats not NA02.

Any other ideas anyone?


#6

I think you have to log in to see which shard you are on.

You can confirm you are logged in to the right place by choosing “My Devices” up top.
(You should see your list of devices)


#7

no shard in the url…

Capture


#8

The only time I have ever seen that is when there are no devices listed below.


#9

All devices are present and listed, IDE otherwise seems fine.

Are the NA02 problems resolved now? Maybe I’ll just re-enable that piston and see if it continues to misbehave or not.


#10

Personally, I have not noticed any issues with NA02…

The only issues I have really noticed the last few weeks is the occasional double trigger (seconds apart), but that has been noticed across many different shards…