I have a Homeseer Flex sensor, along with SmartThings. I’m using it to detect when my dehumidifier is full, as the light sensor is aimed at the light of my dehumidifier. If it detects blinking, whether it is full (or when the bucket is removed) I want it to notify me. The way the Homeseer creates events is by button pushes. I am using the light sensor, so button 2 being pushed means it sees light, button 1 being pushed, means it does not.
What I’ve been struggling to do is to get notified only once maybe every 5+ minutes when this button gets pressed, but seemingly everything I try I get spammed with notifications constantly. I got an idea yesterday to create this using variables (and who knows if I did this right, but it does fire, it just spams me!). Please take a look at this, and kindly advise me where I went wrong.
Thank you so much!
6/6/2020, 3:28:22 PM +411ms
+2ms ╔Received event [Basement - HomeSeer Flex Sensor].button = pushed with a delay of 45ms
+82ms ║RunTime Analysis CS > 20ms > PS > 45ms > PE > 17ms > CE
+84ms ║Runtime (38395 bytes) successfully initialized in 45ms (v0.3.110.20191009) (81ms)
+85ms ║╔Execution stage started
+95ms ║║Comparison (enum) pushed gets (string) pushed = false (3ms)
+96ms ║║Condition #2 evaluated false (7ms)
+97ms ║║Condition group #1 evaluated false (state did not change) (8ms)
+102ms ║║Comparison (enum) pushed gets (string) pushed = true (1ms)
+103ms ║║Cancelling condition #4's schedules...
+104ms ║║Condition #4 evaluated true (5ms)
+105ms ║║Cancelling condition #3's schedules...
+106ms ║║Condition group #3 evaluated true (state changed) (7ms)
+108ms ║║Cancelling statement #5's schedules...
+113ms ║║Executed virtual command setVariable (3ms)
+119ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+120ms ║║Cancelling condition #10's schedules...
+121ms ║║Condition #10 evaluated false (5ms)
+122ms ║║Cancelling condition #9's schedules...
+123ms ║║Condition group #9 evaluated false (state changed) (7ms)
+125ms ║╚Execution stage complete. (40ms)
+126ms ╚Event processed successfully (126ms)
6/6/2020, 3:28:17 PM +869ms
+2ms ╔Received event [Basement - HomeSeer Flex Sensor].button = pushed with a delay of 129ms
+275ms ║RunTime Analysis CS > 17ms > PS > 242ms > PE > 16ms > CE
+277ms ║Runtime (38399 bytes) successfully initialized in 242ms (v0.3.110.20191009) (275ms)
+278ms ║╔Execution stage started
+285ms ║║Comparison (enum) pushed gets (string) pushed = false (1ms)
+287ms ║║Condition #2 evaluated false (4ms)
+288ms ║║Condition group #1 evaluated false (state did not change) (5ms)
+293ms ║║Comparison (enum) pushed gets (string) pushed = false (0ms)
+294ms ║║Condition #4 evaluated false (4ms)
+295ms ║║Condition group #3 evaluated false (state did not change) (6ms)
+301ms ║║Comparison (boolean) true is (boolean) true = true (2ms)
+302ms ║║Condition #10 evaluated true (4ms)
+303ms ║║Condition group #9 evaluated true (state did not change) (6ms)
+305ms ║║Cancelling statement #11's schedules...
+325ms ║║Executed virtual command sendPushNotification (17ms)
+328ms ║║Executed virtual command wait (1ms)
+329ms ║║Requesting a wake up for Sat, Jun 6 2020 @ 3:33:18 PM EDT (in 300.0s)
+333ms ║╚Execution stage complete. (55ms)
+334ms ║Setting up scheduled job for Sat, Jun 6 2020 @ 3:33:18 PM EDT (in 299.996s)
+345ms ╚Event processed successfully (345ms)
6/6/2020, 3:28:13 PM +394ms
+1ms ╔Received event [Basement - HomeSeer Flex Sensor].button = pushed with a delay of 44ms
+73ms ║RunTime Analysis CS > 18ms > PS > 40ms > PE > 15ms > CE
+75ms ║Runtime (38391 bytes) successfully initialized in 40ms (v0.3.110.20191009) (73ms)
+76ms ║╔Execution stage started
+83ms ║║Comparison (enum) pushed gets (string) pushed = false (1ms)
+85ms ║║Cancelling condition #2's schedules...
+86ms ║║Condition #2 evaluated false (5ms)
+87ms ║║Cancelling condition #1's schedules...
+87ms ║║Condition group #1 evaluated false (state changed) (7ms)
+93ms ║║Comparison (enum) pushed gets (string) pushed = false (0ms)
+94ms ║║Cancelling condition #4's schedules...
+95ms ║║Condition #4 evaluated false (6ms)
+96ms ║║Cancelling condition #3's schedules...
+97ms ║║Condition group #3 evaluated false (state changed) (8ms)
+102ms ║║Comparison (boolean) true is (boolean) true = true (1ms)
+104ms ║║Condition #10 evaluated true (4ms)
+105ms ║║Condition group #9 evaluated true (state did not change) (5ms)
+107ms ║║Cancelling statement #11's schedules...
+120ms ║║Executed virtual command sendPushNotification (10ms)
+123ms ║║Executed virtual command wait (1ms)
+124ms ║║Requesting a wake up for Sat, Jun 6 2020 @ 3:33:13 PM EDT (in 300.0s)
+128ms ║╚Execution stage complete. (52ms)
+130ms ║Setting up scheduled job for Sat, Jun 6 2020 @ 3:33:13 PM EDT (in 299.996s)
+140ms ╚Event processed successfully (140ms)
6/6/2020, 3:28:08 PM +429ms
+2ms ╔Received event [Basement - HomeSeer Flex Sensor].button = pushed with a delay of 48ms
+72ms ║RunTime Analysis CS > 17ms > PS > 42ms > PE > 13ms > CE
+75ms ║Runtime (38400 bytes) successfully initialized in 42ms (v0.3.110.20191009) (73ms)
+76ms ║╔Execution stage started
+83ms ║║Comparison (enum) pushed gets (string) pushed = true (1ms)
+84ms ║║Cancelling condition #2's schedules...
+85ms ║║Condition #2 evaluated true (5ms)
+86ms ║║Cancelling condition #1's schedules...
+87ms ║║Condition group #1 evaluated true (state changed) (8ms)
+89ms ║║Cancelling statement #7's schedules...
+94ms ║║Executed virtual command setVariable (2ms)
+100ms ║║Comparison (boolean) true is (boolean) true = true (1ms)
+101ms ║║Cancelling condition #10's schedules...
+102ms ║║Condition #10 evaluated true (5ms)
+103ms ║║Cancelling condition #9's schedules...
+104ms ║║Condition group #9 evaluated true (state changed) (7ms)
+106ms ║║Cancelling statement #11's schedules...
+126ms ║║Executed virtual command sendPushNotification (17ms)
+129ms ║║Executed virtual command wait (1ms)
+130ms ║║Requesting a wake up for Sat, Jun 6 2020 @ 3:33:08 PM EDT (in 300.0s)
+134ms ║╚Execution stage complete. (59ms)
+136ms ║Setting up scheduled job for Sat, Jun 6 2020 @ 3:33:08 PM EDT (in 299.996s)
+143ms ╚Event processed successfully (143ms)