[DEPRECATED THREAD] webCoRE design process

That would be great and save a lot of time. Thanks for all that you do!

Having much better luck with webCoRE than I did with CoRE… starting to build some really sweet automations now!

One problem I am having - I am trying to set a global variable with one piston, then I call another piston which reads that variable to call my google home notifier service.

Sometimes the notifications will not be updated, i.e. the variable still has the value of the previous notification. I have started adding a 1 second delay between “set global variable” and “call piston #2.” Is there a way to make the setting of the global variable synchronous or something where this doesn’t happen? Is it likely there is some sort of delay, or am I getting off on the wrong track?

I tried passing arguments to piston #2 instead, but then my notification actually contains the variable name, etc as I am not familiar with parsing arguments in webCoRE I guess. Any ideas the best solution to my problem?

Thanks for your work on this project… definitely will be sending a donation your way!

In your piston #2, use Expression for the Text part to speak, and then enter $args.yourVariableName that you sent in piston #1.

Example: Piston #1 sets a variable textMessage and passes that to piston #2 where I speak the text content of textMessage. I have Speak text and resume $args.textMessage.

1 Like

That happens because in order to optimize resources, pistons update all global variables with the parent app once, at the end of a run. Pass arguments instead, follow @eibyer’s advice above

1 Like

And thanks for your advice on how to do it properly :slight_smile:

Fixed! Working perfectly now other than sketchy android presence (not webCoRE’s problem)!! Thanks!! And oh man… now I am integrating voice control w/google home via IFTTT to my Samsung TV (volume of receiver via TV & notification text on TV!) & even Plex pause/play/stop via this app! [RELEASE] Plex Home Theatre Manager SmartApp

I haven’t had luck setting an explicit volume level or passing things to the custom methods (setVolume(); for example won’t work with setVolume(30)) - so I have done something where I increaseVolume(); with 100ms delays 10 times, works great!

This is a formidable automation force!! :slight_smile:

I have the below piston which needs to execute a turn off command on a device Kitsound. But it seems to be sending the turn off twice. Can someone help me troubleshoot this?

Logs below.

2017-5-22 07:14:59 +23ms
+4ms ╔Received event [Wake Up MBR].sessionStatus = stopped with a delay of 299ms
+326ms ║RunTime Analysis CS > 139ms > PS > 83ms > PE > 105ms > CE
+340ms ║Runtime (31499 bytes) successfully initialized in 83ms (v0.1.0a5.20170511) (331ms)
+343ms ║╔Execution stage started
+429ms ║║Comparison stopped changes_to_any_of canceled,stopped = true (14ms)
+436ms ║║Condition #68 evaluated true (62ms)
+438ms ║║Condition group #67 evaluated true (did not change) (67ms)
+453ms ║║Comparison true is true = true (5ms)
+455ms ║║Condition #72 evaluated true (12ms)
+457ms ║║Condition group #69 evaluated true (did not change) (13ms)
+548ms ║║Executed physical command [Kitsound].off() (73ms)
+549ms ║║Executed [Kitsound].off (78ms)
+689ms ║║Executed physical command [A2 BR Speaker].stop() (131ms)
+690ms ║║Executed [A2 BR Speaker].stop (133ms)
+738ms ║║Executed physical command [Bedroom].setLevel([100]) (22ms)
+739ms ║║Executed [Bedroom].setLevel (30ms)
+2268ms ║║Executed physical command [Master Bedroom].setLevel([100]) (1523ms)
+2270ms ║║Executed [Master Bedroom].setLevel (1528ms)
+2296ms ║║Comparison true is false = false (5ms)
+2298ms ║║Condition #83 evaluated false (13ms)
+2300ms ║║Condition group #82 evaluated false (did not change) (19ms)
+2474ms ║╚Execution stage complete. (2133ms)
+2551ms ╚Event processed successfully (2552ms)

See the big red banners at the top and bottom of your piston view?

2 Likes

I use a piston to turn off my Hue lights at bedtime by fading the level to 0. Problem is that if the lights had been turned off already, the piston turns all lights on to do the fade (I would have thought not setting a start level for the fade, would prevent that from happening.)
I added a second condition to only fade the Hue lights if any of them are on, which kind of made it better.
My problem is that even if just 1 of the lights is on, all the lights are turned on to do the fading bit.
Any suggestions on how to prevent this from happening would be appreciated:

There should be a parameter in the command that says "only if the switch is " - select value and pick On in the list.

1 Like

Thank you @ady624. I don’t want to be annoying, but I’ve tried my best to get to the suggested option, but can’t find it.

Click on Fade to level… and look for the part at the bottom.

2 Likes

Brilliant. Such a simple solution. Thanks for the help guys.

I have a pretty broad question - I am looking forward to replacing some other smartapps for automation with webCoRE pistons because of lack of configurability (precise colors for my garden lights, for example.)

Are there any performance constraints of a large number of pistons? And when I see that I have a piston which is using 48% memory, what is that a measure of? Do these pistons run in the smatthings cloud or are they actually running on my Smartthings hub?

