A power meter monitor question using a GE 220v switch


#1

1) Give a description of the problem
I have a sump pump. It is connected to a float switch and that switch is powered from 220v which is run through a 220 ge smartthings switch. One of the variables the ge switch monitors is “power” basically how many watts is running at any given time. Using the default automation in the smartthings app I can monitor and alert when if goes above a specified watt such as if it goes above 5w then send me a text or if it goes below 1w then send me an alert. That works perfect. My problem is with the webCoRE and using power meter. I have tired great than or equal to, rises above, stays within a range, and I do not get the same results as with the simple automation in smartthings. Instead of getting a 1 for 1 result I often get 2 to 10 alerts within a single on off cycle with webCoRE. What am I doing wrong?

2) What is the expected behaviour?
My goal: if the pump calls for water then wait 20 seconds and send me an sms. Then wait 100 seconds and send an sms and turn on the secondary switch. Let that run for 100 seconds and then turn off and send an alert that it is complete. This should only run one time the power meter goes from 0 to any watts above 5w.

3) What is happening/not happening?
With the current piston it runs too many times randomly. It turns on at the right time and does what it is supposed to but then it runs a again in 10 minutes even thought the power meter has not dipped to below 5w or shut off. I only want it to run once after the power meter first comes on. Then I do not want it to run again until after the power meter has gone back to 0w. Normally it only goes to zero watts 5 to 10 times a day.

**4) Post a Green Snapshot of the piston!

5) Attach logs after turning logging level to Full

8/14/2020, 1:49:07 PM +524ms
+1ms	╔Received event [Master Switch].power = 0.0 with a delay of 48ms
+58ms	║RunTime Analysis CS > 14ms > PS > 4ms > PE > 40ms > CE
+60ms	║Runtime (39351 bytes) successfully initialized in 4ms (v0.3.110.20191009) (58ms)
+61ms	║╔Execution stage started
+68ms	║║Comparison (decimal) 0.0 is_greater_than_or_equal_to (integer) 5 = false (1ms)
+69ms	║║Cancelling condition #2's schedules...
+70ms	║║Condition #2 evaluated false (5ms)
+71ms	║║Cancelling condition #1's schedules...
+72ms	║║Condition group #1 evaluated false (state changed) (8ms)
+74ms	║╚Execution stage complete. (13ms)
+75ms	╚Event processed successfully (75ms)

8/14/2020, 1:37:47 PM +151ms
+1ms	╔Received event [cstn].time = 1597433868889 with a delay of -1738ms
+66ms	║RunTime Analysis CS > 20ms > PS > 4ms > PE > 42ms > CE
+69ms	║Runtime (39354 bytes) successfully initialized in 4ms (v0.3.110.20191009) (67ms)
+69ms	║╔Execution stage started
+107ms	║║Executed physical command [Sand Filter Purge].off() (27ms)
+108ms	║║Executed [Sand Filter Purge].off (29ms)
+119ms	║║Executed virtual command [Sand Filter Purge].sendSMSNotification (7ms)
+126ms	║║Executed virtual command [Sand Filter Purge].wait (1ms)
+128ms	║║Requesting a wake up for Fri, Aug 14 2020 @ 2:37:47 PM MDT (in 3600.0s)
+133ms	║╚Execution stage complete. (64ms)
+135ms	║Setting up scheduled job for Fri, Aug 14 2020 @ 2:37:47 PM MDT (in 3599.994s)
+141ms	╚Event processed successfully (141ms)

