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

See if this works for you…

1 Like

Please ask the author of the DTH to follow the documentation:

http://docs.smartthings.com/en/latest/capabilities-reference.html#tamper-alert

1 Like

Thanks, that was next up if current one doesn’t work. Trying to make super simple so I can explain it to parents who know nothing about any tech

Alternatively, use an expression:

!![Fibaro Sensor ZW5:tamper] == true

Ya, I wasn’t sure if a piston can wake itself up after it’s been paused, and it was quicker to edit the piston than to try and see if it will work :smiley:

1 Like

You are right, once paused, the piston is gone. You need an external control to turn it back on.

Have a timer to reset the variable daily, or the wait 12 hours should work too, assuming mail never comes at odd hours.

Or the better way:

declare an integer variable called lastDay
compare lastDay is not equal to $day
set lastDay to $day

2 Likes

Wow , I can’t believe I missed that one…over thinking things again

Thanks @eibyer , @ady624

@ady624 or @eibyer alright basic question here. How do i “cancel on piston state change” for a light that has a wait and turn off if no motion?

the TCP in CoRE…where is it in webcore?

EDIT::: Found it it’s automatically set to Cancel on condition state change…

ThaNKS

Only option (and logically won’t work with lastDay set to $day) I have is “is different than” …or am I confusing languages and myself

looks like it’s built into webcore. In the original core, you had to select it. You shouldn’t have to change anything.

That is the one. Used to be “is not equal to”

And with lastDay being set to day won’t that negate it right there?

Do not initialize any value in the variable declaration, leave it Nothing selected. Set the variable right after the push notification…

So …

Thank you! Been away from this too long with new Network Architect position at a startup

1 Like

You got it!

1 Like

I would like to create a piston in webCoRE using Weather Station that when the wind reaches a certain speed do x,y, and z.

I would like to use the condition is greater than but it is not available like it is for illuminance or temperature. Any ideas/suggestions on how I can accomplish this for wind conditions?

Follow the expression example below… it’s the dth that’s returning the wind value as string, that’s the reason why you’re that incorrect comparison.

I had a CoRE piston working with this calculation using $previousStateDuration, but in webcore it seems to keep the value as 0. Did I get something wrong in the variable expression?

5/19/2017, 11:46:35 PM +566ms
+1ms ╔Received event Central Heating Control].thermostatMode = off with a delay of 84ms
+157ms ║RunTime Analysis CS > 20ms > PS > 66ms > PE > 72ms > CE
+167ms ║Runtime (31907 bytes) successfully initialized in 66ms (v0.1.0ac.20170518) (165ms)
+168ms ║╔Execution stage started
+186ms ║║Comparison off is heat = false (4ms)
+188ms ║║Condition #11 evaluated false (11ms)
+190ms ║║Condition group #1 evaluated false (changed) (14ms)
+200ms ║║Executed virtual command Virtual Central Heating].setState (1ms)
+229ms ║║Executed physical command null].off() (26ms)
+230ms ║║Executed Virtual Central Heating].off (28ms)
+240ms ║║Calculating (decimal) 0.0 / (decimal) 1000.0 >> (decimal) 0.0
+248ms ║║Calculating (decimal) 0.0 / (decimal) 60.0 >> (decimal) 0.0
+257ms ║║Executed virtual command Virtual Central Heating].setVariable (3ms)
+269ms ║║Calculating (string) Heating was on for + (string) 0.0 >> (string) Heating was on for 0.0
+274ms ║║Calculating (string) Heating was on for 0.0 + (string) mins >> (string) Heating was on for 0.0 mins
+283ms ║║Executed virtual command Virtual Central Heating].sendNotification (5ms)
+673ms ║║Executed virtual command Virtual Central Heating].iftttMaker (374ms)
+770ms ║╚Execution stage complete. (603ms)
+1008ms ╚Event processed successfully (1008ms)
5/19/2017, 11:46:02 PM +827ms
+2ms ╔Received event Central Heating Control].thermostatMode = heat with a delay of 83ms
+163ms ║RunTime Analysis CS > 19ms > PS > 67ms > PE > 76ms > CE
+172ms ║Runtime (31912 bytes) successfully initialized in 67ms (v0.1.0ac.20170518) (170ms)
+173ms ║╔Execution stage started
+190ms ║║Comparison heat is heat = true (4ms)
+193ms ║║Condition #11 evaluated true (11ms)
+194ms ║║Condition group #1 evaluated true (changed) (13ms)
+225ms ║║Executed physical command null].on() (25ms)
+226ms ║║Executed Virtual Central Heating].on (26ms)
+235ms ║║Executed virtual command Virtual Central Heating].sendNotification (5ms)
+598ms ║║Executed virtual command Virtual Central Heating].iftttMaker (352ms)
+604ms ║║Executed virtual command Virtual Central Heating].setState (1ms)
+694ms ║╚Execution stage complete. (521ms)
+742ms ╚Event processed successfully (741ms)

I don’t think that system variable is available in webcore, your alternative is to use the previousAge() function, it also outputs in ms.

previousAge([devicename:attribute])

Edit: They’re all in here… https://wiki.webcore.co/Functions

is there a way to place a restriction on the whole piston instead of doing it under each individual

action?