Here is a link to where I posted the piston before.
https://community.smartthings.com/t/share-core-show-tell-all-about-pistons/50255/39?u=pcgirl65
Need some help here.
I have a piston that when a sensor opens and the mode is AWAY it starts a time delay, then sets a simulated sensor to open. That works fine.
I have another piston that when the mode is set to HOME it is supposed to set the simulated sensor to close. This one will not work. Any ideas why?
Thanks.
Post pic :), piston pic that is.
Change it to a Trigger, âchanges toâ, if the option is available.
Tried that and other options also. Nothing worked.
Tried that. Tried almost all types. Same result.
Maybe itâs the simulated sensor thatâs not working, trying Pushing a message first.
If I want to have a Momentary Button Tile trigger a piston, is the right choice simply to same âIf button-name changesâ. I presume âchangesâ catches a press of the momentary button?
I created a few dimming scene pistons with virtual switches as the triggers and added to action to flip the switch back to off at the end since there is no âoffâ action. Then I had a DOH moment and realized that I could just use a momentary button. 
I have a couple of those simulated buttons and I think I used âchanges to pushedâ. I use one for a manual Away mode toggle since I donât need to keep track of the state of the button.
Got it. I didnât see âpushedâ but just on/off. Worried that since I created the trigger with a standard switch, Iâm not seeing a momentary state. I might create a new trigger and see if that changes it. Also, youâre just using Momentary Button Tile, not a custom device handler? Thanks.
Finally figured it out. I was using MODE to trigger the Piston. However, for testing I was just setting the alarm using SHM, which doesnât apparently set the MODE. If I run a routine it sets SHM and sets MODE which then worked.
So I just changed my PISTON to look at SHM instead of MODE and that solved the problem.
All I was trying to do was set an entry delay on one door if the alarm wasnât disarmed before that door opened. Normally that would never be the case, but when our neighbor comes down to take care of the dog she has to use the keypad which is inside the door.
Thanks for all the help.
In the IDE, edit your device and change the type to Simulated Button or create a new virtual device, your choice.
Ah Simulated Button. I was staring right at it. Looking for Simulated Momentary Button.
Thanks again!
Hi all
I have my lights (Osram) set to 2700 kelvin almost all the time.
If an alert goes off, I set all my lights to 100%.
When I dismissed that alert, then some of my bulbs are set to the color purple.
In CoRE, is there are state trigger like, âWhen Alert is dismissed, then âŚâ?
So I can create a Piston an conffigure myself what should happen.
Thanks much!
Hello,
Is there a way i can setup trigger sequences with CoRe. i.e. The order in which the triggers are detected is important for these rules.
Eg:-
IF
Trigger1 Happens (Motion is detected)
AND Trigger2 Happens afterwards (Door is opened)
After x sec
THEN do some action
ELSE IF
Trigger2 Happens (Door is opened)
AND
Trigger1 Happens afterwards (Motion is detected)
After x sec
THEN do some action
Thanks in advance!
Hi again
When my door is unlocked, I want piston to alert me, IF not me or my wife is âhomeâ within 10 minutes.
Because that would mean someone else has our code and locked themselves into my house.
IF
Door unlocked AND Location Mode is AWAY
THEN
Wait 10 minutes
If still Location Mode is Away,
then create an Alert
Hoping to get some help with a Laundry Monitor routine I found here:
Iâm using a shock sensor instead of a power meter for my dryer. Whatâs the best way to ensure the shock sensor is open (dryer on) for 1+ min before setting the boolean = true. Iâm trying to reduce the false positives of the dryer door opening or the dryer being bumped. I tried using the statement âLaundry Dryer (contact sensor) stays open for 2 minutesâ, it doesnât seem to be working as expected. Thanks
Try something like.
IF Sensor is open.
Wait 1 minute
Set variable.
Use cancel on piston state change.
That way if its just a bump the piston will not be true anymore and the 1 minute timer will stop.