8/14/2020, 1:36:08 PM +729ms
+1ms	╔Received event [cstn].time = 1597433769282 with a delay of -553ms
+58ms	║RunTime Analysis CS > 17ms > PS > 4ms > PE > 37ms > CE
+60ms	║Runtime (39353 bytes) successfully initialized in 4ms (v0.3.110.20191009) (59ms)
+61ms	║╔Execution stage started
+127ms	║║Executed virtual command [Sand Filter Purge].sendSMSNotification (54ms)
+155ms	║║Executed physical command [Sand Filter Purge].on() (26ms)
+156ms	║║Executed [Sand Filter Purge].on (28ms)
+159ms	║║Executed virtual command [Sand Filter Purge].wait (0ms)
+160ms	║║Requesting a wake up for Fri, Aug 14 2020 @ 1:37:48 PM MDT (in 100.0s)
+164ms	║╚Execution stage complete. (102ms)
+165ms	║Setting up scheduled job for Fri, Aug 14 2020 @ 1:37:48 PM MDT (in 99.996s)
+171ms	╚Event processed successfully (171ms)

8/14/2020, 1:34:29 PM +180ms
+0ms	╔Received event [cstn].time = 1597433670734 with a delay of -1554ms
+79ms	║RunTime Analysis CS > 25ms > PS > 5ms > PE > 48ms > CE
+81ms	║Runtime (39354 bytes) successfully initialized in 5ms (v0.3.110.20191009) (80ms)
+82ms	║╔Execution stage started
+97ms	║║Executed virtual command [Sand Filter Purge].sendSMSNotification (1ms)
+100ms	║║Executed virtual command [Sand Filter Purge].wait (0ms)
+101ms	║║Requesting a wake up for Fri, Aug 14 2020 @ 1:36:09 PM MDT (in 100.0s)
+105ms	║╚Execution stage complete. (23ms)
+106ms	║Setting up scheduled job for Fri, Aug 14 2020 @ 1:36:09 PM MDT (in 99.996s)
+114ms	╚Event processed successfully (113ms)

8/14/2020, 1:34:10 PM +660ms
+1ms	╔Received event [Master Switch].power = 2153.2 with a delay of 46ms
+56ms	║RunTime Analysis CS > 16ms > PS > 4ms > PE > 35ms > CE
+58ms	║Runtime (39354 bytes) successfully initialized in 4ms (v0.3.110.20191009) (56ms)
+58ms	║╔Execution stage started
+65ms	║║Comparison (decimal) 2153.2 is_greater_than_or_equal_to (integer) 5 = true (1ms)
+66ms	║║Condition #2 evaluated true (4ms)
+67ms	║║Condition group #1 evaluated true (state did not change) (5ms)
+69ms	║║Cancelling statement #3's schedules...
+73ms	║║Executed virtual command [Sand Filter Purge].wait (1ms)
+74ms	║║Requesting a wake up for Fri, Aug 14 2020 @ 1:34:30 PM MDT (in 20.0s)
+77ms	║╚Execution stage complete. (19ms)
+79ms	║Setting up scheduled job for Fri, Aug 14 2020 @ 1:34:30 PM MDT (in 19.996s)
+88ms	╚Event processed successfully (88ms)

8/14/2020, 1:34:08 PM +277ms
+1ms	╔Received event [Master Switch].power = 2145.6 with a delay of 55ms
+62ms	║RunTime Analysis CS > 18ms > PS > 7ms > PE > 38ms > CE
+65ms	║Runtime (39354 bytes) successfully initialized in 7ms (v0.3.110.20191009) (62ms)
+65ms	║╔Execution stage started
+73ms	║║Comparison (decimal) 2145.6 is_greater_than_or_equal_to (integer) 5 = true (1ms)
+74ms	║║Condition #2 evaluated true (5ms)
+75ms	║║Condition group #1 evaluated true (state did not change) (6ms)
+77ms	║║Cancelling statement #3's schedules...
+81ms	║║Executed virtual command [Sand Filter Purge].wait (0ms)
+82ms	║║Requesting a wake up for Fri, Aug 14 2020 @ 1:34:28 PM MDT (in 20.0s)
+86ms	║╚Execution stage complete. (21ms)
+87ms	║Setting up scheduled job for Fri, Aug 14 2020 @ 1:34:28 PM MDT (in 19.996s)
+95ms	╚Event processed successfully (95ms)

