Can I use Harmony Activities as Switches?


#1

1) Give a description of the problem
I just installed a Harmony Hub and I’m trying to have a lamp turn on after sunset only if the Harmony activities (aka TV) are off. If the TV is on, then I don’t want the lamp turning on. I’m thinking I might not be able to use the activities as switches like I’m trying to. But if not, Is there a way to accomplish this?

2) What is the expected behavior?
Described as above.

3) What is happening/not happening?
The lamp is turning on at sunset, regardless of if a Harmony activity is on or not.

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)

1/6/2018, 5:33:59 PM +484ms
    +0ms	╔Received event [Home].time = 1515285240000 with a delay of -516ms
    +136ms	║RunTime Analysis CS > 23ms > PS > 56ms > PE > 57ms > CE
    +148ms	║Runtime (37652 bytes) successfully initialized in 56ms (v0.2.0e7.20170906) (147ms)
    +149ms	║╔Execution stage started
    +187ms	║║Comparison (enum) off is (string) off = true (1ms)
    +189ms	║║Comparison (enum) off is (string) off = true (1ms)
    +190ms	║║Comparison (enum) off is (string) off = true (1ms)
    +192ms	║║Comparison (enum) off is (string) off = true (1ms)
    +193ms	║║Comparison (enum) off is (string) off = true (1ms)
    +195ms	║║Comparison (enum) off is (string) off = true (1ms)
    +196ms	║║Comparison (enum) on is (string) off = false (1ms)
    +198ms	║║Condition #4 evaluated false (43ms)
    +198ms	║║Condition group #1 evaluated false (state did not change) (45ms)
    +200ms	║╚Execution stage complete. (50ms)
    +207ms	╚Event processed successfully (207ms)
    1/6/2018, 5:12:30 PM +540ms
    +2ms	╔Received event [Watch Roku [Harmony Activity]].switch = off with a delay of 265ms
    +404ms	║RunTime Analysis CS > 22ms > PS > 293ms > PE > 88ms > CE
    +415ms	║Piston waited at a semaphore for 258ms
    +417ms	║Runtime (37736 bytes) successfully initialized in 293ms (v0.2.0e7.20170906) (415ms)
    +418ms	║╔Execution stage started
    +452ms	║║Comparison (enum) off is (string) off = true (1ms)
    +453ms	║║Comparison (enum) off is (string) off = true (1ms)
    +455ms	║║Comparison (enum) off is (string) off = true (1ms)
    +456ms	║║Comparison (enum) off is (string) off = true (1ms)
    +458ms	║║Comparison (enum) off is (string) off = true (1ms)
    +459ms	║║Comparison (enum) off is (string) off = true (1ms)
    +461ms	║║Comparison (enum) on is (string) off = false (1ms)
    +463ms	║║Condition #4 evaluated false (40ms)
    +463ms	║║Condition group #1 evaluated false (state did not change) (42ms)
    +465ms	║╚Execution stage complete. (48ms)
    +466ms	║Setting up scheduled job for Sat, Jan 6 2018 @ 5:34:00 PM MST (in 1288.995s)
    +487ms	╚Event processed successfully (486ms)
    1/6/2018, 5:12:30 PM +435ms
    +1ms	╔Received event [Watch Tivo [Harmony Activity]].switch = on with a delay of 200ms
    +215ms	║RunTime Analysis CS > 39ms > PS > 105ms > PE > 71ms > CE
    +230ms	║Runtime (37669 bytes) successfully initialized in 105ms (v0.2.0e7.20170906) (228ms)
    +230ms	║╔Execution stage started
    +262ms	║║Comparison (enum) off is (string) off = true (1ms)
    +263ms	║║Comparison (enum) off is (string) off = true (1ms)
    +265ms	║║Comparison (enum) off is (string) off = true (0ms)
    +266ms	║║Comparison (enum) off is (string) off = true (1ms)
    +268ms	║║Comparison (enum) off is (string) off = true (1ms)
    +269ms	║║Comparison (enum) off is (string) off = true (1ms)
    +271ms	║║Comparison (enum) on is (string) off = false (1ms)
    +273ms	║║Condition #4 evaluated false (39ms)
    +273ms	║║Condition group #1 evaluated false (state did not change) (39ms)
    +275ms	║╚Execution stage complete. (45ms)
    +276ms	║Setting up scheduled job for Sat, Jan 6 2018 @ 5:34:00 PM MST (in 1289.289s)
    +293ms	╚Event processed successfully (293ms)
    1/6/2018, 4:52:30 PM +149ms
    +1ms	╔Received event [Watch Roku [Harmony Activity]].switch = on with a delay of 87ms
    +103ms	║RunTime Analysis CS > 15ms > PS > 19ms > PE > 68ms > CE
    +116ms	║Runtime (37666 bytes) successfully initialized in 19ms (v0.2.0e7.20170906) (114ms)
    +116ms	║╔Execution stage started
    +146ms	║║Comparison (enum) off is (string) off = true (1ms)
    +147ms	║║Comparison (enum) off is (string) off = true (1ms)
    +149ms	║║Comparison (enum) off is (string) off = true (1ms)
    +150ms	║║Comparison (enum) off is (string) off = true (1ms)
    +152ms	║║Comparison (enum) off is (string) off = true (1ms)
    +154ms	║║Comparison (enum) on is (string) off = false (1ms)
    +156ms	║║Cancelling condition #4's schedules...
    +156ms	║║Condition #4 evaluated false (36ms)
    +157ms	║║Condition group #1 evaluated false (state did not change) (37ms)
    +159ms	║╚Execution stage complete. (43ms)
    +160ms	║Setting up scheduled job for Sat, Jan 6 2018 @ 5:34:00 PM MST (in 2489.692s)
    +178ms	╚Event processed successfully (177ms)
    1/6/2018, 2:12:30 PM +199ms
    +1ms	╔Received event [Watch Roku [Harmony Activity]].switch = off with a delay of 107ms
    +141ms	║RunTime Analysis CS > 33ms > PS > 38ms > PE > 71ms > CE
    +234ms	║Runtime (37668 bytes) successfully initialized in 38ms (v0.2.0e7.20170906) (232ms)
    +234ms	║╔Execution stage started
    +269ms	║║Comparison (enum) off is (string) off = true (1ms)
    +270ms	║║Comparison (enum) off is (string) off = true (1ms)
    +272ms	║║Comparison (enum) off is (string) off = true (1ms)
    +274ms	║║Comparison (enum) off is (string) off = true (1ms)
    +275ms	║║Comparison (enum) off is (string) off = true (1ms)
    +277ms	║║Comparison (enum) off is (string) off = true (1ms)
    +278ms	║║Comparison (enum) off is (string) off = true (1ms)
    +280ms	║║Cancelling condition #4's schedules...
    +280ms	║║Condition #4 evaluated true (42ms)
    +319ms	║║Comparison (time) 51150480 is_after (time) 1515285240000 = false (4ms)
    +320ms	║║Condition #5 evaluated false (39ms)
    +338ms	║║Cancelling statement #5's schedules...
    +341ms	║║Requesting time schedule wake up at Sat, Jan 6 2018 @ 5:34:00 PM MST
    +343ms	║║Condition group #1 evaluated false (state did not change) (105ms)
    +345ms	║╚Execution stage complete. (111ms)
    +346ms	║Setting up scheduled job for Sat, Jan 6 2018 @ 5:34:00 PM MST (in 12089.455s)
    +468ms	╚Event processed successfully (468ms)
    1/6/2018, 12:27:30 PM +253ms
    +2ms	╔Received event [Watch Roku [Harmony Activity]].switch = on with a delay of 103ms
    +131ms	║RunTime Analysis CS > 30ms > PS > 32ms > PE > 69ms > CE
    +144ms	║Runtime (37667 bytes) successfully initialized in 32ms (v0.2.0e7.20170906) (141ms)
    +144ms	║╔Execution stage started
    +175ms	║║Comparison (enum) off is (string) off = true (1ms)
    +177ms	║║Comparison (enum) off is (string) off = true (1ms)
    +178ms	║║Comparison (enum) off is (string) off = true (1ms)
    +180ms	║║Comparison (enum) off is (string) off = true (1ms)
    +181ms	║║Comparison (enum) off is (string) off = true (1ms)
    +183ms	║║Comparison (enum) on is (string) off = false (1ms)
    +185ms	║║Cancelling condition #4's schedules...
    +185ms	║║Condition #4 evaluated false (37ms)
    +186ms	║║Condition group #1 evaluated false (state did not change) (38ms)
    +188ms	║╚Execution stage complete. (44ms)
    +189ms	║Setting up scheduled job for Sat, Jan 6 2018 @ 5:34:00 PM MST (in 18389.559s)
    +210ms	╚Event processed successfully (210ms)
    1/6/2018, 9:57:30 AM +74ms
    +2ms	╔Received event [Watch Kids Netflix [Harmony Activity]].switch = off with a delay of 102ms
    +141ms	║RunTime Analysis CS > 30ms > PS > 39ms > PE > 72ms > CE
    +190ms	║Runtime (37676 bytes) successfully initialized in 39ms (v0.2.0e7.20170906) (187ms)
    +191ms	║╔Execution stage started
    +225ms	║║Comparison (enum) off is (string) off = true (1ms)
    +227ms	║║Comparison (enum) off is (string) off = true (1ms)
    +228ms	║║Comparison (enum) off is (string) off = true (1ms)
    +230ms	║║Comparison (enum) off is (string) off = true (1ms)
    +231ms	║║Comparison (enum) off is (string) off = true (1ms)
    +233ms	║║Comparison (enum) off is (string) off = true (1ms)
    +235ms	║║Comparison (enum) off is (string) off = true (1ms)
    +236ms	║║Cancelling condition #4's schedules...
    +237ms	║║Condition #4 evaluated true (42ms)
    +276ms	║║Comparison (time) 35850311 is_after (time) 1515285240000 = false (4ms)
    +277ms	║║Condition #5 evaluated false (40ms)
    +280ms	║║Cancelling statement #5's schedules...
    +284ms	║║Requesting time schedule wake up at Sat, Jan 6 2018 @ 5:34:00 PM MST
    +285ms	║║Condition group #1 evaluated false (state did not change) (90ms)
    +287ms	║╚Execution stage complete. (96ms)
    +288ms	║Setting up scheduled job for Sat, Jan 6 2018 @ 5:34:00 PM MST (in 27389.638s)
    +422ms	╚Event processed successfully (421ms)
    1/6/2018, 7:57:30 AM +296ms
    +2ms	╔Received event [Watch Kids Netflix [Harmony Activity]].switch = on with a delay of 232ms
    +151ms	║RunTime Analysis CS > 40ms > PS > 38ms > PE > 73ms > CE
    +164ms	║Runtime (37675 bytes) successfully initialized in 38ms (v0.2.0e7.20170906) (162ms)
    +165ms	║╔Execution stage started
    +199ms	║║Comparison (enum) off is (string) off = true (1ms)
    +201ms	║║Comparison (enum) off is (string) off = true (1ms)
    +202ms	║║Comparison (enum) off is (string) off = true (1ms)
    +203ms	║║Comparison (enum) on is (string) off = false (1ms)
    +205ms	║║Cancelling condition #4's schedules...
    +206ms	║║Condition #4 evaluated false (37ms)
    +206ms	║║Condition group #1 evaluated false (state did not change) (38ms)
    +208ms	║╚Execution stage complete. (44ms)
    +209ms	║Setting up scheduled job for Sat, Jan 6 2018 @ 5:34:00 PM MST (in 34589.495s)
    +229ms	╚Event processed successfully (229ms)
    1/6/2018, 7:47:30 AM +509ms
    +2ms	╔Received event [Watch Kids Amazon [Harmony Activity]].switch = off with a delay of 218ms
    +133ms	║RunTime Analysis CS > 29ms > PS > 34ms > PE > 69ms > CE
    +143ms	║Runtime (37675 bytes) successfully initialized in 34ms (v0.2.0e7.20170906) (141ms)
    +144ms	║╔Execution stage started
    +196ms	║║Comparison (enum) off is (string) off = true (1ms)
    +198ms	║║Comparison (enum) off is (string) off = true (1ms)
    +199ms	║║Comparison (enum) off is (string) off = true (1ms)
    +201ms	║║Comparison (enum) off is (string) off = true (1ms)
    +202ms	║║Comparison (enum) off is (string) off = true (1ms)
    +204ms	║║Comparison (enum) off is (string) off = true (1ms)
    +206ms	║║Comparison (enum) off is (string) off = true (1ms)
    +207ms	║║Cancelling condition #4's schedules...
    +208ms	║║Condition #4 evaluated true (60ms)
    +248ms	║║Comparison (time) 28050717 is_after (time) 1515285240000 = false (7ms)
    +249ms	║║Condition #5 evaluated false (41ms)
    +260ms	║║Cancelling statement #5's schedules...
    +266ms	║║Requesting time schedule wake up at Sat, Jan 6 2018 @ 5:34:00 PM MST
    +267ms	║║Condition group #1 evaluated false (state did not change) (120ms)
    +270ms	║╚Execution stage complete. (126ms)
    +271ms	║Setting up scheduled job for Sat, Jan 6 2018 @ 5:34:00 PM MST (in 35189.221s)
    +288ms	╚Event processed successfully (287ms)
    1/6/2018, 7:32:30 AM +225ms
    +1ms	╔Received event [Watch Kids Amazon [Harmony Activity]].switch = on with a delay of 92ms
    +111ms	║RunTime Analysis CS > 24ms > PS > 21ms > PE > 66ms > CE
    +123ms	║Runtime (37673 bytes) successfully initialized in 21ms (v0.2.0e7.20170906) (121ms)
    +123ms	║╔Execution stage started
    +153ms	║║Comparison (enum) off is (string) off = true (2ms)
    +154ms	║║Comparison (enum) off is (string) off = true (1ms)
    +156ms	║║Comparison (enum) on is (string) off = false (1ms)
    +158ms	║║Cancelling condition #4's schedules...
    +158ms	║║Condition #4 evaluated false (31ms)
    +159ms	║║Condition group #1 evaluated false (state did not change) (32ms)
    +161ms	║╚Execution stage complete. (38ms)
    +162ms	║Setting up scheduled job for Sat, Jan 6 2018 @ 5:33:00 PM MST (in 36029.614s)
    +178ms	╚Event processed successfully (178ms)
    1/5/2018, 11:59:59 PM +407ms
    +1ms	╔Received event [Home].time = 1515222000000 with a delay of -593ms
    +117ms	║RunTime Analysis CS > 23ms > PS > 22ms > PE > 72ms > CE
    +229ms	║Runtime (37647 bytes) successfully initialized in 22ms (v0.2.0e7.20170906) (227ms)
    +230ms	║╔Execution stage started
    +296ms	║║Comparison (enum) off is (string) off = true (6ms)
    +301ms	║║Comparison (enum) off is (string) off = true (4ms)
    +302ms	║║Comparison (enum) off is (string) off = true (1ms)
    +306ms	║║Comparison (enum) off is (string) off = true (2ms)
    +308ms	║║Comparison (enum) off is (string) off = true (2ms)
    +310ms	║║Comparison (enum) off is (string) off = true (1ms)
    +313ms	║║Comparison (enum) off is (string) off = true (2ms)
    +316ms	║║Condition #4 evaluated true (80ms)
    +379ms	║║Comparison (time) 86399724 is_after (time) 1515198780000 = false (15ms)
    +388ms	║║Cancelling condition #5's schedules...
    +389ms	║║Condition #5 evaluated false (72ms)
    +410ms	║║Cancelling statement #5's schedules...
    +421ms	║║Requesting time schedule wake up at Sat, Jan 6 2018 @ 5:33:00 PM MST
    +423ms	║║Cancelling condition #1's schedules...
    +424ms	║║Condition group #1 evaluated false (state changed) (189ms)
    +439ms	║╚Execution stage complete. (210ms)
    +441ms	║Setting up scheduled job for Sat, Jan 6 2018 @ 5:33:00 PM MST (in 63180.153s)
    +458ms	╚Event processed successfully (458ms)
    1/5/2018, 9:42:30 PM +235ms
    +2ms	╔Received event [Watch Tivo [Harmony Activity]].switch = off with a delay of 155ms
    +159ms	║RunTime Analysis CS > 45ms > PS > 38ms > PE > 76ms > CE
    +172ms	║Runtime (37667 bytes) successfully initialized in 38ms (v0.2.0e7.20170906) (170ms)
    +173ms	║╔Execution stage started
    +207ms	║║Comparison (enum) off is (string) off = true (1ms)
    +209ms	║║Comparison (enum) off is (string) off = true (1ms)
    +211ms	║║Comparison (enum) off is (string) off = true (1ms)
    +212ms	║║Comparison (enum) off is (string) off = true (1ms)
    +214ms	║║Comparison (enum) off is (string) off = true (1ms)
    +215ms	║║Comparison (enum) off is (string) off = true (1ms)
    +217ms	║║Comparison (enum) off is (string) off = true (0ms)
    +219ms	║║Cancelling condition #4's schedules...
    +219ms	║║Condition #4 evaluated true (42ms)
    +259ms	║║Comparison (time) 78150455 is_after (time) 1515198780000 = true (4ms)
    +260ms	║║Time restriction check passed
    +261ms	║║Condition #5 evaluated true (42ms)
    +272ms	║║Cancelling statement #5's schedules...
    +278ms	║║Requesting time schedule wake up at Sat, Jan 6 2018 @ 12:00:00 AM MST
    +280ms	║║Cancelling condition #1's schedules...
    +280ms	║║Condition group #1 evaluated true (state changed) (103ms)
    +282ms	║║Cancelling statement #2's schedules...
    +288ms	║║Skipped execution of physical command [Wemo Mini].on([]) because it would make no change to the device. (3ms)
    +289ms	║║Executed [Wemo Mini].on (5ms)
    +291ms	║╚Execution stage complete. (118ms)
    +292ms	║Setting up scheduled job for Sat, Jan 6 2018 @ 12:00:00 AM MST (in 8249.473s)
    +336ms	╚Event processed successfully (336ms)
    1/5/2018, 9:02:31 PM +6ms
    +0ms	╔Received event [Watch Roku [Harmony Activity]].switch = off with a delay of 69ms
    +634ms	║RunTime Analysis CS > 15ms > PS > 530ms > PE > 89ms > CE
    +643ms	║Piston waited at a semaphore for 512ms
    +645ms	║Runtime (37734 bytes) successfully initialized in 530ms (v0.2.0e7.20170906) (644ms)
    +645ms	║╔Execution stage started
    +674ms	║║Comparison (enum) off is (string) off = true (1ms)
    +676ms	║║Comparison (enum) off is (string) off = true (1ms)
    +677ms	║║Comparison (enum) off is (string) off = true (1ms)
    +679ms	║║Comparison (enum) off is (string) off = true (1ms)
    +681ms	║║Comparison (enum) off is (string) off = true (1ms)
    +682ms	║║Comparison (enum) off is (string) off = true (1ms)
    +684ms	║║Comparison (enum) on is (string) off = false (1ms)
    +686ms	║║Condition #4 evaluated false (35ms)
    +686ms	║║Condition group #1 evaluated false (state did not change) (37ms)
    +688ms	║╚Execution stage complete. (43ms)
    +689ms	║Setting up scheduled job for Sat, Jan 6 2018 @ 12:00:00 AM MST (in 10648.305s)
    +834ms	╚Event processed successfully (835ms)
    1/5/2018, 9:02:30 PM +995ms
    +2ms	╔Received event [Watch Tivo [Harmony Activity]].switch = on with a delay of 97ms
    +119ms	║RunTime Analysis CS > 20ms > PS > 29ms > PE > 70ms > CE
    +131ms	║Runtime (37665 bytes) successfully initialized in 29ms (v0.2.0e7.20170906) (129ms)
    +132ms	║╔Execution stage started
    +275ms	║║Comparison (enum) off is (string) off = true (1ms)
    +277ms	║║Comparison (enum) off is (string) off = true (1ms)
    +278ms	║║Comparison (enum) off is (string) off = true (1ms)
    +280ms	║║Comparison (enum) off is (string) off = true (1ms)
    +281ms	║║Comparison (enum) off is (string) off = true (1ms)
    +283ms	║║Comparison (enum) off is (string) off = true (1ms)
    +284ms	║║Comparison (enum) on is (string) off = false (1ms)
    +286ms	║║Condition #4 evaluated false (150ms)
    +287ms	║║Condition group #1 evaluated false (state did not change) (151ms)
    +288ms	║╚Execution stage complete. (156ms)
    +290ms	║Setting up scheduled job for Sat, Jan 6 2018 @ 12:00:00 AM MST (in 10648.716s)
    +437ms	╚Event processed successfully (437ms)
    1/5/2018, 8:37:30 PM +390ms
    +1ms	╔Received event [Watch Roku [Harmony Activity]].switch = on with a delay of 207ms
    +395ms	║RunTime Analysis CS > 33ms > PS > 274ms > PE > 88ms > CE
    +405ms	║Piston waited at a semaphore for 256ms
    +407ms	║Runtime (37734 bytes) successfully initialized in 274ms (v0.2.0e7.20170906) (405ms)
    +407ms	║╔Execution stage started
    +435ms	║║Comparison (enum) off is (string) off = true (1ms)
    +436ms	║║Comparison (enum) off is (string) off = true (1ms)
    +437ms	║║Comparison (enum) off is (string) off = true (1ms)
    +439ms	║║Comparison (enum) off is (string) off = true (1ms)
    +440ms	║║Comparison (enum) off is (string) off = true (1ms)
    +442ms	║║Comparison (enum) on is (string) off = false (0ms)
    +443ms	║║Condition #4 evaluated false (32ms)
    +444ms	║║Condition group #1 evaluated false (state did not change) (33ms)
    +449ms	║╚Execution stage complete. (42ms)
    +452ms	║Setting up scheduled job for Sat, Jan 6 2018 @ 12:00:00 AM MST (in 12149.159s)
    +472ms	╚Event processed successfully (472ms)
    1/5/2018, 8:37:30 PM +259ms
    +2ms	╔Received event [Watch Tivo [Harmony Activity]].switch = off with a delay of 113ms
    +134ms	║RunTime Analysis CS > 24ms > PS > 40ms > PE > 70ms > CE
    +147ms	║Runtime (37667 bytes) successfully initialized in 40ms (v0.2.0e7.20170906) (145ms)
    +148ms	║╔Execution stage started
    +183ms	║║Comparison (enum) off is (string) off = true (1ms)
    +184ms	║║Comparison (enum) off is (string) off = true (1ms)
    +186ms	║║Comparison (enum) off is (string) off = true (1ms)
    +187ms	║║Comparison (enum) off is (string) off = true (1ms)
    +189ms	║║Comparison (enum) off is (string) off = true (1ms)
    +191ms	║║Comparison (enum) on is (string) off = false (1ms)
    +192ms	║║Condition #4 evaluated false (40ms)
    +193ms	║║Condition group #1 evaluated false (state did not change) (41ms)
    +195ms	║╚Execution stage complete. (47ms)
    +196ms	║Setting up scheduled job for Sat, Jan 6 2018 @ 12:00:00 AM MST (in 12149.546s)
    +223ms	╚Event processed successfully (223ms)
    1/5/2018, 8:22:31 PM +739ms
    +1ms	╔Received event [Watch Tivo [Harmony Activity]].switch = on with a delay of 136ms
    +141ms	║RunTime Analysis CS > 46ms > PS > 20ms > PE > 74ms > CE
    +153ms	║Runtime (37662 bytes) successfully initialized in 20ms (v0.2.0e7.20170906) (151ms)
    +154ms	║╔Execution stage started
    +344ms	║║Comparison (enum) off is (string) off = true (1ms)
    +345ms	║║Comparison (enum) off is (string) off = true (1ms)
    +347ms	║║Comparison (enum) off is (string) off = true (1ms)
    +348ms	║║Comparison (enum) off is (string) off = true (1ms)
    +350ms	║║Comparison (enum) off is (string) off = true (1ms)
    +352ms	║║Comparison (enum) off is (string) off = true (1ms)
    +353ms	║║Comparison (enum) on is (string) off = false (1ms)
    +356ms	║║Cancelling condition #4's schedules...
    +357ms	║║Condition #4 evaluated false (197ms)
    +358ms	║║Cancelling condition #1's schedules...
    +358ms	║║Condition group #1 evaluated false (state changed) (199ms)
    +361ms	║╚Execution stage complete. (207ms)
    +363ms	║Setting up scheduled job for Sat, Jan 6 2018 @ 12:00:00 AM MST (in 13047.898s)
    +383ms	╚Event processed successfully (383ms)
    1/5/2018, 5:32:59 PM +426ms
    +0ms	╔Received event [Home].time = 1515198780000 with a delay of -575ms
    +357ms	║RunTime Analysis CS > 22ms > PS > 266ms > PE > 70ms > CE
    +369ms	║Runtime (37654 bytes) successfully initialized in 266ms (v0.2.0e7.20170906) (367ms)
    +369ms	║╔Execution stage started
    +417ms	║║Comparison (enum) off is (string) off = true (5ms)
    +419ms	║║Comparison (enum) off is (string) off = true (1ms)
    +421ms	║║Comparison (enum) off is (string) off = true (1ms)
    +423ms	║║Comparison (enum) off is (string) off = true (1ms)
    +425ms	║║Comparison (enum) off is (string) off = true (1ms)
    +427ms	║║Comparison (enum) off is (string) off = true (1ms)
    +429ms	║║Comparison (enum) off is (string) off = true (1ms)
    +433ms	║║Condition #4 evaluated true (58ms)
    +480ms	║║Comparison (time) 63179860 is_after (time) 1515198780000 = true (9ms)
    +481ms	║║Time restriction check passed
    +503ms	║║Cancelling condition #5's schedules...
    +505ms	║║Condition #5 evaluated true (71ms)
    +510ms	║║Cancelling statement #5's schedules...
    +519ms	║║Requesting time schedule wake up at Sat, Jan 6 2018 @ 12:00:00 AM MST
    +521ms	║║Cancelling condition #1's schedules...
    +521ms	║║Condition group #1 evaluated true (state changed) (147ms)
    +523ms	║║Cancelling statement #2's schedules...
    +531ms	║║Skipped execution of physical command [Wemo Mini].on([]) because it would make no change to the device. (5ms)
    +532ms	║║Executed [Wemo Mini].on (6ms)
    +537ms	║╚Execution stage complete. (168ms)
    +538ms	║Setting up scheduled job for Sat, Jan 6 2018 @ 12:00:00 AM MST (in 23220.036s)
    +557ms	╚Event processed successfully (557ms)
    1/5/2018, 10:02:30 AM +719ms
    +1ms	╔Received event [Watch Kids Netflix [Harmony Activity]].switch = off with a delay of 353ms
    +149ms	║RunTime Analysis CS > 41ms > PS > 37ms > PE > 71ms > CE
    +158ms	║Runtime (37676 bytes) successfully initialized in 37ms (v0.2.0e7.20170906) (156ms)
    +159ms	║╔Execution stage started
    +193ms	║║Comparison (enum) off is (string) off = true (1ms)
    +194ms	║║Comparison (enum) off is (string) off = true (1ms)
    +196ms	║║Comparison (enum) off is (string) off = true (1ms)
    +197ms	║║Comparison (enum) off is (string) off = true (1ms)
    +199ms	║║Comparison (enum) off is (string) off = true (1ms)
    +200ms	║║Comparison (enum) off is (string) off = true (1ms)
    +202ms	║║Comparison (enum) off is (string) off = true (0ms)
    +203ms	║║Cancelling condition #4's schedules...
    +204ms	║║Condition #4 evaluated true (42ms)
    +242ms	║║Comparison (time) 36150923 is_after (time) 1515198780000 = false (4ms)
    +243ms	║║Condition #5 evaluated false (39ms)
    +254ms	║║Cancelling statement #5's schedules...
    +259ms	║║Requesting time schedule wake up at Fri, Jan 5 2018 @ 5:33:00 PM MST
    +261ms	║║Condition group #1 evaluated false (state did not change) (99ms)
    +263ms	║╚Execution stage complete. (105ms)
    +265ms	║Setting up scheduled job for Fri, Jan 5 2018 @ 5:33:00 PM MST (in 27029.017s)
    +285ms	╚Event processed successfully (285ms)
    1/5/2018, 8:53:25 AM +125ms
    +2ms	╔Received event [Watch Kids Netflix [Harmony Activity]].switch = on with a delay of 203ms
    +532ms	║RunTime Analysis CS > 135ms > PS > 309ms > PE > 88ms > CE
    +545ms	║Piston waited at a semaphore for 260ms
    +546ms	║Runtime (37744 bytes) successfully initialized in 309ms (v0.2.0e7.20170906) (544ms)
    +547ms	║╔Execution stage started
    +581ms	║║Comparison (enum) off is (string) off = true (1ms)
    +582ms	║║Comparison (enum) off is (string) off = true (1ms)
    +583ms	║║Comparison (enum) off is (string) off = true (1ms)
    +585ms	║║Comparison (enum) on is (string) off = false (1ms)
    +586ms	║║Condition #4 evaluated false (35ms)
    +587ms	║║Condition group #1 evaluated false (state did not change) (37ms)
    +589ms	║╚Execution stage complete. (41ms)
    +592ms	║Setting up scheduled job for Fri, Jan 5 2018 @ 5:32:00 PM MST (in 31114.286s)
    +610ms	╚Event processed successfully (609ms)
    1/5/2018, 8:53:25 AM +122ms
    +2ms	╔Received event [Watch Kids Amazon [Harmony Activity]].switch = off with a delay of 166ms
    +206ms	║RunTime Analysis CS > 34ms > PS > 102ms > PE > 70ms > CE
    +218ms	║Runtime (37677 bytes) successfully initialized in 102ms (v0.2.0e7.20170906) (216ms)
    +218ms	║╔Execution stage started
    +258ms	║║Comparison (enum) off is (string) off = true (1ms)
    +260ms	║║Comparison (enum) off is (string) off = true (1ms)
    +263ms	║║Comparison (enum) off is (string) off = true (1ms)
    +264ms	║║Comparison (enum) on is (string) off = false (1ms)
    +266ms	║║Condition #4 evaluated false (43ms)
    +266ms	║║Condition group #1 evaluated false (state did not change) (44ms)
    +268ms	║╚Execution stage complete. (50ms)
    +269ms	║Setting up scheduled job for Fri, Jan 5 2018 @ 5:32:00 PM MST (in 31114.61s)
    +286ms	╚Event processed successfully (286ms)
    1/5/2018, 8:02:30 AM +201ms
    +1ms	╔Received event [Watch Kids Amazon [Harmony Activity]].switch = on with a delay of 89ms
    +121ms	║RunTime Analysis CS > 39ms > PS > 19ms > PE > 63ms > CE
    +136ms	║Runtime (37673 bytes) successfully initialized in 19ms (v0.2.0e7.20170906) (134ms)
    +136ms	║╔Execution stage started
    +166ms	║║Comparison (enum) off is (string) off = true (1ms)
    +168ms	║║Comparison (enum) off is (string) off = true (0ms)
    +169ms	║║Comparison (enum) on is (string) off = false (1ms)
    +170ms	║║Cancelling condition #4's schedules...
    +171ms	║║Condition #4 evaluated false (31ms)
    +171ms	║║Condition group #1 evaluated false (state did not change) (32ms)
    +173ms	║╚Execution stage complete. (37ms)
    +177ms	║Setting up scheduled job for Fri, Jan 5 2018 @ 5:32:00 PM MST (in 34169.626s)
    +201ms	╚Event processed successfully (201ms)
    1/4/2018, 11:59:59 PM +556ms
    +1ms	╔Received event [Home].time = 1515135600000 with a delay of -444ms
    +169ms	║RunTime Analysis CS > 43ms > PS > 40ms > PE > 86ms > CE
    +184ms	║Runtime (37647 bytes) successfully initialized in 40ms (v0.2.0e7.20170906) (183ms)
    +185ms	║╔Execution stage started
    +250ms	║║Comparison (enum) off is (string) off = true (13ms)
    +255ms	║║Comparison (enum) off is (string) off = true (3ms)
    +257ms	║║Comparison (enum) off is (string) off = true (2ms)
    +261ms	║║Comparison (enum) off is (string) off = true (4ms)
    +263ms	║║Comparison (enum) off is (string) off = true (1ms)
    +267ms	║║Comparison (enum) off is (string) off = true (2ms)
    +270ms	║║Comparison (enum) off is (string) off = true (3ms)
    +275ms	║║Condition #4 evaluated true (82ms)
    +348ms	║║Comparison (time) 86399832 is_after (time) 1515112320000 = false (16ms)
    +355ms	║║Cancelling condition #5's schedules...
    +356ms	║║Condition #5 evaluated false (79ms)
    +377ms	║║Cancelling statement #5's schedules...
    +388ms	║║Requesting time schedule wake up at Fri, Jan 5 2018 @ 5:32:00 PM MST
    +391ms	║║Cancelling condition #1's schedules...
    +392ms	║║Condition group #1 evaluated false (state changed) (199ms)
    +405ms	║╚Execution stage complete. (220ms)
    +407ms	║Setting up scheduled job for Fri, Jan 5 2018 @ 5:32:00 PM MST (in 63120.038s)
    +426ms	╚Event processed successfully (426ms)
    1/4/2018, 11:17:30 PM +851ms
    +1ms	╔Received event [Watch Netflix [Harmony Activity]].switch = off with a delay of 442ms
    +105ms	║RunTime Analysis CS > 16ms > PS > 21ms > PE > 67ms > CE
    +117ms	║Runtime (37670 bytes) successfully initialized in 21ms (v0.2.0e7.20170906) (115ms)
    +118ms	║╔Execution stage started
    +147ms	║║Comparison (enum) off is (string) off = true (1ms)
    +149ms	║║Comparison (enum) off is (string) off = true (1ms)
    +150ms	║║Comparison (enum) off is (string) off = true (1ms)
    +152ms	║║Comparison (enum) off is (string) off = true (1ms)
    +153ms	║║Comparison (enum) off is (string) off = true (1ms)
    +155ms	║║Comparison (enum) off is (string) off = true (1ms)
    +156ms	║║Comparison (enum) off is (string) off = true (1ms)
    +158ms	║║Cancelling condition #4's schedules...
    +159ms	║║Condition #4 evaluated true (37ms)
    +193ms	║║Comparison (time) 83851010 is_after (time) 1515112320000 = true (4ms)
    +194ms	║║Time restriction check passed
    +195ms	║║Condition #5 evaluated true (36ms)
    +205ms	║║Cancelling statement #5's schedules...
    +211ms	║║Requesting time schedule wake up at Fri, Jan 5 2018 @ 12:00:00 AM MST
    +215ms	║║Cancelling condition #1's schedules...
    +215ms	║║Condition group #1 evaluated true (state changed) (94ms)
    +217ms	║║Cancelling statement #2's schedules...
    +255ms	║║Executed physical command [Wemo Mini].on() (36ms)
    +256ms	║║Executed [Wemo Mini].on (36ms)
    +265ms	║╚Execution stage complete. (148ms)
    +268ms	║Setting up scheduled job for Fri, Jan 5 2018 @ 12:00:00 AM MST (in 2548.882s)
    +286ms	╚Event processed successfully (286ms)
    1/4/2018, 9:47:30 PM +308ms
    +1ms	╔Received event [Watch Netflix [Harmony Activity]].switch = on with a delay of 122ms
    +95ms	║RunTime Analysis CS > 18ms > PS > 22ms > PE > 54ms > CE
    +108ms	║Runtime (37664 bytes) successfully initialized in 22ms (v0.2.0e7.20170906) (107ms)
    +108ms	║╔Execution stage started
    +145ms	║║Comparison (enum) off is (string) off = true (1ms)
    +147ms	║║Comparison (enum) off is (string) off = true (1ms)
    +148ms	║║Comparison (enum) off is (string) off = true (1ms)
    +150ms	║║Comparison (enum) off is (string) off = true (1ms)
    +151ms	║║Comparison (enum) on is (string) off = false (1ms)
    +153ms	║║Cancelling condition #4's schedules...
    +153ms	║║Condition #4 evaluated false (41ms)
    +154ms	║║Cancelling condition #1's schedules...
    +155ms	║║Condition group #1 evaluated false (state changed) (42ms)
    +157ms	║╚Execution stage complete. (49ms)
    +158ms	║Setting up scheduled job for Fri, Jan 5 2018 @ 12:00:00 AM MST (in 7949.535s)
    +259ms	╚Event processed successfully (258ms)
    1/4/2018, 9:42:30 PM +269ms
    +0ms	╔Received event [Watch Tivo [Harmony Activity]].switch = off with a delay of 90ms
    +134ms	║RunTime Analysis CS > 56ms > PS > 25ms > PE > 54ms > CE
    +149ms	║Runtime (37666 bytes) successfully initialized in 25ms (v0.2.0e7.20170906) (148ms)
    +150ms	║╔Execution stage started
    +178ms	║║Comparison (enum) off is (string) off = true (1ms)
    +179ms	║║Comparison (enum) off is (string) off = true (1ms)
    +180ms	║║Comparison (enum) off is (string) off = true (1ms)
    +182ms	║║Comparison (enum) off is (string) off = true (2ms)
    +184ms	║║Comparison (enum) off is (string) off = true (1ms)
    +185ms	║║Comparison (enum) off is (string) off = true (1ms)
    +186ms	║║Comparison (enum) off is (string) off = true (1ms)
    +187ms	║║Cancelling condition #4's schedules...
    +188ms	║║Condition #4 evaluated true (35ms)
    +215ms	║║Comparison (time) 78150457 is_after (time) 1515112320000 = true (3ms)
    +215ms	║║Time restriction check passed
    +216ms	║║Condition #5 evaluated true (28ms)
    +219ms	║║Cancelling statement #5's schedules...
    +222ms	║║Requesting time schedule wake up at Fri, Jan 5 2018 @ 12:00:00 AM MST
    +223ms	║║Cancelling condition #1's schedules...
    +224ms	║║Condition group #1 evaluated true (state changed) (71ms)
    +225ms	║║Cancelling statement #2's schedules...
    +279ms	║║Executed physical command [Wemo Mini].on() (50ms)
    +279ms	║║Executed [Wemo Mini].on (51ms)
    +281ms	║╚Execution stage complete. (132ms)
    Clear Full `

**REMOVE BELOW AFTER READING**
If a solution is found for your question then please mark the post as the solution.

#2

So what exactly is happening? Is the lamp turning on immediately at sunset, or is it turning on when you switch activities when it is after sunset?

I know you’ve posted the logs, but that’s almost too much info. More valuable would be one example when it didn’t work right rather than several days worth of information.


#3

Change

time is after sunset

To

time happens daily at sunset


#4

Hello,
Yes the lamp is coming on immediately at sunset regardless of whether a harmony activity is on, or if they’re all off.


#5

Hi,
Thanks for the suggestion, but I changed it to a specific time and no change. Lamp still comes on regardless of whether a Harmony Activity is on or not.


#6

If anyone is interested, I added the harmony hub to webcore (I originally only added the activities) and added a refresh piston for the harmony hub. That solved this problem. Not sure I need the refresh as I did both things at the same time.


#7

Would you mind posting a snapshot of the working one? I’m interested in something similar.