OK I just found this thread and was using RM and like the options here a lot better since I am a programmer. So I know this is not totally ready for prime time but since I have been having issues with RM it is time for me to start working with this. I guess I could go through the 2000 messages but I just finished creating my first rule and now ready for the second…but can’t seem to find out how to add another. Clue please. By the way this is way cool!
In the CoRE app, right below the list of existing pistons, there’s an option, Add new piston
Well…maybe I’m doing something wrong? All else works fine. I suppose the virtual switch doesn’t have to be momentary but before I go that route I wanted to see if I could get it to work.
Okay, so then this is really accomplishing what I want then. I was only concerned that after I go to bed and run my Good Night routine that if it did in fact evaluate our presence again, it might see we’re present and change my Armed (Stay) to Disarmed. I think I thought this out too much and I am starting to get the logic, but you saying it’s not going to constantly evaluate makes perfect sense. So when we do change to Sunrise again, it’s going to pull off Armed (Stay) and that’s exactly what I needed.
The unfortunate part, I just ran simulate…no one is home and SHM still says “Disarmed”. I’m really starting to think there is an issue related to SHM and not CoRE or my logic, because modes are still working fine.
Just as an FYI, I got this reply from Smartthings when I initially already put in the question this morning.
Thanks for reaching out!
I am sorry that your Smart Home Monitor is not changing modes. I would be happy to look into this for you, with your permission.
This may be related to a known issue. One thing to try is to remove and re-add SHM - Security:
Tap the Smart Home Monitor Module on the Dashboard
Tap the Gear Gear
Tap Security
Hit Next a couple of times
Hit Remove at the bottom
After removing it, repeat steps 1-3 to re-configure your Security setup. Some users have reported success with this but I can not guarantee this will solve the problem.
If you continue to have this issue, let me know. I would be happy to take a look at things from my end.
I’ve done this already before I ran simulate. I checked my logs and don’t see anything regarding SHM. I"ll keep you guys updated.
This should do what you want it only when the goodbye switch turns on, provided that the Harmony switch is already off and nobody home. You combined a trigger with two conditions, so only the trigger will make your piston work. The conditions have to be true when the trigger happens, otherwise no go. Is that intended?
Yes I am an idiot…thx
How did you simulate? Please make sure you have the latest version as there was an issue with setting SHM a few versions back. Currently at v0.0.049
The simulate button doesn’t yet do anything…
Also, please note that CoRE is event based, like any other SmartApp. It only executes things when events happen. So you’d have to actually leave home for it to do something. I will make that Simulate button work so that it forces the piston to evaluate as if some event just came in…
New app icon?

I’m on the most current version…

And I ran simulate in app after setting SHM to Disarmed, then clicked simulate button and thought this would see were gone and kick to Armed (Away)

Which might also not work like I think.
BUT while I was writing this I see the wife just arrived home and SHM has disarmed. I had set it back to Armed (Away). So real life test just worked!!!
The Simulate button in the piston app does not do anything (yet).
That would explain nothing being in the logs. 
Regardless, real life test just worked, and I think I’m on my way to breaking more stuff so I get “the look” from the wife when I get home!!
At least she waits till you get home. I already got the call!
yes, I tested while at work by pressing the momentary switch in the app and my home was placed in Home mode manually…but I think the issue might have been my virtual presence…hmmm. I think I need to take presence out of the equation as if I verbally tell Alexa my presence would keep it from working obvioulsy.
[quote=“ady624, post:1881, topic:46546, full:true”] You combined a trigger with two conditions, so only the trigger will make your piston work. The conditions have to be true when the trigger happens, otherwise no go. Is that intended?
[/quote]
For my test from work, yes…but I need to simplify as there was need for the presence to be in combination with the momentary switch; however, it does need to be in combination with the harmony switch.
Conclusion: I’m an idiot when trying to build rules before bed
Second image
Piston-gears
Perfect site name too. Dreamstime?!?! That’s exactly what CoRE is about!
Hate it when people challenge me
ha ha ha
v0.0.04a.20160526 - Alpha test version - First attempt at simulations 


//todo let the user pick a device trigger - riding on time triggers right now
It’s very hard to believe that every time we go to my IDE, there is a CoRE update and it’s an update for the better. You could probably stop now and you’ve already solved almost all the the missing functionality from Smartthings for us all.
You are a gentleman and a scholar, sir!!! I know it’s not a ton, but I’m pretty sure I speak for all of us when I say, we really appreciate what you’ve done / are doing!!!
Can u try saving the piston first please?
Also, on the turn on, set the task override policy to Local. If you don’t do that, opening the door would schedule a 5min turn off, but closing the door would “turn on” the already on AC but the 5 min turn off would remain pending… Or enable the cancel on piston state change for the turn off action.