8/14/2020, 1:32:41 PM +195ms
+0ms	╔Received event [cstn].time = 1597433562194 with a delay of -999ms
+76ms	║RunTime Analysis CS > 24ms > PS > 5ms > PE > 46ms > CE
+78ms	║Runtime (39353 bytes) successfully initialized in 5ms (v0.3.110.20191009) (77ms)
+80ms	║╔Execution stage started
+145ms	║║Executed physical command [Sand Filter Purge].off() (51ms)
+146ms	║║Executed [Sand Filter Purge].off (53ms)
+171ms	║║Executed virtual command [Sand Filter Purge].sendSMSNotification (18ms)
+175ms	║║Executed virtual command [Sand Filter Purge].wait (1ms)
+177ms	║║Requesting a wake up for Fri, Aug 14 2020 @ 2:32:41 PM MDT (in 3600.0s)
+182ms	║╚Execution stage complete. (102ms)
+183ms	║Setting up scheduled job for Fri, Aug 14 2020 @ 2:32:41 PM MDT (in 3599.994s)
+190ms	╚Event processed successfully (190ms)

8/14/2020, 1:31:02 PM +75ms
+0ms	╔Received event [cstn].time = 1597433463248 with a delay of -1174ms
+66ms	║RunTime Analysis CS > 20ms > PS > 5ms > PE > 42ms > CE
+69ms	║Runtime (39354 bytes) successfully initialized in 5ms (v0.3.110.20191009) (67ms)
+70ms	║╔Execution stage started
+90ms	║║Executed virtual command [Sand Filter Purge].sendSMSNotification (7ms)
+113ms	║║Executed physical command [Sand Filter Purge].on() (20ms)
+114ms	║║Executed [Sand Filter Purge].on (22ms)
+117ms	║║Executed virtual command [Sand Filter Purge].wait (1ms)
+118ms	║║Requesting a wake up for Fri, Aug 14 2020 @ 1:32:42 PM MDT (in 100.0s)
+122ms	║╚Execution stage complete. (53ms)
+124ms	║Setting up scheduled job for Fri, Aug 14 2020 @ 1:32:42 PM MDT (in 99.996s)
+129ms	╚Event processed successfully (129ms)

8/14/2020, 1:29:23 PM +129ms
+1ms	╔Received event [cstn].time = 1597433364414 with a delay of -1285ms
+74ms	║RunTime Analysis CS > 21ms > PS > 6ms > PE > 46ms > CE
+77ms	║Runtime (39354 bytes) successfully initialized in 6ms (v0.3.110.20191009) (75ms)
+78ms	║╔Execution stage started
+114ms	║║Executed virtual command [Sand Filter Purge].sendSMSNotification (18ms)
+117ms	║║Executed virtual command [Sand Filter Purge].wait (1ms)
+118ms	║║Requesting a wake up for Fri, Aug 14 2020 @ 1:31:03 PM MDT (in 100.0s)
+122ms	║╚Execution stage complete. (44ms)
+124ms	║Setting up scheduled job for Fri, Aug 14 2020 @ 1:31:03 PM MDT (in 99.996s)
+131ms	╚Event processed successfully (131ms)

8/14/2020, 1:29:04 PM +332ms
+1ms	╔Received event [Master Switch].power = 2149.7 with a delay of 54ms
+61ms	║RunTime Analysis CS > 16ms > PS > 5ms > PE > 40ms > CE
+63ms	║Runtime (39354 bytes) successfully initialized in 5ms (v0.3.110.20191009) (62ms)
+64ms	║╔Execution stage started
+72ms	║║Comparison (decimal) 2149.7 is_greater_than_or_equal_to (integer) 5 = true (1ms)
+73ms	║║Condition #2 evaluated true (5ms)
+74ms	║║Condition group #1 evaluated true (state did not change) (6ms)
+76ms	║║Cancelling statement #3's schedules...
+80ms	║║Executed virtual command [Sand Filter Purge].wait (1ms)
+81ms	║║Requesting a wake up for Fri, Aug 14 2020 @ 1:29:24 PM MDT (in 20.0s)
+85ms	║╚Execution stage complete. (21ms)
+86ms	║Setting up scheduled job for Fri, Aug 14 2020 @ 1:29:24 PM MDT (in 19.996s)
+97ms	╚Event processed successfully (96ms)