In my day job I like to write performance-conscious code so wanted to know how best to build performance-conscious pistons :slight_smile:

Thanks!

Yep. As I was posting the logs. I thought I will post the whole piston. Is there a security risk in posting it?

@ady624 is probably the most security conscious person I’ve come across. If he is making it that as obvious as this to not share that then yes there is a security risk to it. He covered it in detail in another post.

2 Likes

That has been fixed too once I moved away from myjson.com

Public snapshots can no longer be modified (no such feature implemented), while private snapshots can only be updated by the same source account, so that’s solved too (myjson.com was public and allowed updates without any authentication).

Private snapshots still reveal real device names (which in turn may contain real people names) and names and possibly phone numbers.

Nobody else other than the source account can read the private snapshots. You could read it from myjson.com but you’d still have to decrypt it. The snapshots are also encrypted with a private key specific to each account, so even if you had the file, you’d still have to decrypt it. And if you did decrypt it, you would still not get the real ST device IDs, but some md5 hashes, which are useless. Did I go a bit overboard?

7 Likes

Had an issue this evening at sunset with the hue lights and “set level”. None of my levels adjusted…
Here are the logs from tonight and last night… Had this comment which was not in last nights comments… "Skipped execution of physical command [Media Room Light].setLevel([10]) because it would make no change to the device. "

