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

there may be other ways as well … but have the Good Night routine turn on a virtual switch and monitor that switch in this routine should work.

I just purchased an Arlo Q camera to go along with my Arlo wireless cameras. I am trying to write a piston to record video on motion, but I don’t see a record command. I do see capture(…), startStream(…) and stopStream(…) but I don’t know what they do, or what the parameters are for these commands.

Can anybody enlighten me?

Off topic: Did you know spending 14 continuous hours in an amusement park is called overdoing it?! :wink:

5 Likes

Hello,

I’d like to set up a piston where all my Sonos speakers work as door chimes.

basically, if any door contact is open. All the speakers will announce a particular door is open by name.

Here’s what i have. But not sure if the logic is correct.

Thanks

If your action tiles is simply executing your smartthings good night routine then just monitor that. should find it under virtual devices

o hey you can check for routine execution … now need to find a way to use it :slight_smile:

thanks @c1arkbar

1 Like

I do it it here in a very simple manner … (the dimmer in the piston is a ceiling fan switch).

thanks @Nezmo, nice.

do you know what the scope is of cancel all pending tasks when used with location instead of device(s)?

thanks!

EDIT: checking further, cancel all pending tasks seem to be always with scope location.

1 Like

IDoes anyone know what the following error means? The piston was working well for a couple of days. I haven’t amended it and it has just stopped working:

║An error occurred while executing the event: java.lang.ClassCastException

!

@anon36505037 perfect - that worked! Thanks

Hi @bangali, a bit of help please

How would you adjust your piston time to 15 mins before sunset and 15 mins after sunrise?

Piston edsh2
Line 31?

Thanks a lot :grin:

In the piston I posted I’m using it to cancel the wait timer if running as I don’t want the fan turning off at the end of the wait if it’s running if the fan has been turned on by the routine. The second cancel pending tasks is to cancel the wait if the fan is turned off by any other means than the piston’s wait timer (eg, at the switch manually, another smart app, etc.).

I have been using SHM controlled by routines. I use WebCore for all the notifications and automatic running of the Routines.

I am thinking of changing and letting WebCore do all the work instead of SHM.

I realize WebCore is essentially still in Beta, but does anyone have a sense of reliability of WebCore VS SHM? So far I have not had any issues with WebCore, except my own mistakes.

I’ve just started playing around with the speak text function Of webCore.

This Is my piston and logs, what I cant get It to do Is change the volume as the speaker(Samsung M5) just stays at Its current setting?

8/2/2017, 5:23:17 PM +83ms
+1ms ╔Received event [Z-Wave Door/Window Sensor].contact = closed with a delay of 1018ms
+191ms ║RunTime Analysis CS > 18ms > PS > 57ms > PE > 117ms > CE
+200ms ║Runtime (34994 bytes) successfully initialized in 57ms (v0.2.0e1.20170728) (198ms)
+201ms ║╔Execution stage started
+216ms ║║Comparison (enum) closed changes = true (1ms)
+218ms ║║Cancelling condition #4’s schedules…
+219ms ║║Condition #4 evaluated true (8ms)
+220ms ║║Cancelling condition #1’s schedules…
+221ms ║║Condition group #1 evaluated true (state changed) (11ms)
+224ms ║║Cancelling statement #2’s schedules…
+261ms ║║Executed physical command [kitchen Speaker].setLevel([100]) (28ms)
+262ms ║║Executed [kitchen Speaker].setLevel (30ms)
+787ms ║║Executed physical command [kitchen Speaker].playText([Porch Door]) (521ms)
+788ms ║║Executed [kitchen Speaker].playText (522ms)
+792ms ║╚Execution stage complete. (590ms)
+800ms ╚Event processed successfully (800ms)

Shouldn’t you set the volume on the text definition.
I have Sonos Speakers and that is where I set the level for my Sonos dealers.

I’ve changed It to this.

And tried various values In the volume field.

And now have no sound and these logs

8/2/2017, 5:47:32 PM +574ms
+1ms ╔Received event [Z-Wave Door/Window Sensor].contact = open with a delay of 177ms
+1142ms ║RunTime Analysis CS > 17ms > PS > 945ms > PE > 179ms > CE
+1148ms ║Piston waited at a semaphore for 867ms
+1151ms ║Runtime (34966 bytes) successfully initialized in 945ms (v0.2.0e1.20170728) (1148ms)
+1152ms ║╔Execution stage started
+1166ms ║║Comparison (enum) open changes = true (1ms)
+1167ms ║║Condition #4 evaluated true (6ms)
+1169ms ║║Condition group #1 evaluated true (state did not change) (8ms)
+1172ms ║║Cancelling statement #2’s schedules…
+1566ms ║║Error while executing physical command kitchen Speaker.playText([Porch Door, 1]): groovy.lang.MissingPropertyException: No such property: protocol for class: physicalgraph.device.HubMultiAction
+1569ms ║║Executed [kitchen Speaker].playText (389ms)
+1573ms ║╚Execution stage complete. (422ms)
+1581ms ╚Event processed successfully (1580ms)

Still struggling with one.

When Routine Runs
Wait 2 minutes
When Motion Sensor hasn’t sensed motion for 2 minutes
Light Switches Off

I’ve tried a few variations of this, and either end up with the light going off immediately after 2 minutes, or the closest I’ve got is fine if you DO trigger the motion sensor after 2 minutes, but if not then the light doesn’t go off (ie. WHEN no motion sensed for 2 minutes go off, but if no motion already 3 minutes that will never happen.

Isn’t that a Value of 1?
I can only comment on what I get for my Sonos speakers and the volume goes up to 100%.

Tried various values but always no sound and the same error

@SteMac replace the isBetween( … ) part of the expression with isBetween($now, addMinutes($sunrise, -15), addMinutes($sunset, 15))

so, it should read (isBetween($now, addMinutes($sunrise, -15), addMinutes($sunset, 15)) ? X : Y)
where X is the level setting from 15 minutes before sunrise to 15 minutes afters sunset and Y is the level setting for all other times.

if that doesnt work, ping me and i will check it out.