8/14/2020, 1:22:47 PM +169ms
+1ms	╔Received event [cstn].time = 1597432968950 with a delay of -1781ms
+67ms	║RunTime Analysis CS > 16ms > PS > 4ms > PE > 46ms > CE
+69ms	║Runtime (39354 bytes) successfully initialized in 4ms (v0.3.110.20191009) (67ms)
+70ms	║╔Execution stage started
+101ms	║║Executed physical command [Sand Filter Purge].off() (18ms)
+102ms	║║Executed [Sand Filter Purge].off (20ms)
+176ms	║║Executed virtual command [Sand Filter Purge].sendSMSNotification (69ms)
+179ms	║║Executed virtual command [Sand Filter Purge].wait (0ms)
+181ms	║║Requesting a wake up for Fri, Aug 14 2020 @ 2:22:47 PM MDT (in 3600.0s)
+184ms	║╚Execution stage complete. (114ms)
+186ms	║Setting up scheduled job for Fri, Aug 14 2020 @ 2:22:47 PM MDT (in 3599.996s)
+193ms	╚Event processed successfully (193ms)

8/14/2020, 1:21:08 PM +825ms
+0ms	╔Received event [cstn].time = 1597432869329 with a delay of -505ms
+65ms	║RunTime Analysis CS > 20ms > PS > 6ms > PE > 40ms > CE
+67ms	║Runtime (39353 bytes) successfully initialized in 6ms (v0.3.110.20191009) (66ms)
+68ms	║╔Execution stage started
+92ms	║║Executed virtual command [Sand Filter Purge].sendSMSNotification (11ms)
+119ms	║║Executed physical command [Sand Filter Purge].on() (25ms)
+120ms	║║Executed [Sand Filter Purge].on (27ms)
+123ms	║║Executed virtual command [Sand Filter Purge].wait (0ms)
+124ms	║║Requesting a wake up for Fri, Aug 14 2020 @ 1:22:48 PM MDT (in 100.0s)
+128ms	║╚Execution stage complete. (60ms)
+130ms	║Setting up scheduled job for Fri, Aug 14 2020 @ 1:22:48 PM MDT (in 99.996s)
+137ms	╚Event processed successfully (138ms)

8/14/2020, 1:19:29 PM +180ms
+0ms	╔Received event [cstn].time = 1597432770096 with a delay of -917ms
+90ms	║RunTime Analysis CS > 26ms > PS > 7ms > PE > 57ms > CE
+93ms	║Runtime (39353 bytes) successfully initialized in 7ms (v0.3.110.20191009) (92ms)
+94ms	║╔Execution stage started
+143ms	║║Executed virtual command [Sand Filter Purge].sendSMSNotification (32ms)
+146ms	║║Executed virtual command [Sand Filter Purge].wait (1ms)
+148ms	║║Requesting a wake up for Fri, Aug 14 2020 @ 1:21:09 PM MDT (in 100.0s)
+152ms	║╚Execution stage complete. (58ms)
+154ms	║Setting up scheduled job for Fri, Aug 14 2020 @ 1:21:09 PM MDT (in 99.996s)
+160ms	╚Event processed successfully (160ms)

8/14/2020, 1:19:10 PM +25ms
+1ms	╔Received event [Master Switch].power = 2142.9 with a delay of 46ms
+52ms	║RunTime Analysis CS > 16ms > PS > 3ms > PE > 33ms > CE
+54ms	║Runtime (39354 bytes) successfully initialized in 3ms (v0.3.110.20191009) (52ms)
+55ms	║╔Execution stage started
+62ms	║║Comparison (decimal) 2142.9 is_greater_than_or_equal_to (integer) 5 = true (1ms)
+63ms	║║Condition #2 evaluated true (5ms)
+64ms	║║Condition group #1 evaluated true (state did not change) (6ms)
+66ms	║║Cancelling statement #3's schedules...
+69ms	║║Executed virtual command [Sand Filter Purge].wait (0ms)
+71ms	║║Requesting a wake up for Fri, Aug 14 2020 @ 1:19:30 PM MDT (in 20.0s)
+74ms	║╚Execution stage complete. (20ms)
+75ms	║Setting up scheduled job for Fri, Aug 14 2020 @ 1:19:30 PM MDT (in 19.996s)
+86ms	╚Event processed successfully (86ms)

