CoRE - Get peer assistance here with setting up Pistons


I’m trying to set up a piston where my schlage lock will change alarm mode based on the hub mode. When I go into the lock event history, it is setting the value as “setAlarmMode” but the mode isn’t actually changing

Is there something I am missing?

Thanks @eibyer, I think the problem is that the dimmer doesn’t send another “on” command of is already on. At least the Recent Activity view doesn’t show it.

Any idea if this is the case? Any way around this? There is a double tap smart app, this makes me think a solution is possible.

Hey all I’ve been trying to figure out this simple piston and for the life of me cannot get it working. I’m sure it’s something easy.
What I want it to do is text me when one of my temperature sensors is above or below a set number, but only once every couple hours so I’m not getting a bunch of messages.
Everything works except it will not wait 120 minutes until it fired again. It will continue to send SMS messages as the temperature changes every time.
I know the issue is the wait command at the end, I just don’t know what to put in its place
Here’s what I have so far:

I didn’t check the recent view on the st app but I did look the web IDE live logging. I will give that second piston a try when I get home (if I don’t sidetracked).

There’s an option “piston or state change only” that you can try enabling but it will still ignore the 120 minute wait you have. If you need that 120 minute wait, you will have probably have to involve a variable that can be checked if the notification has been triggered already and then you’ll have a timer in that piston that will reset that variable back to false after 120 minutes waiting for another event.

I’m with you. I think it is going to depend on what type of switch / dimmer you use. I have the GE dimmer installed. I can not see any events in live logging or Event list for that switch on the IDE if the switch is already in the state your trying to switch to.

I turned it on and pressed the on button again. The original on is in the IDE event list but not any of the latter. I do see my CoRe piston sending the level commands from my auto control. Which is interesting but really does you no good. If you can’t see the switched pressed again then you can’t trigger your CoRE piston on that event.

If I remember right others had issues with the double tap and the GE switches. There is another brand of switch that I believe has double tap functionality built into the switch.

So maybe if you used that switch in the places you needed this functionality, it might work? I believe it would also require the custom DTH.

1 Like

So, @bamarayne helped me out with something similar to this back in August: CoRE - Get peer assistance here with setting up Pistons

Basically, it uses a variable as a condition, notification only fires when the correct variable state exists.

Works - but the sim switch I’m using stays on ,negating running again.
Tried a button but Alexa does not seem to work. Need a way to reset the sim back to Off.

Also is the only turn off a delayed off? It works.but need to set a time.

interval timer is for a planned hydroponics setup net Summer, on 10-20 seconds and then off for 15 minutes repeat. Last time I did this I was using industrial timers but want to be able to track power usage. I could always buy a timer and use a ST device to track power - but seems excessive.

See if you can set up a virtual simulated button… which I think is normally off. The piston would look like this:

Button changes to pushed

Edit: Just read that you tried a button. Hmm, you can probably integrate the turn off of the switch in the piston itself.

Your_Triggger here
Using Siren
> Turn on
> Wait X seconds
> Turn off
Using Your_switch
  > Wait X minutes
  > Turn off

Yup, I’m using the GE switch. I still wonder how the double-tap smartapp worked for me though.

For the record, this request isn’t anywhere near important for me. It was an idea that I had that I believe would be a minor convenience. I’m also curious of the capabilities of CoRE :smiley:

Any ideas about why this want to fire at midnight?

All i want is for it to switch lights on at sunset. I have another system to switch them off with SHM.

Why did you pick after sunset as the condition? Use a trigger instead. Select happens at, then sunset.

It will not fire at or after midnight until the next sunset because midnight starts a new “Day”. So if you are wanting it for the duration of sundown then do in between sunset and sunrise.

Hi all,
I’m a self confessed noob, but have created a couple of pistons that work pretty great for my needs!
One area I’m struggling with are with Lightwave RF devices (light switches).

I can control them from within the smartthings app using @adamclark_dev’s integration found here:

However, in Core pistons, the switches are completely unresponsive.

Can anyone instruct me on how best to diagnose this please?
I did a search, but came up with nothing, so apologies if I missed the answer.


Got it - went round and round but …

What was weird it kept failing - changed the siren to a lamp - worked fine - added the siren and lamp OK, deleted the lamp - OK. These GoContol sirens are cheap - slow to react and just act weird,

Found this for my other issue - seems to work.

This works.
Using Basic piston.
Virtual switch is on.
Using xxxxx light.
Turn on
Wait 30 seconds.
Turn off.
Follow up with piston #this piston name# after 30 seconds.
Turn off.

Care of bobbles

1 Like

Thank you, this has fixed it.

Do SmartApps need to implement CoRE in their code or does CoRE have to implement smartapps? I see AskAlexa and EchoSistent in CoRE but no other apps.


I want to have my vaccubot (Maid Marian) to go into sleep mode if both my husband and I have been gone for 24 hours…but I only seem to find a minutes option with CoRe can anyone point me in the right direction? Thanks

Hi Paul,

Using the Evohome integration with Core how do you set a zone to heat to a desired set point? I am struggling with this.

couldn’t you just use a “wait” on the action and cancel on state change instead? So if your presence sensors remain away for 1 min, then Wait 24 hrs and turn off maid marian. On the action set to cancel on state change so if your presence sensors return within that 24hrs, the timer is reset.