CoRE - Get peer assistance here with setting up Pistons

Yes that is what I was looking for.

Hi, Guys. This was probably asked before. I am looking for a piston(s) that would do the following:

Say “fridge door is open” every 3 minutes, while door sensor is open. I almost got it to work with “follow up with piston x” but my problem is that followup continues to execute even after I close the door, so, I guess, I will need closing of the door to cancel all pending announcements.

thanks

Hi there!

Looking for some assistance! I’m using my iPhone as an arrival sensor but for added security I’ve purchased some Samsung arrival sensors that I leave in my car. What I’m trying to setup is a core piston which will detect the arrival of iPhone and Samsung arrival sensor to trigger opening the garage and unlocking the garage door. I think I’ve got it setup correctly but it won’t seem to trigger. When I look at the piston it always says current evaluation of false even though the st app shows both sensors have arrived. Details attached;

Any help would be appreciated!

Thanks

Make it is present instead of changes too.

No help here? I do not know where to look for answers. :frowning:

Thanks. So instead of changes to present, make it “is present”?

Won’t that continually trigger it when both presence sensors are present?

You could use your original piston (changes to) but change the “and” to an “or”.

The reason you can’t use “and” is because they would have to both change to present at the exact same time.

2 Likes

Thanks. I get it now. I wanted to use two presence sensors for security. Chances of someone detailing my phone and car at the same time are slim!

I guess I’ll just stick to using my iPhone as a presence sensor!

If one presence sensor consistently reports as “present” first, you can set it to be “changed” and “within 1 minute.” Then when the second presence sensor reports as “changes to” present, it should (in theory) trigger the “then” commands.

If neither one consistently reports first, you could always try an “or” piston where in the second half of the piston, you just reverse the order of the presence sensors.

Edit: On second thought, it may be easier to use variables, where when each of the sensors arrives, it adds 1 to a variable. When that variable reaches 2, then your “then” functions occur. You would have to set a “time-out” period (like 30 seconds) when the variable resets to 0, to avoid accidental openings.

1 Like

Hi,

I have a circuit that keeps getting tripped and want to notify if the circuit goes down via Core. How would I setup an alert if the last event is more than 30 minutes old for a device?

I am new to using core. I am trying to set up a simple piston, but can’t seem to get it to work. I want to turn on two rgbw lights if there is motion but turn them off if there is no motion for 5 minutes. I tried a simple, but the lights don’t turn off after 5 minutes. Any ideas? Thanks!

A lot of users have been converting over to webCoRE, you’ll probably get more feedback there plus it’s easier to share pistons now.

wiki.webcore.co for install instructions

I should have been more clear. I am using webcore. Any suggestions?

Thanks

Ah, ok, let me paste a sample that you can import. Click the orange button and then enter the code from this piston. You can then edit/modify it to use your bulbs.

Trouble adding Delay/Wait
I’d like to have a light turn on after 15 seconds if 2 contact sensors are open.

I set up a basic piston as follows
If each of contact 1 or contact 2 is open
Using location wait 15 seconds
Then
Using overhead light turn on.

I also tried the wait 15 sec after THEN, but the light comes on as soon as the second contact opens.

Why no delay? What am I doing wrong?

Just in case you dont check the other thread again. Here is your answer

1 Like

can you post a screenshot of your piston set up in this configuration? There must be something else causing it to not work correctly because that is the correct syntax for it to work as described.


delete the using location… wait 10 seconds.

then select the using overhead light… turn on.

once in there change the turn on action to wait 10 seconds. Before clicking done, scroll down and add another task of turn on.

1 Like

Ok I got it. I need to make the device wait not the action. If that makes sense.

Thank you

1 Like