8/14/2020, 1:19:07 PM +569ms
+1ms	╔Received event [Master Switch].power = 2140.9 with a delay of 48ms
+58ms	║RunTime Analysis CS > 21ms > PS > 5ms > PE > 31ms > CE
+60ms	║Runtime (39354 bytes) successfully initialized in 5ms (v0.3.110.20191009) (58ms)
+61ms	║╔Execution stage started
+69ms	║║Comparison (decimal) 2140.9 is_greater_than_or_equal_to (integer) 5 = true (2ms)
+70ms	║║Condition #2 evaluated true (5ms)
+71ms	║║Condition group #1 evaluated true (state did not change) (6ms)
+171ms	║║Cancelling statement #3's schedules...
+175ms	║║Executed virtual command [Sand Filter Purge].wait (0ms)
+176ms	║║Requesting a wake up for Fri, Aug 14 2020 @ 1:19:27 PM MDT (in 20.0s)
+180ms	║╚Execution stage complete. (119ms)
+182ms	║Setting up scheduled job for Fri, Aug 14 2020 @ 1:19:27 PM MDT (in 19.996s)
+192ms	╚Event processed successfully (192ms)

8/14/2020, 1:07:46 PM +187ms
+0ms	╔Received event [cstn].time = 1597432067601 with a delay of -1415ms
+92ms	║RunTime Analysis CS > 41ms > PS > 7ms > PE > 44ms > CE
+95ms	║Runtime (39354 bytes) successfully initialized in 7ms (v0.3.110.20191009) (94ms)
+97ms	║╔Execution stage started
+311ms	║║Executed physical command [Sand Filter Purge].off() (199ms)
+312ms	║║Executed [Sand Filter Purge].off (201ms)
+321ms	║║Executed virtual command [Sand Filter Purge].sendSMSNotification (1ms)
+325ms	║║Executed virtual command [Sand Filter Purge].wait (0ms)
+326ms	║║Requesting a wake up for Fri, Aug 14 2020 @ 2:07:46 PM MDT (in 3600.0s)
+331ms	║╚Execution stage complete. (235ms)
+333ms	║Setting up scheduled job for Fri, Aug 14 2020 @ 2:07:46 PM MDT (in 3599.995s)
+342ms	╚Event processed successfully (341ms)

8/14/2020, 1:06:07 PM +382ms
+0ms	╔Received event [cstn].time = 1597431968341 with a delay of -959ms
+58ms	║RunTime Analysis CS > 15ms > PS > 4ms > PE > 39ms > CE
+61ms	║Runtime (39353 bytes) successfully initialized in 4ms (v0.3.110.20191009) (59ms)
+62ms	║╔Execution stage started
+192ms	║║Executed virtual command [Sand Filter Purge].sendSMSNotification (117ms)
+213ms	║║Executed physical command [Sand Filter Purge].on() (19ms)
+214ms	║║Executed [Sand Filter Purge].on (21ms)
+217ms	║║Executed virtual command [Sand Filter Purge].wait (0ms)
+218ms	║║Requesting a wake up for Fri, Aug 14 2020 @ 1:07:47 PM MDT (in 100.0s)
+223ms	║╚Execution stage complete. (161ms)
+224ms	║Setting up scheduled job for Fri, Aug 14 2020 @ 1:07:47 PM MDT (in 99.995s)
+231ms	╚Event processed successfully (231ms)

