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

To be honest, I haven’t done much troubleshooting other than noticing that things weren’t quite right. This piston did run on Saturday and Sunday, and also on Monday, but has not run since (according to the log).

Logs
7/31/2017, 7:59:59 AM +122ms
+2ms 	╔Received event [Home].time = 1501502400000 with a delay of -879ms
+193ms 	║RunTime Analysis CS > 29ms > PS > 66ms > PE > 98ms > CE
+204ms 	║Runtime (35850 bytes) successfully initialized in 66ms (v0.2.0e1.20170728) (200ms)
+205ms 	║╔Execution stage started
+226ms 	║║Comparison (string) :d9dd57670e2045f82e647efa357a2ed8: is (string) :b11771d3d5c283d77773906d5a1aae7a: = false (4ms)
+229ms 	║║Cancelling condition #1's schedules...
+230ms 	║║Condition #1 evaluated false (14ms)
+232ms 	║║Cancelling condition #null's schedules...
+233ms 	║║Condition group #null evaluated false (state changed) (18ms)
+234ms 	║║Piston execution aborted due to restrictions in effect
+236ms 	║╚Execution stage complete. (32ms)
+245ms 	╚Event processed successfully (244ms)
7/30/2017, 7:59:59 AM +183ms
+1ms 	╔Received event [Home].time = 1501416000000 with a delay of -818ms
+172ms 	║RunTime Analysis CS > 21ms > PS > 64ms > PE > 87ms > CE
+184ms 	║Runtime (35850 bytes) successfully initialized in 64ms (v0.2.0e1.20170728) (181ms)
+187ms 	║╔Execution stage started
+202ms 	║║Comparison (string) :b11771d3d5c283d77773906d5a1aae7a: is (string) :b11771d3d5c283d77773906d5a1aae7a: = true (3ms)
+204ms 	║║Condition #1 evaluated true (9ms)
+206ms 	║║Condition group #null evaluated true (state did not change) (10ms)
+214ms 	║║Comparison (time) 28799393 happens_daily_at (time) 28800000 = true (1ms)
+216ms 	║║Time restriction check failed
+218ms 	║║Condition #5 evaluated false (8ms)
+223ms 	║║Cancelling statement #5's schedules...
+228ms 	║║Requesting time schedule wake up at Mon, Jul 31 2017 @ 8:00:00 AM EDT
+232ms 	║║Condition group #2 evaluated false (state did not change) (22ms)
+236ms 	║╚Execution stage complete. (49ms)
+238ms 	║Setting up scheduled job for Mon, Jul 31 2017 @ 8:00:00 AM EDT (in 86400.58s)
+253ms 	╚Event processed successfully (252ms)
7/29/2017, 7:59:59 AM +155ms
+1ms 	╔Received event [Home].time = 1501329600000 with a delay of -845ms
+276ms 	║RunTime Analysis CS > 39ms > PS > 104ms > PE > 133ms > CE
+287ms 	║Runtime (35848 bytes) successfully initialized in 104ms (v0.2.0e1.20170728) (284ms)
+288ms 	║╔Execution stage started
+305ms 	║║Comparison (string) :b11771d3d5c283d77773906d5a1aae7a: is (string) :b11771d3d5c283d77773906d5a1aae7a: = true (3ms)
+308ms 	║║Condition #1 evaluated true (9ms)
+309ms 	║║Condition group #null evaluated true (state did not change) (12ms)
+318ms 	║║Comparison (time) 28799469 happens_daily_at (time) 28800000 = true (0ms)
+319ms 	║║Time restriction check failed
+322ms 	║║Cancelling condition #5's schedules...
+324ms 	║║Condition #5 evaluated false (10ms)
+326ms 	║║Cancelling statement #5's schedules...
+332ms 	║║Requesting time schedule wake up at Sun, Jul 30 2017 @ 8:00:00 AM EDT
+338ms 	║║Cancelling condition #2's schedules...
+340ms 	║║Condition group #2 evaluated false (state changed) (27ms)
+346ms 	║╚Execution stage complete. (59ms)
+349ms 	║Setting up scheduled job for Sun, Jul 30 2017 @ 8:00:00 AM EDT (in 86400.497s)
+487ms 	╚Event processed successfully (487ms)
7/28/2017, 7:59:59 AM +289ms
+0ms 	╔Received event [Home].time = 1501243200000 with a delay of -712ms
+215ms 	║RunTime Analysis CS > 29ms > PS > 54ms > PE > 132ms > CE
+226ms 	║Runtime (35846 bytes) successfully initialized in 54ms (v0.2.0e0.20170726) (225ms)
+228ms 	║╔Execution stage started
+246ms 	║║Comparison (string) :b11771d3d5c283d77773906d5a1aae7a: is (string) :b11771d3d5c283d77773906d5a1aae7a: = true (3ms)
+249ms 	║║Condition #1 evaluated true (11ms)
+251ms 	║║Condition group #null evaluated true (state did not change) (13ms)
+265ms 	║║Comparison (time) 28799545 happens_daily_at (time) 28800000 = true (5ms)
+267ms 	║║Time restriction check passed
+269ms 	║║Condition #5 evaluated true (14ms)
+280ms 	║║Cancelling statement #5's schedules...
+285ms 	║║Requesting time schedule wake up at Sat, Jul 29 2017 @ 8:00:00 AM EDT
+290ms 	║║Condition group #2 evaluated true (state did not change) (35ms)
+295ms 	║║Cancelling statement #3's schedules...
+349ms 	║║Executed virtual command setLocationMode (48ms)
+371ms 	║║Executed virtual command writeToFuelStream (13ms)
+377ms 	║╚Execution stage complete. (150ms)
+380ms 	║Setting up scheduled job for Sat, Jul 29 2017 @ 8:00:00 AM EDT (in 86400.333s)
+397ms 	╚Event processed successfully (398ms)

