"Empty device list" after using "x2 save matching devices to"


#1

1) Give a description of the problem
I keep receiving a “Attention: the following door were left open for more than one minute empty device list” even if no door was left open

2) What is the expected behaviour?
Only when a door sensor is open for more than 1 minute I would receive the warning

4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HERE)


#2

Seeing an error with your log set to Full will help with troubleshooting


#3

I’m certainly seeing some buggy behaviour with saving matching devices to a variable, when combined with stays.

On my test piston, it’s updating the variable with the device name immediately after light on (I’m using a light for testing), rather than waiting for the stays condition to come true.

But it is populating a log to the console correctly, triggered at the correct delay time, so I’m not sure why you are getting blank notifications.


#5

Hi… Here is the detailed LOG:

8/14/2019, 8:40:56 PM +87ms
+1ms ╔Received event [Home].time = 1565826057571 with a delay of -1484ms
+128ms ║RunTime Analysis CS > 37ms > PS > 49ms > PE > 41ms > CE
+131ms ║Runtime (52391 bytes) successfully initialized in 49ms (v0.3.10e.20190628) (130ms)
+132ms ║╔Execution stage started
+137ms ║║Cancelling condition #18’s schedules…
+138ms ║║Condition #18 evaluated true (1ms)
+139ms ║║Cancelling condition #1’s schedules…
+140ms ║║Condition group #1 evaluated true (state changed) (4ms)
+142ms ║║Cancelling statement #3’s schedules…
+148ms ║║Calculating (string) Attention: the following door is open for more than one minute + (string) Empty device list >> (string) Attention: the following door is open for more than one minute Empty device list
+263ms ║║Executed physical command [Echo - Alexa].setVolumeSpeakAndRestore([50, Attention: the following door is open for more than one minute Empty device list]) (107ms)
+264ms ║║Executed [Echo - Alexa].setVolumeSpeakAndRestore (110ms)
+269ms ║║Calculating (string) Atenção: as seguintes portas estão abertas por mais de um minuto: + (string) Empty device list >> (string) Atenção: as seguintes portas estão abertas por mais de um minuto: Empty device list
+448ms ║║Executed virtual command [Echo - Alexa].sendPushNotification (176ms)
+453ms ║║Calculating (string) Atenção: as seguintes portas estão abertas por mais de um minuto: + (string) Empty device list >> (string) Atenção: as seguintes portas estão abertas por mais de um minuto: Empty device list
+529ms ║║Executed virtual command [Echo - Alexa].sendSMSNotification (71ms)
+539ms ║║Condition #19 evaluated false (7ms)
+540ms ║║Condition group #11 evaluated false (state did not change) (8ms)
+549ms ║║Condition #56 evaluated false (5ms)
+550ms ║║Condition group #55 evaluated false (state did not change) (8ms)
+552ms ║║Cancelling statement #59’s schedules…
+563ms ║║Executed virtual command sendSMSNotification (5ms)
+565ms ║╚Execution stage complete. (432ms)
+566ms ╚Event processed successfully (565ms)
8/14/2019, 8:40:02 PM +380ms
+1ms ╔Received event [Front Door Sensor].contact = closed with a delay of 95ms
+5390ms ║RunTime Analysis CS > 19ms > PS > 5291ms > PE > 81ms > CE
+5391ms ║Piston waited at a semaphore for 5259ms
+5394ms ║Runtime (52500 bytes) successfully initialized in 5291ms (v0.3.10e.20190628) (5391ms)
+5394ms ║╔Execution stage started
+5412ms ║║Comparison (enum) closed stays (string) open = false (1ms)
+5414ms ║║Comparison (enum) closed stays (string) open = false (2ms)
+5416ms ║║Comparison (enum) closed stays (string) open = false (1ms)
+5420ms ║║Cancelling any timed trigger schedules for device :f57ed50f589821d61d86ce5dcdbf88f2: for condition 18
+5421ms ║║Cancelling statement #18’s schedules…
+5422ms ║║Cancelling any timed trigger schedules for device :4e999c23f3dbb335a2457b573dd78128: for condition 18
+5423ms ║║Cancelling statement #18’s schedules…
+5423ms ║║Cancelling any timed trigger schedules for device :fd2df8c48844edb3c05c0effd20d6dc3: for condition 18
+5424ms ║║Cancelling statement #18’s schedules…
+5425ms ║║Condition #18 evaluated false (27ms)
+5426ms ║║Condition group #1 evaluated false (state did not change) (28ms)
+5431ms ║║Comparison (enum) closed changes_to (string) open = false (1ms)
+5432ms ║║Cancelling condition #19’s schedules…
+5433ms ║║Condition #19 evaluated false (5ms)
+5434ms ║║Cancelling condition #11’s schedules…
+5435ms ║║Condition group #11 evaluated false (state changed) (7ms)
+5443ms ║║Condition #56 evaluated false (6ms)
+5444ms ║║Condition group #55 evaluated false (state did not change) (7ms)
+5446ms ║║Cancelling statement #59’s schedules…
+5458ms ║║Executed virtual command sendSMSNotification (7ms)
+5460ms ║╚Execution stage complete. (65ms)
+5461ms ╚Event processed successfully (5461ms)
8/14/2019, 8:39:57 PM +415ms
+1ms ╔Received event [Front Door Sensor].contact = open with a delay of 92ms
+123ms ║RunTime Analysis CS > 18ms > PS > 35ms > PE > 70ms > CE
+126ms ║Runtime (52396 bytes) successfully initialized in 35ms (v0.3.10e.20190628) (124ms)
+127ms ║╔Execution stage started
+146ms ║║Comparison (enum) open stays (string) open = true (2ms)
+148ms ║║Comparison (enum) closed stays (string) open = false (1ms)
+151ms ║║Comparison (enum) closed stays (string) open = false (1ms)
+156ms ║║Adding a timed trigger schedule for device :f57ed50f589821d61d86ce5dcdbf88f2: for condition 18
+158ms ║║Cancelling any timed trigger schedules for device :4e999c23f3dbb335a2457b573dd78128: for condition 18
+159ms ║║Cancelling statement #18’s schedules…
+160ms ║║Cancelling any timed trigger schedules for device :fd2df8c48844edb3c05c0effd20d6dc3: for condition 18
+160ms ║║Cancelling statement #18’s schedules…
+161ms ║║Condition #18 evaluated false (29ms)
+162ms ║║Condition group #1 evaluated false (state did not change) (31ms)
+168ms ║║Comparison (enum) open changes_to (string) open = true (0ms)
+169ms ║║Cancelling condition #19’s schedules…
+170ms ║║Condition #19 evaluated true (5ms)
+171ms ║║Cancelling condition #11’s schedules…
+172ms ║║Condition group #11 evaluated true (state changed) (8ms)
+177ms ║║Comparison (string) Eduardo is (string) Cyntia = false (1ms)
+179ms ║║Condition #21 evaluated false (4ms)
+180ms ║║Condition group #20 evaluated false (state did not change) (5ms)
+186ms ║║Comparison (string) Eduardo is (string) Eduardo = true (1ms)
+187ms ║║Cancelling condition #30’s schedules…
+188ms ║║Condition #30 evaluated true (6ms)
+192ms ║║Comparison (boolean) true is (boolean) true = true (1ms)
+193ms ║║Condition #31 evaluated true (4ms)
+195ms ║║Cancelling condition #29’s schedules…
+195ms ║║Condition group #29 evaluated true (state changed) (13ms)
+211ms ║║Comparison (time) 74397613 is_between (time) 64800000 … (time) 21600000 = true (8ms)
+212ms ║║Time restriction check passed
+214ms ║║Condition #48 evaluated true (15ms)
+215ms ║║Condition group #47 evaluated true (state did not change) (17ms)
+217ms ║║Cancelling statement #49’s schedules…
+683ms ║║Executed physical command [Tv Light].on() (461ms)
+684ms ║║Executed [Tv Light].on (464ms)
+698ms ║║Executed virtual command [Tv Light].sendSMSNotification (9ms)
+708ms ║║Executed virtual command [Tv Light].sendSMSNotification (5ms)
+712ms ║║Cancelling statement #52’s schedules…
+715ms ║║Executed virtual command wait (0ms)
+715ms ║║Waiting for 3000ms
+3718ms ║║Cancelling statement #32’s schedules…
+4390ms ║║Executed physical command [Echo - Alexa].setVolumeAndSpeak([50, Hi Eduardo!]) (663ms)
+4391ms ║║Executed [Echo - Alexa].setVolumeAndSpeak (665ms)
+4394ms ║║Executed virtual command [Echo - Alexa].wait (1ms)
+4395ms ║║Waiting for 1000ms
+5423ms ║║Executed physical command [Echo - Alexa].sayWelcomeHome() (25ms)
+5424ms ║║Executed [Echo - Alexa].sayWelcomeHome (27ms)
+5428ms ║║Executed virtual command [Echo - Alexa].wait (1ms)
+5429ms ║║Waiting for 1000ms
+6462ms ║║Executed physical command [Echo - Alexa].sayCompliment() (31ms)
+6463ms ║║Executed [Echo - Alexa].sayCompliment (33ms)
+6468ms ║║Executed virtual command [Echo - Alexa].setVariable (1ms)
+6472ms ║║Executed virtual command [Echo - Alexa].setVariable (1ms)
+6481ms ║║Condition #56 evaluated false (6ms)
+6482ms ║║Condition group #55 evaluated false (state did not change) (7ms)
+6484ms ║║Cancelling statement #59’s schedules…
+6494ms ║║Executed virtual command sendSMSNotification (4ms)
+6496ms ║╚Execution stage complete. (6368ms)
+6497ms ║Setting up scheduled job for Wed, Aug 14 2019 @ 8:40:57 PM BRT (in 53.66s)
+6505ms ╚Event processed successfully (6505ms)


#6

I can’t figure out why the notification is firing despite the door having been closed beforehand… the device list is empty because doors are closed, so shouldn’t fire??

Perhaps dumb it down a bit, break into separate pistons per door.

I use the following piston for a back gate, it sends me a message every 10 minutes reminding me the gate is open, with dynamic text stating the duration the gate has been open:

WARNING - The back gate has been open for 10 minutes
WARNING - The back gate has been open for 20 minutes


WARNING - The back gate has been open for 1 hour and 10 minutes

etc. etc.