1) Give a description of the problem
My piston is not getting triggered on a global variable changed event subscription
2) What is the expected behavior?
When my Dryer Monitor piston completes, it sets variable @dryerNeedsOpened to true. That should (and did, for a while!) trigger this piston to start running its loop, which would continue until the dryer was opened.
3) What is happening/not happening?
The piston is NEVER executing, and all I can see in the logs are the times that I have saved / testâed it over the last couple weeks.
4) Post a Green Snapshot of the piston
Hereâs the state of the @dryerNeedsOpened global variable:
And hereâs the state of the dryer monitor piston (which seems to be working fine):
5) Attach any logs (From ST IDE and by turning logging level to Full)
11/18/2017, 10:40:09 AM +546ms +1ms âReceived event [Home].test = 1511019609499 with a delay of 46ms +166ms âRunTime Analysis CS > 21ms > PS > 58ms > PE > 87ms > CE +177ms âRuntime (40746 bytes) successfully initialized in 58ms (v0.2.0fe.20171109) (175ms) +178ms ââExecution stage started +190ms ââComparison (boolean) false changes_to (boolean) true = false (6ms) +192ms ââCondition #18 evaluated false (10ms) +193ms ââCondition group #17 evaluated false (state did not change) (11ms) +196ms ââExecution stage complete. (18ms) +208ms âEvent processed successfully (207ms) 10/26/2017, 4:01:11 PM +705ms +1ms âReceived event [Home].test = 1509048071696 with a delay of 9ms +173ms âRunTime Analysis CS > 19ms > PS > 58ms > PE > 95ms > CE +181ms âRuntime (40743 bytes) successfully initialized in 58ms (v0.2.0fa.20171011) (179ms) +182ms ââExecution stage started +193ms ââComparison (boolean) true changes_to (boolean) true = false (3ms) +195ms ââCondition #18 evaluated false (8ms) +196ms ââCondition group #17 evaluated false (state did not change) (9ms) +199ms ââExecution stage complete. (17ms) +209ms âEvent processed successfully (209ms) 10/26/2017, 4:01:01 PM +59ms +1ms âStarting piston... (v0.2.0fa.20171011) +308ms ââSubscribing to devices... +351ms ââSubscribing to Home.webCoRE.@dryerNeedsOpened... +466ms ââSubscribing to Jeff... +468ms ââSubscribing to Lisa... +469ms ââFinished subscribing (164ms) +510ms âComparison (boolean) true changes_to (boolean) true = false (7ms) +512ms âCancelling condition #18's schedules... +513ms âCancelling condition #17's schedules... +522ms âComparison (boolean) true is (boolean) true = true (3ms) +523ms âCancelling condition #1's schedules... +540ms âComparison (string) :5ee27ea6428a8985b6603b9e3b29fbad: is (string) :5ee27ea6428a8985b6603b9e3b29fbad: = true (2ms) +542ms âCancelling condition #20's schedules... +543ms âCancelling condition #19's schedules... +558ms âComparison (enum) not present is (string) present = false (3ms) +579ms âComparison (enum) present is (string) present = true (3ms) +589ms âComparison (boolean) true is (boolean) false = false (2ms) +590ms âCancelling condition #1's schedules... +610ms âPiston successfully started (609ms) 10/26/2017, 3:48:07 PM +278ms +1ms âReceived event [Home].time = 1509047288567 with a delay of -1289ms +166ms âRunTime Analysis CS > 17ms > PS > 54ms > PE > 89ms > CE +176ms âRuntime (40448 bytes) successfully initialized in 54ms (v0.2.0fa.20171011) (174ms) +177ms ââExecution stage started +189ms ââCancelling condition #1's schedules... +203ms ââComparison (enum) not present is (string) present = false (2ms) +205ms ââCondition #8 evaluated false (9ms) +206ms ââCondition group #5 evaluated false (state did not change) (10ms) +217ms ââComparison (enum) present is (string) present = true (2ms) +220ms ââCondition #12 evaluated true (10ms) +221ms ââCondition group #9 evaluated true (state did not change) (13ms) +224ms ââCancelling statement #10's schedules... +260ms ââExecuted virtual command sendSMSNotification (25ms) +270ms ââComparison (boolean) true is (boolean) false = false (2ms) +272ms ââCondition #14 evaluated false (8ms) +273ms ââCancelling condition #1's schedules... +274ms ââCondition group #1 evaluated false (state changed) (11ms) +277ms ââCancelling statement #3's schedules... +281ms ââExecuted virtual command wait (0ms) +283ms ââRequesting a wake up for Thu, Oct 26 2017 @ 4:48:07 PM EDT (in 3600.0s) +292ms ââExecution stage complete. (115ms) +294ms âSetting up scheduled job for Thu, Oct 26 2017 @ 4:48:07 PM EDT (in 3599.99s) +310ms âEvent processed successfully (310ms) 10/26/2017, 2:48:08 PM +299ms +0ms âReceived event [Home].time = 1509043689574 with a delay of -1275ms +166ms âRunTime Analysis CS > 16ms > PS > 64ms > PE > 86ms > CE +177ms âRuntime (40448 bytes) successfully initialized in 64ms (v0.2.0fa.20171011) (175ms) +178ms ââExecution stage started +188ms ââCancelling condition #1's schedules... +202ms ââComparison (enum) not present is (string) present = false (2ms) +203ms ââCondition #8 evaluated false (9ms) +204ms ââCondition group #5 evaluated false (state did not change) (10ms) +215ms ââComparison (enum) present is (string) present = true (1ms) +216ms ââCondition #12 evaluated true (9ms) +217ms ââCondition group #9 evaluated true (state did not change) (10ms) +219ms ââCancelling statement #10's schedules... +251ms ââExecuted virtual command sendSMSNotification (25ms) +257ms ââComparison (boolean) true is (boolean) false = false (2ms) +258ms ââCondition #14 evaluated false (5ms) +260ms ââCancelling condition #1's schedules... +260ms ââCondition group #1 evaluated false (state changed) (7ms) +263ms ââCancelling statement #3's schedules... +267ms ââExecuted virtual command wait (0ms) +268ms ââRequesting a wake up for Thu, Oct 26 2017 @ 3:48:08 PM EDT (in 3600.0s) +273ms ââExecution stage complete. (95ms) +274ms âSetting up scheduled job for Thu, Oct 26 2017 @ 3:48:08 PM EDT (in 3599.994s) +292ms âEvent processed successfully (292ms) 10/26/2017, 1:48:09 PM +287ms +1ms âReceived event [Home].time = 1509040090696 with a delay of -1410ms +183ms âRunTime Analysis CS > 28ms > PS > 70ms > PE > 85ms > CE +195ms âRuntime (40448 bytes) successfully initialized in 70ms (v0.2.0fa.20171011) (192ms) +196ms ââExecution stage started +206ms ââCancelling condition #1's schedules... +218ms ââComparison (enum) not present is (string) present = false (2ms) +220ms ââCondition #8 evaluated false (8ms) +221ms ââCondition group #5 evaluated false (state did not change) (9ms) +233ms ââComparison (enum) present is (string) present = true (1ms) +234ms ââCondition #12 evaluated true (11ms) +235ms ââCondition group #9 evaluated true (state did not change) (12ms) +237ms ââCancelling statement #10's schedules... +268ms ââExecuted virtual command sendSMSNotification (25ms) +275ms ââComparison (boolean) true is (boolean) false = false (1ms) +277ms ââCondition #14 evaluated false (6ms) +278ms ââCancelling condition #1's schedules... +279ms ââCondition group #1 evaluated false (state changed) (9ms) +281ms ââCancelling statement #3's schedules... +285ms ââExecuted virtual command wait (0ms) +287ms ââRequesting a wake up for Thu, Oct 26 2017 @ 2:48:09 PM EDT (in 3600.0s) +292ms ââExecution stage complete. (97ms) +294ms âSetting up scheduled job for Thu, Oct 26 2017 @ 2:48:09 PM EDT (in 3599.994s) +311ms âEvent processed successfully (311ms)