Could someone help me with this piston? When my wife arrives home and opens the front door, I’d like LanNouncer to greet her. I can’t get it to fire but not sure why. I’m assuming it has to do with the 2 requirements at the top? I added a push notification just to let me know if its working but it never goes off.

I would reorder the IFs and change the presence IF to IS PRESENT. As it stands you have two triggers. If you change as I suggest you’ll have a trigger with a condition.

Thanks Nezmo, I don’t want it to go off every time she is home and the door opens though. Just when she arrives and then opens the door. I did just find the “followed by” option and now have to wait for her to leave to test :slight_smile:

image

Ah, got ya. Sorry.

1 Like

Thanks @bangali! This is a great feature. Thanks for the info!

you are welcome.

Is it possible to have a piston execute multiple actions at the same time? Specifically what I am trying to do is have the brightness of 2 Hue bulbs fade from 0-40% at the same time. Thanks!

Thanks! I’ve set this up and I"ll report back for every one to see how this fires tonight .

you are welcome. :+1:

I have been running this guy since May and it has never failed to run on the appropriate days. Maybe you can use some of the ideas here.

Greetings,

This is probably a rooky question, but how do I get a piston to tell Alexa to voice “Front lights have been turned on”?
Even though I don’t have Alexa, I’d got an Android app that simulates Alexa and have integrated SmartThings with Alexa via alexa.amazon.com… I’m able, thought the android app, to turn things on/off etc. But now I’d like to send text notifications to Alexa.

Can someone please point me in the right direction? Perhaps I have to add a Device Handler or Smart App to the IDE?

:slight_smile:

You sure can. Here is a simple example where when i arrive home 2 bulbs will fade from 0-40%.

Hope that helps!

Note that while this will handle both actions together based on the trigger the actual execution will never be exactly at the same time as everything is sequential. Each device will get a command in sequence. But it will be close enough.

Seems to be an issue with the piston restriction - it won’t allow it to resubscribe for a new time trigger. While this is a bug and it will get fixed, I recommend that you move the restriction as an IF inside the timer to avoid it until it gets fixed.

1 Like

interesting discovery although, i dont know if it’s a bug or that it’s not being used properly.

I was able to hit-up the “WebCore Example Piston” page to find my answers.

Anyway, when creating a piston to use my Sonos speakers as a door chime. And I initially created a task to have webCoRE both ‘speak to text’ and ‘set the volume’ all in one task (see below), there’s no playback on the speakers when the door is actually opened.

piston_incor

But, when i create two separate tasks; one for ‘speak to text’ and the other ‘set volume’, the piston actually works with the door is opened (see script below).



works

Would anyone happen to know why the two script methods do not yield the same results? I mean, if the task gives me the option to roll-up two tasks in one. I would expect it to work. just curious what the expected behavior is.

Thanks

Sorry, that won’t work. At this time Echo can only respond to commands it receives. Voice notifications are not possible . This is an Amacon restriction.

You can still use your android tablet for voice announcements (with the Smarthings voice):

Check this example I put up: [DEPRECATED THREAD: visit community.webcore.co for assistance] WebCoRE - Example Pistons

change speaker with your speaker, and git rid of the MP3 URL to just Speak a dynamic txt string based on the item open.

Thanks. I will give this a try