I am migrating my pistons from WebCore and so far I didn’t find any problem. But there is something I cannot find an easy way, let’s see if you can help here. I have a piston that is triggered when two different motion sensors stay inactive for 5 seconds. In WebCore is like this:
Triggers only allow for an ANY, so trigger on something (any of the motions staying inactive, maybe) and then put an IF in the flow requiring both to be inactive.
Action, set $Run = False
Action, HTTP connection to SmartThings API to get the status of each motion state
Output to two variables for each motion sensor…
If - Then evaluation on the state of the motion sensors.
Perform whatever action
Add a delay for the amount of seconds to meet the requirement of ten minutes or whatever