5/22/2017, 8:23:59 PM +108ms
+1ms	╔Received event [Home].time = 1495499040000 with a delay of -894ms
+178ms	║RunTime Analysis CS > 23ms > PS > 46ms > PE > 110ms > CE
+194ms	║Runtime (35923 bytes) successfully initialized in 46ms (v0.1.0af.20170522) (191ms)
+195ms	║╔Execution stage started
+318ms	║║Cancelling statement #4's schedules...
+372ms	║║Executed physical command [Bathroom Light].on() (46ms)
+373ms	║║Executed [Bathroom Light].on (48ms)
+420ms	║║Executed physical command [Dining Room Light].on() (45ms)
+421ms	║║Executed [Dining Room Light].on (47ms)
+466ms	║║Executed physical command [Hallway Landing Light].on() (41ms)
+467ms	║║Executed [Hallway Landing Light].on (43ms)
+514ms	║║Executed physical command [Kitchen Lightstrip 3].on() (45ms)
+515ms	║║Executed [Kitchen Lightstrip 3].on (46ms)
+564ms	║║Executed physical command [Media Room Light].on() (44ms)
+564ms	║║Executed [Media Room Light].on (48ms)
+609ms	║║Executed physical command [Rear Outside Light].on() (41ms)
+610ms	║║Executed [Rear Outside Light].on (44ms)
+654ms	║║Executed physical command [Sconce 1].on() (41ms)
+655ms	║║Executed [Sconce 1].on (43ms)
+720ms	║║Executed physical command [Sconce 2].on() (62ms)
+721ms	║║Executed [Sconce 2].on (64ms)
+811ms	║║Executed physical command [Bathroom Light].setColor([[hex:#FF0000, hue:0, saturation:100, level:50]]) (37ms)
+812ms	║║Executed [Bathroom Light].setColor (60ms)
+851ms	║║Executed physical command [Dining Room Light].setColor([[hex:#FF0000, hue:0, saturation:100, level:50]]) (35ms)
+851ms	║║Executed [Dining Room Light].setColor (38ms)
+888ms	║║Executed physical command [Hallway Landing Light].setColor([[hex:#FF0000, hue:0, saturation:100, level:50]]) (32ms)
+889ms	║║Executed [Hallway Landing Light].setColor (37ms)
+928ms	║║Executed physical command [Kitchen Lightstrip 3].setColor([[hex:#FF0000, hue:0, saturation:100, level:50]]) (34ms)
+929ms	║║Executed [Kitchen Lightstrip 3].setColor (38ms)
+967ms	║║Executed physical command [Media Room Light].setColor([[hex:#FF0000, hue:0, saturation:100, level:50]]) (35ms)
+968ms	║║Executed [Media Room Light].setColor (38ms)
+1001ms	║║Executed physical command [Rear Outside Light].setColor([[hex:#FF0000, hue:0, saturation:100, level:50]]) (31ms)
+1002ms	║║Executed [Rear Outside Light].setColor (34ms)
+1044ms	║║Executed physical command [Sconce 1].setColor([[hex:#FF0000, hue:0, saturation:100, level:50]]) (39ms)
+1045ms	║║Executed [Sconce 1].setColor (42ms)
+1344ms	║║Executed physical command [Sconce 2].setColor([[hex:#FF0000, hue:0, saturation:100, level:50]]) (293ms)
+1346ms	║║Executed [Sconce 2].setColor (299ms)
+1361ms	║║Skipped execution of physical command [Bathroom Light].setLevel([10]) because it would make no change to the device. (4ms)
+1361ms	║║Executed [Bathroom Light].setLevel (6ms)
+1367ms	║║Skipped execution of physical command [Dining Room Light].setLevel([10]) because it would make no change to the device. (4ms)
+1368ms	║║Executed [Dining Room Light].setLevel (5ms)
+1373ms	║║Skipped execution of physical command [Hallway Landing Light].setLevel([10]) because it would make no change to the device. (3ms)
+1374ms	║║Executed [Hallway Landing Light].setLevel (5ms)
+1381ms	║║Skipped execution of physical command [Kitchen Lightstrip 3].setLevel([10]) because it would make no change to the device. (4ms)
+1383ms	║║Executed [Kitchen Lightstrip 3].setLevel (7ms)
+1397ms	║║Skipped execution of physical command [Media Room Light].setLevel([10]) because it would make no change to the device. (12ms)
+1398ms	║║Executed [Media Room Light].setLevel (15ms)
+1435ms	║║Executed physical command [Rear Outside Light].setLevel([10]) (32ms)
+1436ms	║║Executed [Rear Outside Light].setLevel (36ms)
+1443ms	║║Skipped execution of physical command [Sconce 1].setLevel([10]) because it would make no change to the device. (4ms)
+1444ms	║║Executed [Sconce 1].setLevel (8ms)
+1449ms	║║Skipped execution of physical command [Sconce 2].setLevel([10]) because it would make no change to the device. (3ms)
+1450ms	║║Executed [Sconce 2].setLevel (4ms)
+1459ms	║║Executed virtual command [Bathroom Light, Dining Room Light, Hallway Landing Light, Kitchen Lightstrip 3, Media Room Light, Rear Outside Light, Sconce 1, Sconce 2].wait (2ms)
+1463ms	║║Requesting a wake up for Mon, May 22 2017 @ 8:24:01 PM EDT (in 1.0s)
+1564ms	║║Fast executing schedules, waiting for 900ms to sync up
+2511ms	║║Executed physical command [Bathroom Light].refresh() (23ms)
+2512ms	║║Executed [Bathroom Light].refresh (25ms)
+2537ms	║║Executed physical command [Dining Room Light].refresh() (22ms)
+2538ms	║║Executed [Dining Room Light].refresh (24ms)
+2561ms	║║Executed physical command [Hallway Landing Light].refresh() (21ms)
+2562ms	║║Executed [Hallway Landing Light].refresh (23ms)
+2589ms	║║Executed physical command [Kitchen Lightstrip 3].refresh() (24ms)
+2590ms	║║Executed [Kitchen Lightstrip 3].refresh (26ms)
+2608ms	║║Executed physical command [Media Room Light].refresh() (16ms)
+2609ms	║║Executed [Media Room Light].refresh (18ms)
+2627ms	║║Executed physical command [Rear Outside Light].refresh() (15ms)
+2628ms	║║Executed [Rear Outside Light].refresh (17ms)
+2645ms	║║Executed physical command [Sconce 1].refresh() (16ms)
+2646ms	║║Executed [Sconce 1].refresh (18ms)
+2665ms	║║Executed physical command [Sconce 2].refresh() (16ms)
+2665ms	║║Executed [Sconce 2].refresh (18ms)
+2713ms	║║Comparison on is on = true (4ms)
+2718ms	║║Comparison on is on = true (4ms)
+2723ms	║║Comparison on is on = true (5ms)
+2728ms	║║Comparison on is on = true (4ms)
+2734ms	║║Comparison turningOn is on = false (4ms)
+2738ms	║║Cancelling condition #3's schedules...
+2740ms	║║Condition #3 evaluated false (71ms)
+2741ms	║║Cancelling condition #2's schedules...
+2742ms	║║Condition group #2 evaluated false (state changed) (75ms)
+2745ms	║║Cancelling statement #4's schedules...
+2756ms	║║Skipped execution of physical command [Bathroom Light].on([]) because it would make no change to the device. (4ms)
+2757ms	║║Executed [Bathroom Light].on (6ms)
+2763ms	║║Skipped execution of physical command [Dining Room Light].on([]) because it would make no change to the device. (3ms)
+2764ms	║║Executed [Dining Room Light].on (5ms)
+2769ms	║║Skipped execution of physical command [Hallway Landing Light].on([]) because it would make no change to the device. (3ms)
+2770ms	║║Executed [Hallway Landing Light].on (5ms)
+2776ms	║║Skipped execution of physical command [Kitchen Lightstrip 3].on([]) because it would make no change to the device. (4ms)
+2776ms	║║Executed [Kitchen Lightstrip 3].on (6ms)
+2854ms	║║Executed physical command [Media Room Light].on() (76ms)
+2855ms	║║Executed [Media Room Light].on (77ms)
+2889ms	║║Executed physical command [Rear Outside Light].on() (32ms)
+2890ms	║║Executed [Rear Outside Light].on (34ms)
+2928ms	║║Executed physical command [Sconce 1].on() (35ms)
+2929ms	║║Executed [Sconce 1].on (38ms)
+2970ms	║║Executed physical command [Sconce 2].on() (37ms)
+2971ms	║║Executed [Sconce 2].on (40ms)
+3040ms	║║Executed physical command [Bathroom Light].setColor([[hex:#FF7F00, hue:8, saturation:100, level:50]]) (38ms)
+3041ms	║║Executed [Bathroom Light].setColor (44ms)
+3078ms	║║Executed physical command [Dining Room Light].setColor([[hex:#FF7F00, hue:8, saturation:100, level:50]]) (33ms)
+3078ms	║║Executed [Dining Room Light].setColor (36ms)
+3117ms	║║Executed physical command [Hallway Landing Light].setColor([[hex:#FF7F00, hue:8, saturation:100, level:50]]) (35ms)
+3118ms	║║Executed [Hallway Landing Light].setColor (38ms)
+3154ms	║║Executed physical command [Kitchen Lightstrip 3].setColor([[hex:#FF7F00, hue:8, saturation:100, level:50]]) (34ms)
+3155ms	║║Executed [Kitchen Lightstrip 3].setColor (37ms)
+3193ms	║║Executed physical command [Media Room Light].setColor([[hex:#FF7F00, hue:8, saturation:100, level:50]]) (35ms)
+3194ms	║║Executed [Media Room Light].setColor (38ms)
+3232ms	║║Executed physical command [Rear Outside Light].setColor([[hex:#FF7F00, hue:8, saturation:100, level:50]]) (34ms)
+3232ms	║║Executed [Rear Outside Light].setColor (37ms)
+3277ms	║║Executed physical command [Sconce 1].setColor([[hex:#FF7F00, hue:8, saturation:100, level:50]]) (42ms)
+3278ms	║║Executed [Sconce 1].setColor (45ms)
+3319ms	║║Executed physical command [Sconce 2].setColor([[hex:#FF7F00, hue:8, saturation:100, level:50]]) (34ms)
+3320ms	║║Executed [Sconce 2].setColor (40ms)
+3331ms	║║Skipped execution of physical command [Bathroom Light].setLevel([10]) because it would make no change to the device. (4ms)
+3332ms	║║Executed [Bathroom Light].setLevel (4ms)
+3338ms	║║Skipped execution of physical command [Dining Room Light].setLevel([10]) because it would make no change to the device. (3ms)
+3339ms	║║Executed [Dining Room Light].setLevel (6ms)
+3344ms	║║Skipped execution of physical command [Hallway Landing Light].setLevel([10]) because it would make no change to the device. (4ms)
+3345ms	║║Executed [Hallway Landing Light].setLevel (5ms)
+3350ms	║║Skipped execution of physical command [Kitchen Lightstrip 3].setLevel([10]) because it would make no change to the device. (3ms)
+3351ms	║║Executed [Kitchen Lightstrip 3].setLevel (4ms)
+3356ms	║║Skipped execution of physical command [Media Room Light].setLevel([10]) because it would make no change to the device. (3ms)
+3357ms	║║Executed [Media Room Light].setLevel (4ms)
+3393ms	║║Executed physical command [Rear Outside Light].setLevel([10]) (32ms)
+3393ms	║║Executed [Rear Outside Light].setLevel (36ms)
+3400ms	║║Skipped execution of physical command [Sconce 1].setLevel([10]) because it would make no change to the device. (4ms)
+3401ms	║║Executed [Sconce 1].setLevel (7ms)
+3407ms	║║Skipped execution of physical command [Sconce 2].setLevel([10]) because it would make no change to the device. (4ms)
+3408ms	║║Executed [Sconce 2].setLevel (5ms)
+3417ms	║║Executed virtual command [Bathroom Light, Dining Room Light, Hallway Landing Light, Kitchen Lightstrip 3, Media Room Light, Rear Outside Light, Sconce 1, Sconce 2].wait (2ms)
+3420ms	║║Requesting a wake up for Mon, May 22 2017 @ 8:24:03 PM EDT (in 1.0s)
+3544ms	║║Fast executing schedules, waiting for 878ms to sync up
+4461ms	║║Executed physical command [Bathroom Light].refresh() (19ms)
+4462ms	║║Executed [Bathroom Light].refresh (21ms)
+4481ms	║║Executed physical command [Dining Room Light].refresh() (17ms)
+4482ms	║║Executed [Dining Room Light].refresh (19ms)
+4502ms	║║Executed physical command [Hallway Landing Light].refresh() (18ms)
+4503ms	║║Executed [Hallway Landing Light].refresh (20ms)
+4522ms	║║Executed physical command [Kitchen Lightstrip 3].refresh() (17ms)
+4523ms	║║Executed [Kitchen Lightstrip 3].refresh (19ms)
+4542ms	║║Executed physical command [Media Room Light].refresh() (17ms)
+4543ms	║║Executed [Media Room Light].refresh (19ms)
+4560ms	║║Executed physical command [Rear Outside Light].refresh() (15ms)
+4561ms	║║Executed [Rear Outside Light].refresh (17ms)
+4582ms	║║Executed physical command [Sconce 1].refresh() (19ms)
+4583ms	║║Executed [Sconce 1].refresh (21ms)
+4604ms	║║Executed physical command [Sconce 2].refresh() (19ms)
+4605ms	║║Executed [Sconce 2].refresh (21ms)
+4651ms	║║Comparison on is on = true (4ms)
+4656ms	║║Comparison on is on = true (4ms)
+4661ms	║║Comparison on is on = true (4ms)
+4666ms	║║Comparison on is on = true (4ms)
+4671ms	║║Comparison on is on = true (4ms)
+4676ms	║║Comparison on is on = true (4ms)
+4681ms	║║Comparison on is on = true (4ms)
+4686ms	║║Comparison on is on = true (4ms)
+4690ms	║║Cancelling condition #3's schedules...
+4691ms	║║Condition #3 evaluated true (84ms)
+4693ms	║║Cancelling condition #2's schedules...
+4694ms	║║Condition group #2 evaluated true (state changed) (86ms)
+4697ms	║║Cancelling statement #9's schedules...
+4714ms	║║Calculating (string) Ambience lights turned on at: + (string) Mon, May 22 2017 @ 8:24:03 PM EDT >> (string) Ambience lights turned on at: Mon, May 22 2017 @ 8:24:03 PM EDT
+4795ms	║║Executed virtual command sendPushNotification (73ms)
+4814ms	║║Calculating (string) Ambience lights turned on at: + (string) Mon, May 22 2017 @ 8:24:03 PM EDT >> (string) Ambience lights turned on at: Mon, May 22 2017 @ 8:24:03 PM EDT
+4820ms	║║Calculating (string) Ambience lights turned on at: Mon, May 22 2017 @ 8:24:03 PM EDT + (string) >> (string) Ambience lights turned on at: Mon, May 22 2017 @ 8:24:03 PM EDT
+4825ms	║║Executed virtual command setState (1ms)
+4945ms	║╚Execution stage complete. (4751ms)
+4990ms	║Setting up scheduled job for Tue, May 23 2017 @ 8:24:00 PM EDT (in 86395.904s)
+5013ms	╚Event processed successfully (5013ms)
5/22/2017, 9:13:39 AM +473ms
+1ms	╔Starting piston... (v0.1.0ad.20170519)
+489ms	║╔Subscribing to devices...
+609ms	║║Subscribing to Bathroom Light...
+611ms	║║Subscribing to Dining Room Light...
+612ms	║║Subscribing to Hallway Landing Light...
+615ms	║║Subscribing to Kitchen Lightstrip 3...
+617ms	║║Subscribing to Media Room Light...
+619ms	║║Subscribing to Rear Outside Light...
+620ms	║║Subscribing to Sconce 1...
+622ms	║║Subscribing to Sconce 2...
+623ms	║╚Finished subscribing (137ms)
+919ms	║Setting up scheduled job for Mon, May 22 2017 @ 8:24:00 PM EDT (in 40219.609s)
+963ms	╚Piston successfully started (963ms)
5/22/2017, 9:13:10 AM +600ms
+5ms	╔Starting piston... (v0.1.0ad.20170519)
+467ms	║╔Subscribing to devices...
+586ms	║║Subscribing to Bathroom Light...
+587ms	║║Subscribing to Dining Room Light...
+589ms	║║Subscribing to Hallway Landing Light...
+590ms	║║Subscribing to Kitchen Lightstrip 3...
+591ms	║║Subscribing to Media Room Light...
+593ms	║║Subscribing to Rear Outside Light...
+594ms	║║Subscribing to Sconce 1...
+595ms	║║Subscribing to Sconce 2...
+596ms	║╚Finished subscribing (137ms)
+947ms	║Setting up scheduled job for Mon, May 22 2017 @ 8:24:00 PM EDT (in 40248.459s)
+989ms	╚Piston successfully started (988ms)
5/21/2017, 8:21:59 PM +175ms
+1ms	╔Received event [Home].time = 1495412520000 with a delay of -826ms
+197ms	║RunTime Analysis CS > 35ms > PS > 69ms > PE > 93ms > CE
+208ms	║Runtime (35899 bytes) successfully initialized in 69ms (v0.1.0ad.20170519) (206ms)
+210ms	║╔Execution stage started
+352ms	║║Cancelling statement #4's schedules...
+418ms	║║Executed physical command [Bathroom Light].on() (57ms)
+419ms	║║Executed [Bathroom Light].on (59ms)
+481ms	║║Executed physical command [Dining Room Light].on() (58ms)
+482ms	║║Executed [Dining Room Light].on (60ms)
+540ms	║║Executed physical command [Hallway Landing Light].on() (55ms)
+541ms	║║Executed [Hallway Landing Light].on (57ms)
+600ms	║║Executed physical command [Kitchen Lightstrip 3].on() (54ms)
+601ms	║║Executed [Kitchen Lightstrip 3].on (56ms)
+663ms	║║Executed physical command [Media Room Light].on() (58ms)
+664ms	║║Executed [Media Room Light].on (60ms)
+722ms	║║Executed physical command [Rear Outside Light].on() (54ms)
+723ms	║║Executed [Rear Outside Light].on (56ms)
+997ms	║║Executed physical command [Sconce 1].on() (269ms)
+998ms	║║Executed [Sconce 1].on (272ms)
+1067ms	║║Executed physical command [Sconce 2].on() (65ms)
+1069ms	║║Executed [Sconce 2].on (68ms)
+1198ms	║║Executed physical command [Bathroom Light].setColor([[hex:#FF0000, hue:0, saturation:100, level:50]]) (66ms)
+1200ms	║║Executed [Bathroom Light].setColor (87ms)
+1262ms	║║Executed physical command [Dining Room Light].setColor([[hex:#FF0000, hue:0, saturation:100, level:50]]) (57ms)
+1263ms	║║Executed [Dining Room Light].setColor (62ms)
+1315ms	║║Executed physical command [Hallway Landing Light].setColor([[hex:#FF0000, hue:0, saturation:100, level:50]]) (48ms)
+1316ms	║║Executed [Hallway Landing Light].setColor (52ms)
+1384ms	║║Executed physical command [Kitchen Lightstrip 3].setColor([[hex:#FF0000, hue:0, saturation:100, level:50]]) (62ms)
+1385ms	║║Executed [Kitchen Lightstrip 3].setColor (68ms)
+1443ms	║║Executed physical command [Media Room Light].setColor([[hex:#FF0000, hue:0, saturation:100, level:50]]) (53ms)
+1445ms	║║Executed [Media Room Light].setColor (58ms)
+1505ms	║║Executed physical command [Rear Outside Light].setColor([[hex:#FF0000, hue:0, saturation:100, level:50]]) (56ms)
+1506ms	║║Executed [Rear Outside Light].setColor (60ms)
+1563ms	║║Executed physical command [Sconce 1].setColor([[hex:#FF0000, hue:0, saturation:100, level:50]]) (53ms)
+1565ms	║║Executed [Sconce 1].setColor (57ms)
+1630ms	║║Executed physical command [Sconce 2].setColor([[hex:#FF0000, hue:0, saturation:100, level:50]]) (57ms)
+1632ms	║║Executed [Sconce 2].setColor (65ms)
+1682ms	║║Executed physical command [Bathroom Light].setLevel([10]) (41ms)
+1684ms	║║Executed [Bathroom Light].setLevel (43ms)
+1727ms	║║Executed physical command [Dining Room Light].setLevel([10]) (40ms)
+1728ms	║║Executed [Dining Room Light].setLevel (43ms)
+1770ms	║║Executed physical command [Hallway Landing Light].setLevel([10]) (39ms)
+1771ms	║║Executed [Hallway Landing Light].setLevel (42ms)
+1815ms	║║Executed physical command [Kitchen Lightstrip 3].setLevel([10]) (41ms)
+1818ms	║║Executed [Kitchen Lightstrip 3].setLevel (45ms)
+1866ms	║║Executed physical command [Media Room Light].setLevel([10]) (44ms)
+1867ms	║║Executed [Media Room Light].setLevel (48ms)
+2102ms	║║Executed physical command [Rear Outside Light].setLevel([10]) (231ms)
+2103ms	║║Executed [Rear Outside Light].setLevel (233ms)
+2142ms	║║Executed physical command [Sconce 1].setLevel([10]) (36ms)
+2143ms	║║Executed [Sconce 1].setLevel (38ms)
+2200ms	║║Executed physical command [Sconce 2].setLevel([10]) (55ms)
+2201ms	║║Executed [Sconce 2].setLevel (57ms)
+2212ms	║║Executed virtual command [Bathroom Light, Dining Room Light, Hallway Landing Light, Kitchen Lightstrip 3, Media Room Light, Rear Outside Light, Sconce 1, Sconce 2].wait (2ms)
+2215ms	║║Requesting a wake up for Sun, May 21 2017 @ 8:22:02 PM EDT (in 1.0s)
+2350ms	║║Fast executing schedules, waiting for 866ms to sync up
+3269ms	║║Executed physical command [Bathroom Light].refresh() (29ms)
+3270ms	║║Executed [Bathroom Light].refresh (31ms)
+3304ms	║║Executed physical command [Dining Room Light].refresh() (32ms)
+3305ms	║║Executed [Dining Room Light].refresh (34ms)
+3340ms	║║Executed physical command [Hallway Landing Light].refresh() (32ms)
+3341ms	║║Executed [Hallway Landing Light].refresh (34ms)
+3376ms	║║Executed physical command [Kitchen Lightstrip 3].refresh() (32ms)
+3377ms	║║Executed [Kitchen Lightstrip 3].refresh (34ms)
+3412ms	║║Executed physical command [Media Room Light].refresh() (33ms)
+3413ms	║║Executed [Media Room Light].refresh (35ms)
+3447ms	║║Executed physical command [Rear Outside Light].refresh() (32ms)
+3449ms	║║Executed [Rear Outside Light].refresh (34ms)
+3477ms	║║Executed physical command [Sconce 1].refresh() (26ms)
+3478ms	║║Executed [Sconce 1].refresh (29ms)
+3507ms	║║Executed physical command [Sconce 2].refresh() (27ms)
+3508ms	║║Executed [Sconce 2].refresh (29ms)
+3557ms	║║Comparison on is on = true (4ms)
+3562ms	║║Comparison on is on = true (4ms)
+3568ms	║║Comparison on is on = true (5ms)
+3574ms	║║Comparison on is on = true (5ms)
+3580ms	║║Comparison on is on = true (4ms)
+3586ms	║║Comparison on is on = true (4ms)
+3591ms	║║Comparison turningOn is on = false (4ms)
+3597ms	║║Cancelling condition #3's schedules...
+3598ms	║║Condition #3 evaluated false (87ms)
+3600ms	║║Cancelling condition #2's schedules...
+3601ms	║║Condition group #2 evaluated false (changed) (91ms)
+3605ms	║║Cancelling statement #4's schedules...
+3653ms	║║Executed physical command [Bathroom Light].on() (41ms)
+3654ms	║║Executed [Bathroom Light].on (43ms)
+3709ms	║║Executed physical command [Dining Room Light].on() (52ms)
+3710ms	║║Executed [Dining Room Light].on (54ms)
+3749ms	║║Executed physical command [Hallway Landing Light].on() (37ms)
+3750ms	║║Executed [Hallway Landing Light].on (39ms)
+3790ms	║║Executed physical command [Kitchen Lightstrip 3].on() (38ms)
+3791ms	║║Executed [Kitchen Lightstrip 3].on (40ms)
+3830ms	║║Executed physical command [Media Room Light].on() (37ms)
+3831ms	║║Executed [Media Room Light].on (39ms)
+3873ms	║║Executed physical command [Rear Outside Light].on() (40ms)
+3874ms	║║Executed [Rear Outside Light].on (42ms)
+4046ms	║║Executed physical command [Sconce 1].on() (169ms)
+4047ms	║║Executed [Sconce 1].on (172ms)
+4086ms	║║Executed physical command [Sconce 2].on() (36ms)
+4087ms	║║Executed [Sconce 2].on (38ms)
+4159ms	║║Executed physical command [Bathroom Light].setColor([[hex:#800080, hue:83, saturation:100, level:25]]) (39ms)
+4160ms	║║Executed [Bathroom Light].setColor (46ms)
+4205ms	║║Executed physical command [Dining Room Light].setColor([[hex:#800080, hue:83, saturation:100, level:25]]) (38ms)
+4206ms	║║Executed [Dining Room Light].setColor (44ms)
+4252ms	║║Executed physical command [Hallway Landing Light].setColor([[hex:#800080, hue:83, saturation:100, level:25]]) (41ms)
+4253ms	║║Executed [Hallway Landing Light].setColor (45ms)
+4299ms	║║Executed physical command [Kitchen Lightstrip 3].setColor([[hex:#800080, hue:83, saturation:100, level:25]]) (42ms)
+4300ms	║║Executed [Kitchen Lightstrip 3].setColor (45ms)
+4348ms	║║Executed physical command [Media Room Light].setColor([[hex:#800080, hue:83, saturation:100, level:25]]) (44ms)
+4349ms	║║Executed [Media Room Light].setColor (47ms)
+4395ms	║║Executed physical command [Rear Outside Light].setColor([[hex:#800080, hue:83, saturation:100, level:25]]) (42ms)
+4396ms	║║Executed [Rear Outside Light].setColor (45ms)
+4442ms	║║Executed physical command [Sconce 1].setColor([[hex:#800080, hue:83, saturation:100, level:25]]) (42ms)
+4443ms	║║Executed [Sconce 1].setColor (46ms)
+4489ms	║║Executed physical command [Sconce 2].setColor([[hex:#800080, hue:83, saturation:100, level:25]]) (41ms)
+4490ms	║║Executed [Sconce 2].setColor (46ms)
+4534ms	║║Executed physical command [Bathroom Light].setLevel([10]) (35ms)
+4535ms	║║Executed [Bathroom Light].setLevel (37ms)
+4574ms	║║Executed physical command [Dining Room Light].setLevel([10]) (37ms)
+4575ms	║║Executed [Dining Room Light].setLevel (39ms)
+4614ms	║║Executed physical command [Hallway Landing Light].setLevel([10]) (36ms)
+4615ms	║║Executed [Hallway Landing Light].setLevel (39ms)
+4653ms	║║Executed physical command [Kitchen Lightstrip 3].setLevel([10]) (35ms)
+4654ms	║║Executed [Kitchen Lightstrip 3].setLevel (38ms)
+4692ms	║║Executed physical command [Media Room Light].setLevel([10]) (36ms)
+4693ms	║║Executed [Media Room Light].setLevel (38ms)
+4732ms	║║Executed physical command [Rear Outside Light].setLevel([10]) (37ms)
+4733ms	║║Executed [Rear Outside Light].setLevel (39ms)
+4771ms	║║Executed physical command [Sconce 1].setLevel([10]) (36ms)
+4773ms	║║Executed [Sconce 1].setLevel (38ms)
+4814ms	║║Executed physical command [Sconce 2].setLevel([10]) (40ms)
+4815ms	║║Executed [Sconce 2].setLevel (42ms)
+4825ms	║║Executed virtual command [Bathroom Light, Dining Room Light, Hallway Landing Light, Kitchen Lightstrip 3, Media Room Light, Rear Outside Light, Sconce 1, Sconce 2].wait (2ms)
+4828ms	║║Requesting a wake up for Sun, May 21 2017 @ 8:22:05 PM EDT (in 1.0s)
+5015ms	║║Fast executing schedules, waiting for 814ms to sync up
+5885ms	║║Executed physical command [Bathroom Light].refresh() (32ms)
+5886ms	║║Executed [Bathroom Light].refresh (35ms)
+5920ms	║║Executed physical command [Dining Room Light].refresh() (32ms)
+5921ms	║║Executed [Dining Room Light].refresh (34ms)
+5960ms	║║Executed physical command [Hallway Landing Light].refresh() (35ms)
+5961ms	║║Executed [Hallway Landing Light].refresh (39ms)
+5993ms	║║Executed physical command [Kitchen Lightstrip 3].refresh() (30ms)
+5995ms	║║Executed [Kitchen Lightstrip 3].refresh (32ms)
+6029ms	║║Executed physical command [Media Room Light].refresh() (30ms)
+6031ms	║║Executed [Media Room Light].refresh (34ms)
+6061ms	║║Executed physical command [Rear Outside Light].refresh() (28ms)
+6062ms	║║Executed [Rear Outside Light].refresh (30ms)
+6094ms	║║Executed physical command [Sconce 1].refresh() (28ms)
+6100ms	║║Executed [Sconce 1].refresh (36ms)
+6132ms	║║Executed physical command [Sconce 2].refresh() (29ms)
+6133ms	║║Executed [Sconce 2].refresh (31ms)
+6191ms	║║Comparison on is on = true (5ms)
+6196ms	║║Comparison on is on = true (4ms)
+6202ms	║║Comparison on is on = true (5ms)
+6208ms	║║Comparison on is on = true (4ms)
+6214ms	║║Comparison on is on = true (4ms)
+6219ms	║║Comparison on is on = true (4ms)
+6225ms	║║Comparison on is on = true (5ms)
+6231ms	║║Comparison on is on = true (5ms)
+6236ms	║║Cancelling condition #3's schedules...
+6238ms	║║Condition #3 evaluated true (100ms)
+6239ms	║║Cancelling condition #2's schedules...
+6240ms	║║Condition group #2 evaluated true (changed) (104ms)
+6245ms	║║Cancelling statement #9's schedules...
+6286ms	║║Calculating (string) #0000CD + (string) ambience lights turned on at: >> (string) #0000CD ambience lights turned on at:
+6293ms	║║Calculating (string) #0000CD ambience lights turned on at: + (string) Sun, May 21 2017 @ 8:22:05 PM EDT >> (string) #0000CD ambience lights turned on at: Sun, May 21 2017 @ 8:22:05 PM EDT
+6334ms	║║Executed virtual command sendPushNotification (31ms)
+6384ms	║║Calculating (string) + (string) #FF0000 >> (string) #FF0000
+6396ms	║║Calculating (string) #FF0000 + (string) ambience lights turned on at: >> (string) #FF0000 ambience lights turned on at:
+6406ms	║║Calculating (string) #FF0000 ambience lights turned on at: + (string) Sun, May 21 2017 @ 8:22:05 PM EDT >> (string) #FF0000 ambience lights turned on at: Sun, May 21 2017 @ 8:22:05 PM EDT
+6413ms	║║Calculating (string) #FF0000 ambience lights turned on at: Sun, May 21 2017 @ 8:22:05 PM EDT + (string) >> (string) #FF0000 ambience lights turned on at: Sun, May 21 2017 @ 8:22:05 PM EDT
+6420ms	║║Executed virtual command setState (1ms)
+6524ms	║╚Execution stage complete. (6314ms)
+6622ms	║Setting up scheduled job for Mon, May 22 2017 @ 8:23:00 PM EDT (in 86454.205s)
+6642ms	╚Event processed successfully (6641ms)

I’ve added command optimizations today. Either disable command optimizations in the piston settings, or add a Turn on as well please. Also, when adding logs, please try to select the lot you pasted and click on the </> icon in the toolbar right above the edit area.

Sorry about the log issue… I did have a “Turn On” in the piston… should it be somewhere else? also how do you disable command optimizations or where?