CoRE - Get peer assistance here with setting up Pistons

@ady624 is “Wait for False State”, better than if,then,else?

Hi Joel. Actually you can choose all… like this…

thanks mate. I did see that but i can’t choose all and have it say ALL inactive for 10 mins. right?
@bamarayne

Yes you can. Just choose all and all of them have to be inactive for 10 minutes.

sorry I am running on little sleep due to a 11 month old - if i set “Is” and value “inactive” where is the option to enter the timeframe for the timeout?

I can only find the option for entering a time period under “stays away from” but this removes the evaluation option.

If i leave it as is- shouldn’t the rule work though - it’s not triggering as is so i must be doing something wrong.

EDIT: If I choose: WAS NOT it lets me select ALL and i can enter a timeframe in, but not via IS by the looks of it.

Eitherway I don’t think the rule fires but will try it with this setup - thank you! :slight_smile:

As Jason said use is inactive so you can choose all. Next to get your 10 min time frame use WAIT 10 min.
IF - xxx motion sensors is inactive
THEN - Wait 10 min, whatever u want to switch.

Make sure to choose cancel on piston state change under the task cancellation policy. This will reset the 10 min timer if motion on any of the chosen sensors becomes active again.

Anyone in here who can help me setup a auto unlock door on arrival sensor presence? Ill guess there is something I can do to make it more secure and less faulty errors?
Please If you have something that works for you please tell me.
I use both smartthings presence sensors and Life360.
I have tried to simply use Im back routine, but for some reason it dosent work that great, sometime it unlocks and sometimes it dont.
I have one piston setup that does a great job unlocking.
But Its just a easy If presence on this device, unlock.
But I was hoping there is something more I could try to maybe avoid typical errors that makes it unlock when Its not supposed to.

Ok. I have redone it and tested. Seems to be working.
I have put a Night mode.

So basically. If there is no activity from sensors and motion:
Wait 1 hours then change mode to Saty
Wait 2 hours then change mode to Night
Wait 7 hours.
Then it will check if both presence are not present
If true then change mode to Away.

2 things:
1-we have kids.
How can I change this piston so the away mode is not automatically triggered when both presence sensors are not present.
Let say we both go to travel (will bring both cells) and kids stays at home.

2-How can I cover change to home mode if there is activity for more than 20 minutes.
Can I use the same piston?
Thanks again

Can anyone explain or have a method for setting a triggered light (1 light) that I have on a motion sensor to turn off in 15 or 30 seconds, I cant seem to find a way to do this, all I find the lowest amount of time is 1 minute. Sorry I am completely new and just getting started so forgive me if I am missing something simple. I was directed here to CoRE thread as i was told that was the only way to accomplish this.

Here is mine that is triggered with motion and if the lux level is low.
In the ‘wait’ part you can select seconds, minutes or hours.

Are you looking at CoRE to turn on the light with motion then wait 15 or 30 secs after no motion and turn off the lights? I would use a latching piston for this.
IF - xxx motion sensor is active
THEN - using xxx light, turn on
BUT IF - xxx motion sensor is inactive
THEN - using xxx light, wait 30 secs, turn off

Also enable cancel on piston state change in the task cancellation policy section.

I’m assuming you also have already installed CoRE?

Okay so my light is not dimmable does that make a difference or just make sure its set to 100% ?

I am working on installing now, then will attempt this.

If it’s not dimmable, instead of ‘set to’ choose ‘turn on’.
Also when motion becomes active again within the 1 minute, the timer resets itself so will stay on while there is motion.

Got it! I will reply with my success or failure hopefully no the latter.

Success I was able to get this working with the latching piston as you described above, much thanks!!

I wasn’t able to get it working with the basic piston mode, I’m sure I was doing something incorrectly but I did get it working with the latching piston. I will keep trying as I am new to this and still figuring it all out slowly.

Was thinking today, add a “Wait for condition state change”?

A simple motion on/off can be achieved with a simple piston:

IF
   Motion is active
THEN
   Using light...
      > Turn on
      > Wait for state change
      > Wait for 1 minute
      > Turn off

That actually has s huge impact on how things can be done.

Please do it.

Yeah it would help with individual actions