[DEPRECATED Thread: visit community.webcore.co for assistance] webCoRE - Piston Design Help (ask your fellow members for assistance)

I am trying to use $currentEventDevicePhysical to determine if a physical switch has been changed. Works great with a GE 12727 switch, however always reports false with my Lutron PD-6WCL-WH dimmer. Is this feature device dependent and may not work with all devices? Anyone else with the issue, any work arounds? TNX

Yep, the DTH and the device need to support that.

Can’t figure out why my While Loops are running at lines 66 & 129 even though the main Else If statements starting at line 52 and 115 are false. The If Statements proceeding the While Loops at line 62 & 125 evaluate to true, but why when the main Else If statements are false. Shouldn’t the While Loops not run.

sonos speaker not really resuming after speaking text. I am able to use “device stop”, “device play”, “device speak text”, but speak test and resume only speaks test and stops. what could be the problem?

Hello all, is there way to capture, and more importantly send an image from an image capture device,
in the event log it’s listed as so:
eventSource DEVICE
eventType IMAGE
{
“imagePath”: “/api/files/devices/xxxxxx/images/xxxx.jpg”
}

(and the image is visible in the device’s event view on the app… thanks

trying to use the osram lightify dimming switch as an on/off switch, with this device handler from adamoutler : Lightify Dimming Switch- Zigbee repo adamoutler/SmartThingsPublic (master) with these capabilities Battery, Button, Switch Level.

webcore seems to have recognized it as a button device thru the settings -> available devices. but none of the button pushes seem to get recognized by webcore when done from the physical device. i have tried checking for any of the buttons from the list of 8 buttons that webcore lists. nada.

anyone have any experience using these switches? could use some help folks.

thanks!

is there a way to gracefully exit a piston, without processing any of the remaining conditions and tasks from that point forward? does - exit achieve that or is it more like an - abort?

thanks!

@twodaend are you getting the SMS notification at line 58?

hacked this one together by checking state on/off which seems to change consistently and to turn off from piston using toggle() because neither turn on or turn off are available as tasks for the device. i am planning to deploy more of these switches in the house, so if anyone knows how to solve this one more elegantly do please share.

thank you.

Alright guys this still seems like a normal timed lighting instead. My aim is to do the following:

Motion happens > lights turn on > timer starts > if motion happens again > restart timer > else wait 5 minutes > turn light back off.

How do I modify this piston to make this happen?

Or should it be like this:

Someone told me on here it should be like this:

If
Motion
Then
Turn on
Else
Wait 5 minutes
Turn off
End if

@AutomationHoarder sorry, but is the piston not working as is … why do you want to modify it?

Yes, but only when the washer has finished which is correct. I just clicked test on the piston and line 71 is waiting 9 minutes before it runs and I’ll probably get the text right after it.

I shortened the piston a bit just to go through the washer only and speed up the time to see what happens after I did a test. The While Loop runs no matter what. I would have thought if lines 49 & 51 are false, then nothing below it should be evaluated as lines 53 thru 56 don’t run because WasherOn is not true. However, line 59 gets evaluated and once it is true (why would it even be evaluated) line 63 the While Loop begins.

6/25/2017, 9:32:47 AM +513ms
+1ms ╔Received event [Home].time = 1498401167933 with a delay of -420ms
+263ms ║RunTime Analysis CS > 22ms > PS > 103ms > PE > 137ms > CE
+276ms ║Runtime (72769 bytes) successfully initialized in 103ms (v0.2.0ca.20170623) (274ms)
+278ms ║╔Execution stage started
+345ms ║║Calculating (integer) 0 + (integer) 10 >> (integer) 10
+349ms ║║Executed virtual command setVariable (1ms)
+360ms ║║Comparison 10 is_greater_than_or_equal_to 60 = false (3ms)
+362ms ║║Condition #75 evaluated false (9ms)
+363ms ║║Condition group #71 evaluated false (state did not change) (10ms)
+376ms ║║Comparison closed is closed = true (3ms)
+378ms ║║Condition #76 evaluated true (13ms)
+379ms ║║Condition group #58 evaluated true (state did not change) (14ms)
+388ms ║║Comparison 10 is_equal_to 0 = false (2ms)
+390ms ║║Cancelling condition #64’s schedules…
+391ms ║║Condition #64 evaluated false (8ms)
+392ms ║║Cancelling condition #59’s schedules…
+393ms ║║Condition group #59 evaluated false (state changed) (12ms)
+402ms ║║Comparison 10 is_greater_than_or_equal_to 1 = true (3ms)
+404ms ║║Condition #69 evaluated true (7ms)
+410ms ║║Comparison 10 is_less_than 60 = true (2ms)
+412ms ║║Condition #70 evaluated true (7ms)
+413ms ║║Condition group #65 evaluated true (state did not change) (17ms)
+415ms ║║Cancelling statement #65’s schedules…
+424ms ║║Calculating (string) The Washer Machine Finished + (string) 10 >> (string) The Washer Machine Finished 10
+428ms ║║Calculating (string) The Washer Machine Finished 10 + (string) Minutes Ago >> (string) The Washer Machine Finished 10 Minutes Ago
+459ms ║║Executed virtual command sendSMSNotification (22ms)
+464ms ║║Executed virtual command wait (1ms)
+465ms ║║Requesting a wake up for Sun, Jun 25 2017 @ 9:42:47 AM CDT (in 600.0s)
+476ms ║╚Execution stage complete. (199ms)
+480ms ║Setting up scheduled job for Sun, Jun 25 2017 @ 9:42:47 AM CDT (in 599.988s), with 2 more jobs pending
+496ms ╚Event processed successfully (496ms)

6/25/2017, 9:28:14 AM +290ms
+2ms ╔Received event [Washing Machine].power = 0 with a delay of 206ms
+375ms ║RunTime Analysis CS > 30ms > PS > 144ms > PE > 201ms > CE
+389ms ║Runtime (72768 bytes) successfully initialized in 144ms (v0.2.0ca.20170623) (386ms)
+391ms ║╔Execution stage started
+411ms ║║Comparison 0.0 is_greater_than_or_equal_to 5 = false (3ms)
+414ms ║║Condition #6 evaluated false (11ms)
+415ms ║║Condition group #1 evaluated false (state did not change) (14ms)
+427ms ║║Comparison 0.0 is_less_than 5 = true (3ms)
+429ms ║║Condition #22 evaluated true (12ms)
+440ms ║║Comparison false is true = false (4ms)
+443ms ║║Condition #23 evaluated false (13ms)
+445ms ║║Condition group #14 evaluated false (state did not change) (29ms)
+462ms ║║Cancelling statement #47’s schedules…
+478ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false
+494ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false
+515ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false
+525ms ║║Calculating (string) b, flash, + (string) silver >> (string) b, flash, silver
+533ms ║║Calculating (string) >> (string)
+539ms ║║Calculating (string) + (string) Washer Off >> (string) Washer Off
+545ms ║║Calculating (string) Washer Off + (string) >> (string) Washer Off
+550ms ║║Calculating (string) Washer Off + (string) at >> (string) Washer Off at
+556ms ║║Calculating (string) Washer Off at + (string) Sun, Jun 25 2017 @ 12:00:00 AM CDT >> (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+573ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false
+586ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false
+603ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false
+613ms ║║Calculating (string) b, blink, + (string) silver >> (string) b, blink, silver
+620ms ║║Calculating (string) >> (string)
+626ms ║║Calculating (string) + (string) Dryer Off >> (string) Dryer Off
+632ms ║║Calculating (string) Dryer Off + (string) >> (string) Dryer Off
+637ms ║║Calculating (string) Dryer Off + (string) at >> (string) Dryer Off at
+644ms ║║Calculating (string) Dryer Off at + (string) Sun, Jun 25 2017 @ 12:00:00 AM CDT >> (string) Dryer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+662ms ║║Calculating (string) Completed + (string) 0 >> (string) Completed 0
+668ms ║║Calculating (string) Completed 0 + (string) Washer & >> (string) Completed 0 Washer &
+673ms ║║Calculating (string) Completed 0 Washer & + (string) 0 >> (string) Completed 0 Washer & 0
+678ms ║║Calculating (string) Completed 0 Washer & 0 + (string) Dryer Load(s) This Week >> (string) Completed 0 Washer & 0 Dryer Load(s) This Week
+690ms ║║Calculating (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT + (string)
+690ms ║║ >> (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+691ms ║║
+697ms ║║Calculating (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+697ms ║║ + (string) Dryer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT >> (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+697ms ║║ Dryer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+703ms ║║Calculating (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+703ms ║║ Dryer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT + (string)
+703ms ║║ >> (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+704ms ║║ Dryer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+704ms ║║
+709ms ║║Calculating (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+709ms ║║ Dryer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+709ms ║║ + (string) Completed 0 Washer & 0 Dryer Load(s) This Week >> (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+710ms ║║ Dryer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+710ms ║║ Completed 0 Washer & 0 Dryer Load(s) This Week
+714ms ║║Calculating (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+715ms ║║ Dryer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+715ms ║║ Completed 0 Washer & 0 Dryer Load(s) This Week + (string) >> (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+715ms ║║ Dryer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+715ms ║║ Completed 0 Washer & 0 Dryer Load(s) This Week
+720ms ║║Executed virtual command setState (2ms)
+727ms ║╚Execution stage complete. (337ms)
+730ms ║Setting up scheduled job for Sun, Jun 25 2017 @ 9:32:47 AM CDT (in 272.914s), with 2 more jobs pending
+748ms ╚Event processed successfully (747ms)

6/25/2017, 9:22:47 AM +377ms
+0ms ╔Received event [Home].time = 1498400568908 with a delay of -1532ms
+256ms ║RunTime Analysis CS > 22ms > PS > 108ms > PE > 126ms > CE
+270ms ║Runtime (72772 bytes) successfully initialized in 108ms (v0.2.0ca.20170623) (269ms)
+272ms ║╔Execution stage started
+470ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+474ms ║║Executed virtual command setVariable (1ms)
+484ms ║║Comparison 1 is_greater_than_or_equal_to 1 = true (2ms)
+487ms ║║Cancelling condition #69’s schedules…
+488ms ║║Condition #69 evaluated true (9ms)
+500ms ║║Comparison 1 is_less_than 60 = true (8ms)
+502ms ║║Condition #70 evaluated true (14ms)
+503ms ║║Cancelling condition #65’s schedules…
+504ms ║║Condition group #65 evaluated true (state changed) (26ms)
+506ms ║║Cancelling statement #65’s schedules…
+515ms ║║Calculating (string) The Washer Machine Finished + (string) 1 >> (string) The Washer Machine Finished 1
+520ms ║║Calculating (string) The Washer Machine Finished 1 + (string) Minutes Ago >> (string) The Washer Machine Finished 1 Minutes Ago
+549ms ║║Executed virtual command sendSMSNotification (20ms)
+554ms ║║Executed virtual command wait (1ms)
+556ms ║║Requesting a wake up for Sun, Jun 25 2017 @ 9:32:47 AM CDT (in 600.0s)
+568ms ║╚Execution stage complete. (296ms)
+571ms ║Setting up scheduled job for Sun, Jun 25 2017 @ 9:32:47 AM CDT (in 599.986s), with 2 more jobs pending
+589ms ╚Event processed successfully (589ms)
6/25/2017, 9:21:48 AM +507ms
+1ms ╔Received event [Home].time = 1498400508987 with a delay of -480ms
+289ms ║RunTime Analysis CS > 25ms > PS > 115ms > PE > 148ms > CE
+302ms ║Runtime (72771 bytes) successfully initialized in 115ms (v0.2.0ca.20170623) (299ms)
+303ms ║╔Execution stage started
+390ms ║║Executed virtual command sendSMSNotification (28ms)
+398ms ║║Executed virtual command wait (1ms)
+400ms ║║Requesting a wake up for Sun, Jun 25 2017 @ 9:22:48 AM CDT (in 60.0s)
+415ms ║╚Execution stage complete. (111ms)
+419ms ║Setting up scheduled job for Sun, Jun 25 2017 @ 9:22:48 AM CDT (in 59.984s), with 2 more jobs pending
+438ms ╚Event processed successfully (437ms)
6/25/2017, 9:21:26 AM +875ms
+0ms ╔Received event [Home].test = 1498400486784 with a delay of 90ms
+609ms ║RunTime Analysis CS > 29ms > PS > 369ms > PE > 211ms > CE
+625ms ║Runtime (72341 bytes) successfully initialized in 369ms (v0.2.0ca.20170623) (624ms)
+627ms ║╔Execution stage started
+648ms ║║Comparison 0.0 is_greater_than_or_equal_to 5 = false (3ms)
+651ms ║║Condition #6 evaluated false (14ms)
+652ms ║║Condition group #1 evaluated false (state did not change) (17ms)
+666ms ║║Comparison 0.0 is_less_than 5 = true (3ms)
+668ms ║║Condition #22 evaluated true (13ms)
+677ms ║║Comparison false is true = false (4ms)
+679ms ║║Condition #23 evaluated false (10ms)
+681ms ║║Condition group #14 evaluated false (state did not change) (27ms)
+702ms ║║Cancelling statement #47’s schedules…
+720ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false
+733ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false
+749ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false
+759ms ║║Calculating (string) b, flash, + (string) silver >> (string) b, flash, silver
+765ms ║║Calculating (string) >> (string)
+770ms ║║Calculating (string) + (string) Washer Off >> (string) Washer Off
+775ms ║║Calculating (string) Washer Off + (string) >> (string) Washer Off
+780ms ║║Calculating (string) Washer Off + (string) at >> (string) Washer Off at
+786ms ║║Calculating (string) Washer Off at + (string) Sun, Jun 25 2017 @ 12:00:00 AM CDT >> (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+801ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false
+814ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false
+830ms ║║Calculating (boolean) false == (boolean) true >> (boolean) false
+839ms ║║Calculating (string) b, blink, + (string) silver >> (string) b, blink, silver
+845ms ║║Calculating (string) >> (string)
+851ms ║║Calculating (string) + (string) Dryer Off >> (string) Dryer Off
+856ms ║║Calculating (string) Dryer Off + (string) >> (string) Dryer Off
+861ms ║║Calculating (string) Dryer Off + (string) at >> (string) Dryer Off at
+866ms ║║Calculating (string) Dryer Off at + (string) Sun, Jun 25 2017 @ 12:00:00 AM CDT >> (string) Dryer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+883ms ║║Calculating (string) Completed + (string) 0 >> (string) Completed 0
+888ms ║║Calculating (string) Completed 0 + (string) Washer & >> (string) Completed 0 Washer &
+894ms ║║Calculating (string) Completed 0 Washer & + (string) 0 >> (string) Completed 0 Washer & 0
+898ms ║║Calculating (string) Completed 0 Washer & 0 + (string) Dryer Load(s) This Week >> (string) Completed 0 Washer & 0 Dryer Load(s) This Week
+908ms ║║Calculating (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT + (string)
+908ms ║║ >> (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+909ms ║║
+914ms ║║Calculating (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+915ms ║║ + (string) Dryer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT >> (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+915ms ║║ Dryer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+920ms ║║Calculating (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+920ms ║║ Dryer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT + (string)
+920ms ║║ >> (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+920ms ║║ Dryer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+921ms ║║
+925ms ║║Calculating (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+926ms ║║ Dryer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+926ms ║║ + (string) Completed 0 Washer & 0 Dryer Load(s) This Week >> (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+926ms ║║ Dryer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+926ms ║║ Completed 0 Washer & 0 Dryer Load(s) This Week
+931ms ║║Calculating (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+931ms ║║ Dryer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+931ms ║║ Completed 0 Washer & 0 Dryer Load(s) This Week + (string) >> (string) Washer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+931ms ║║ Dryer Off at Sun, Jun 25 2017 @ 12:00:00 AM CDT
+931ms ║║ Completed 0 Washer & 0 Dryer Load(s) This Week
+937ms ║║Executed virtual command setState (2ms)
+970ms ║╚Execution stage complete. (344ms)
+977ms ║Setting up scheduled job for Sun, Jun 25 2017 @ 9:21:48 AM CDT (in 21.137s), with 2 more jobs pending
+995ms ╚Event processed successfully (996ms)
6/25/2017, 9:20:48 AM +504ms
+1ms ╔Received event [Home].time = 1498400449816 with a delay of -1313ms
+353ms ║RunTime Analysis CS > 25ms > PS > 146ms > PE > 183ms > CE
+367ms ║Runtime (72346 bytes) successfully initialized in 146ms (v0.2.0ca.20170623) (364ms)
+369ms ║╔Execution stage started
+406ms ║║Cancelling condition #78’s schedules…
+407ms ║║Condition #78 evaluated true (2ms)
+409ms ║║Cancelling condition #57’s schedules…
+410ms ║║Condition group #57 evaluated true (state changed) (7ms)
+427ms ║║Comparison :319737f9ebc7449af2093d8058bd1032: is_any_of :eb331331f9dcca8e5a61e32168f58632:,:319737f9ebc7449af2093d8058bd1032:,:a3fc6d7123b15f01a79eb227ccf7592c:,:79f202af4d3742df7c907bdfe34dd304:,:8b418743d7f6b62d668a54b474f39f97: = true (7ms)
+430ms ║║Condition #77 evaluated true (15ms)
+431ms ║║Condition group #58 evaluated true (state did not change) (18ms)
+446ms ║║Comparison closed is closed = true (3ms)
+449ms ║║Condition #76 evaluated true (16ms)
+450ms ║║Condition group #58 evaluated true (state did not change) (18ms)
+466ms ║║Comparison 0 is_equal_to 0 = true (4ms)
+468ms ║║Condition #64 evaluated true (14ms)
+470ms ║║Condition group #59 evaluated true (state did not change) (16ms)
+472ms ║║Cancelling statement #59’s schedules…
+481ms ║║Executed virtual command wait (1ms)
+482ms ║║Requesting a wake up for Sun, Jun 25 2017 @ 9:21:48 AM CDT (in 60.0s)
+498ms ║╚Execution stage complete. (129ms)
+502ms ║Setting up scheduled job for Sun, Jun 25 2017 @ 9:21:48 AM CDT (in 59.983s), with 2 more jobs pending
+519ms ╚Event processed successfully (518ms)
6/25/2017, 9:20:19 AM +32ms
+1ms ╔Starting piston… (v0.2.0ca.20170623)
+469ms ║╔Subscribing to devices…
+518ms ║║Subscribing to Washing Machine.power…
+535ms ║║Subscribing to Washing Machine Door.contact…
+694ms ║╚Finished subscribing (230ms)
+735ms ║Comparison 0.0 is_greater_than_or_equal_to 5 = false (2ms)
+741ms ║Comparison false is false = true (2ms)
+757ms ║Comparison 0.0 is_less_than 5 = true (2ms)
+763ms ║Comparison false is true = false (2ms)
+781ms ║Comparison closed stays closed = true (3ms)
+784ms ║Adding a timed trigger schedule for condition 78
+789ms ║Cancelling condition #78’s schedules…
+790ms ║Cancelling condition #57’s schedules…
+806ms ║Comparison :319737f9ebc7449af2093d8058bd1032: is_any_of :eb331331f9dcca8e5a61e32168f58632:,:319737f9ebc7449af2093d8058bd1032:,:a3fc6d7123b15f01a79eb227ccf7592c:,:79f202af4d3742df7c907bdfe34dd304:,:8b418743d7f6b62d668a54b474f39f97: = true (7ms)
+817ms ║Comparison closed is closed = true (2ms)
+827ms ║Comparison 0 is_equal_to 0 = true (2ms)
+840ms ║Comparison 0 is_greater_than_or_equal_to 1 = false (2ms)
+848ms ║Comparison 0 is_less_than 60 = true (2ms)
+860ms ║Comparison 0 is_greater_than_or_equal_to 60 = false (2ms)
+946ms ║Setting up scheduled job for Sun, Jun 25 2017 @ 9:20:49 AM CDT (in 29.839s), with 2 more jobs pending
+971ms ╚Piston successfully started (970ms)
6/25/2017, 9:19:36 AM +440ms
+36ms ╔Received event [Home].time = 1498400377588 with a delay of -1149ms
+575ms ║RunTime Analysis CS > 143ms > PS > 272ms > PE > 157ms > CE
+604ms ║Runtime (72363 bytes) successfully initialized in 272ms (v0.2.0ca.20170623) (555ms)
+606ms ║╔Execution stage started
+641ms ║║Cancelling condition #78’s schedules…
+644ms ║║Condition #78 evaluated true (2ms)
+645ms ║║Cancelling condition #57’s schedules…
+647ms ║║Condition group #57 evaluated true (state changed) (7ms)
+666ms ║║Comparison :319737f9ebc7449af2093d8058bd1032: is_any_of :eb331331f9dcca8e5a61e32168f58632:,:319737f9ebc7449af2093d8058bd1032:,:a3fc6d7123b15f01a79eb227ccf7592c:,:79f202af4d3742df7c907bdfe34dd304:,:8b418743d7f6b62d668a54b474f39f97: = true (5ms)
+669ms ║║Condition #77 evaluated true (13ms)
+671ms ║║Condition group #58 evaluated true (state did not change) (20ms)
+686ms ║║Comparison closed is closed = true (4ms)
+688ms ║║Condition #76 evaluated true (15ms)
+690ms ║║Condition group #58 evaluated true (state did not change) (18ms)
+729ms ║║Comparison 0 is_equal_to 0 = true (3ms)
+732ms ║║Condition #64 evaluated true (15ms)
+733ms ║║Condition group #59 evaluated true (state did not change) (17ms)
+735ms ║║Cancelling statement #59’s schedules…
+742ms ║║Executed virtual command wait (1ms)
+744ms ║║Requesting a wake up for Sun, Jun 25 2017 @ 9:28:37 AM CDT (in 540.0s)
+760ms ║╚Execution stage complete. (155ms)
+765ms ║Setting up scheduled job for Sun, Jun 25 2017 @ 9:28:37 AM CDT (in 539.982s), with 2 more jobs pending
+805ms ╚Event processed successfully (806ms)

Duh!!! :joy: Triggers vs Conditions. Stays is a condition trigger and will evaluate regardless. I changed lines 62 and 125 to Was and all seem ok now. I’ll eventually get this @ady624 :grin:

Stays is a trigger, using it will inhibit subscriptions from all conditions, unless you manually specify certain conditions should always subscribe.

LOL, your right. I was so happy, I typed to fast. Stays is a trigger and Was is a condition. Changing things to Was seemed to fix the issue.

Here’s another way that works for me.
Lots of ways to skin that cat!!! :wink:

@twodaend / @ady624 so even if the stays condition is under another if clause which is not true, the stays condition will still get triggered by the timer set implicitly for stays and the tasks under the stays clause will get executed?

i.e. the else if clause at line 51 can be false but when the stays at line 62 becomes true, tasks starting at line 64 will still get executed?

thank you.