8/14/2020, 1:04:28 PM +173ms
+0ms	╔Received event [cstn].time = 1597431869916 with a delay of -1743ms
+60ms	║RunTime Analysis CS > 20ms > PS > 4ms > PE > 35ms > CE
+62ms	║Runtime (39354 bytes) successfully initialized in 4ms (v0.3.110.20191009) (61ms)
+63ms	║╔Execution stage started
+163ms	║║Executed virtual command [Sand Filter Purge].sendSMSNotification (87ms)
+166ms	║║Executed virtual command [Sand Filter Purge].wait (0ms)
+168ms	║║Requesting a wake up for Fri, Aug 14 2020 @ 1:06:08 PM MDT (in 100.0s)
+172ms	║╚Execution stage complete. (109ms)
+173ms	║Setting up scheduled job for Fri, Aug 14 2020 @ 1:06:08 PM MDT (in 99.995s)
+180ms	╚Event processed successfully (180ms)

8/14/2020, 1:04:09 PM +846ms
+1ms	╔Received event [Master Switch].power = 2221.0 with a delay of 43ms
+51ms	║RunTime Analysis CS > 16ms > PS > 5ms > PE > 29ms > CE
+53ms	║Runtime (39354 bytes) successfully initialized in 5ms (v0.3.110.20191009) (50ms)
+53ms	║╔Execution stage started
+60ms	║║Comparison (decimal) 2221.0 is_greater_than_or_equal_to (integer) 5 = true (1ms)
+62ms	║║Condition #2 evaluated true (5ms)
+63ms	║║Condition group #1 evaluated true (state did not change) (5ms)
+65ms	║║Cancelling statement #3's schedules...
+68ms	║║Executed virtual command [Sand Filter Purge].wait (0ms)
+70ms	║║Requesting a wake up for Fri, Aug 14 2020 @ 1:04:29 PM MDT (in 20.0s)
+73ms	║╚Execution stage complete. (20ms)
+74ms	║Setting up scheduled job for Fri, Aug 14 2020 @ 1:04:29 PM MDT (in 19.996s)
+83ms	╚Event processed successfully (83ms)

8/14/2020, 1:04:07 PM +501ms
+1ms	╔Received event [Master Switch].power = 2220.4 with a delay of 55ms
+61ms	║RunTime Analysis CS > 19ms > PS > 7ms > PE > 36ms > CE
+64ms	║Runtime (39356 bytes) successfully initialized in 7ms (v0.3.110.20191009) (61ms)
+64ms	║╔Execution stage started
+72ms	║║Comparison (decimal) 2220.4 is_greater_than_or_equal_to (integer) 5 = true (1ms)
+74ms	║║Cancelling condition #2's schedules...
+75ms	║║Condition #2 evaluated true (5ms)
+76ms	║║Cancelling condition #1's schedules...
+76ms	║║Condition group #1 evaluated true (state changed) (8ms)
+79ms	║║Cancelling statement #3's schedules...
+83ms	║║Executed virtual command [Sand Filter Purge].wait (0ms)
+85ms	║║Requesting a wake up for Fri, Aug 14 2020 @ 1:04:27 PM MDT (in 20.0s)
+89ms	║╚Execution stage complete. (24ms)
+90ms	║Setting up scheduled job for Fri, Aug 14 2020 @ 1:04:27 PM MDT (in 19.996s)
+97ms	╚Event processed successfully (97ms)

#2

I have not looked thru your logs, but have you set Task Cancellation Policy to NEVER on your WAIT statements?


#3

Power changes. A lot. (and the piston runs at each and every change)

Notice how line 18 is a condition? This means each power change will execute the piston… and if the power is greater than 5W, then it takes action.

If you only want one set of actions taking place, you can change that condition on line 18 to a trigger:

IF Outlet's power RISES ABOVE 5W
Then
    With Switch 11  (TCP set to Never)
    Do this
    Do that
END IF

In this case, the power has to drop below 5, then rise above 5 to trigger again.


#4

Thank you so much for taking a look. I believe your ideas worked perfectly. I will test it more this weekend but it seems to work now.

Cheers