CoRE - Get peer assistance here with setting up Pistons

Found it, worked, thanks!

Good stuff. I did exactly tye same thing and was pointed in the right direction. :wink:
That is why I remembered!!!

1 Like

bumped below

Iā€™m not sure which ā€œComparisonā€ to use. There is:

  • is inside range (round circle) - where you cannot select ā€œfor at least 20 minutesā€
  • stays inside range (solid circle) - here you can select ā€œfor at least 20 minutesā€

@ady624, can you help with the difference between these 2?
And is there a difference if they need a trigger to start the counter and another trigger after 20 minutes to ā€œcountā€ that the 20 minutes has past?

Appreciate the suggestion, I am just sucking wind on this oneā€¦any further details you can provide? Hereā€™s what Iā€™ve got:

  • Set up a piston that says ā€œcapture forecast to global storeā€ from Accuweather, then wait 5min
  • Trying to set up a piston that can see that forecast and take action on data in it, thatā€™s where Iā€™m stuck

Ah thanks. Issue is I wanted to use that with routine director as a switch wonā€™t appear I believe.

Has anyone else used a custom virtual presence device type that works with core? It will make the setup far cleaner if I can have it update a presence device type.

I think I have this piston down, but maybe someone can optimize it if possible.

I want specific Sonos speakers to tell me when door locks are unlocked. If both my wife and I are awake then I want all four of my speakers to announce and ST send a push notification. But if one of us is in bed then I want to exclude the bedroom sonos. My thought is typically one of us is in bed by 9:30, and whenever the second person is in bed ST mode is then set to night, so I just need to isolate the time period after bed time but before night mode. Will this And-If piston always work?

Perfect. Thanks. Everything you recommended works perfectly. I had to remove the SmartThings Lighting Automation that was causing issues issues. All in all it is doing exactly what I want. Thanks for your help

I was loooking at Maker Channel and IFTTT the other day but wasnā€™t sure what I would use it for. Could you provide details on how to set this up so I can learn how this works? Sorry, I know I am a pain but really trying to learn how this all works.

Fire up IFTTT and start a new recipe:

name it speak, or something simple youā€™ll remember, youā€™ll put this in CoRE

if SMS (make sure it has your phone number setup)

Send IFTTT any SMS from {your number}

then Maker

Action Make a web request

URL: https://graph.api.smartthings.com/api/token/{your token}/smartapps/installations/{your core install}/ifttt/speak

Method: Post

Content Type: application/json

Body: {ā€œmessageā€:{{Message}}}

Save that.

Do a new piston:

Make sure under the If Trigger you select "Import event data on true.

Thatā€™s it, send a text to IFTTTā€™s number that they gave you in the setup of the recipe, and whatever you send comes out of whatever devices youā€™ve setup in the Piston.

Get your URL from the dashboard for CoRE.

3 Likes

i have also found that core doensā€™t update the simulated presence sensor (stock one) as a THEN output.

Did you find another presence device type that works at all?

No problem, Iā€™m glad itā€™s working out for you.

Ok, so ā€“ weā€™ve just gotten this all set up, and have CoRE running several pistons, and all is fantastic, with one exception. There are two of us, and both of us want to have access to the same CoRE, but whenever I try to add a piston, ā€œYou are not authorized to perform the requested operationā€ comes up, and Iā€™m not able to create my own stuff. Iā€™ve tried restarting the app, my phone, logging out and back in, uninstalling and reinstalling the app, and resetting the security tokens, but
Iā€™m still unable to add anything (I can, however, edit previously existing pistons).

Any thoughts here would be hugely appreciated!

I think you have to use ā€œstays inside rangeā€ if you want to use for at least 20 minutes, and the counter starts when the condition (Lux between 100-400) meets.

Have you tried playing with Universal Virtual Device Type (uDTH)? You can use a virtual switch on/off as input and output present/not present.

3 Likes

Make sure to access CoRE from with the SmartApps menu and not from the Marketplace.

Thatā€™s how Iā€™ve been getting in - in fact since he published CoRE it doesnā€™t even show up on MyApps in the marketplace. I can only see it in the Automation > SmartApps menu. I just canā€™t add any pistons.

Hmm and youā€™re able to edit existing pistons. Did you have to readd those pistons after you uninstalled/reinstalled the CoRE app?

Is there documentation somewhere that goes over the basics for CoRE? ex: the logic behind the various piston modes, how often the software evaluates all pistons, etc.

Look hereā€¦http://thingsthataresmart.wiki/index.php?title=CoRE

And this is also of interestā€¦http://thingsthataresmart.wiki/index.php?title=CoREsamples

2 Likes