SmartThings Community

CoRE and Piston Rules Engine, first design steps

core

#3489

Yes, I will. I just so paranoid sometimes.:sweat_smile:

Thanks. I don’t think I can live one minute without CoRE now :grin:


#3490

The SmartThings multipurpose sensor can. It’s what people use for the mood cube, for example because it can detect its own orientation in space when rotated about.


#3491

Also, FYI I was on CoRE .83xx and updated to the newest code from github (.86xx), and ended up losing all my pistons. Basically, as soon as I updated from github I noticed some of my automations weren’t firing. I logged into the SmartThings app and CoRE wasn’t in the installed apps section, but was in my apps to install from scratch. I installed it from scratch and none of my pistons made it :frowning:


(Rick S) #3492

Adrian,

I seem to recall reading that you fixed the Dashboard ordering of things to match the Piston. Tonight I am still seeing some things out of order

In my Piston, I have Using Light turn on, set level 60%
In the Dashboard, it show the set level first


Am I not remembering correctly?
Thanks, Rick


(Jason "The Enabler" as deemed so by @Smart) #3493

Hey Rick,
You probably want the Set Level to be first. If you have the light turn on and the set level, your lights may come on at 100% and then change to 30%… if “set level” is first then the light comes on at the level you want.


(Jason "The Enabler" as deemed so by @Smart) #3494

Fellow CoRE Enthusiast!

Introducing a new thread, just for you!!!

Enjoy!


( I hate Mondays) #3495

I am working on adding “when false” actions and have done changes to the endpoint response, but not the dashboard yet.


( I hate Mondays) #3496

Sorry to hear that. Do you use copy/paste to upgrade?! You are the first to report that. There was someone else who had an encoding issue, but recopied and repasted and fixed it.


( I hate Mondays) #3497

The sensor outputs an attribute. But I don’t know of any device that can take a command. i.e. have CoRE make the device move to a certain xyz position.


#3498

Didn’t use copy paste, did github upgrade. Wasn’t a huge deal to put it all back together, and it let me rethink some of my Pistons.


#3499

I was thinking of using the three axis input as an if, to trigger commands.

So if orientation of sensor = value 1, then do action.

The goal would be to replace the outdated, buggy mood cube smart app with a core piston.


( I hate Mondays) #3500

Yes, as input, but someone was somehow pairing the xyz with capture/restore, which prompted my question about any device being able to take an xyz parameter in any command… I am thinking maybe 360 cameras?


(Rick S) #3501

Thanks Jason for this. While I have not seen the behavior you indicate, I can certainly see your point.

Rick


( I hate Mondays) #3502

@blebson I got the contacts working. Turns out I had a contact that only had a last name and a phone number. This was making the “contact” input take forever to display. Not timeout after 20s, not even after 40s, just wait indefinitely. When I opened Joe it said he was missing the first name (whoaaaat?) as Joe appeared to be the last name (Doe was gone). I also had to pick phone type and country. After that I was able to use the “contact” input. @slagle

I also found out that the contacts are saved in a list of Contact wrappers, meaning any attempt to save those to state failed silently. Error displaying page in the UI, no error in the logs. Same happens if you try to save an event or a device in the state. Fixed that too and now I am able to select contacts. I can’t really find out how to enable Push for those, like it shows in the documentation. Seems to allow SMS only, and I can’t find see the SMS and Push checkboxes like in the documentation. Also, I confirm the [event: false] not working.


(Ben Lebson) #3503

You get push if you add an email that is already linked to your SmartThings Account (or is authorized to that smartthings account).


#3504

The scheduled OFF kicked in tonight so I went into the IDE to check if it rescheduled for tomorrow, Scheduled Jobs was empty. I went back into the piston and hit Done to see what it will schedule and this is the entry in Scheduled Jobs. Only one scheduled job even when first initialized.


( I hate Mondays) #3505

So you had to tap Done for it to schedule one job? Pistons only schedule one job at any time. This is what allows you unlimited time conditions/triggers, beating the 4 jobs limit. It may also schedule a second “safety net” job while running. Could you please have the IDE open when it next runs and pm the logs? Make sure to enable debug for that piston. Thank you.


( I hate Mondays) #3506

You are right. If I add an authorized email, it shows the PUSH option.

v0.0.087.20160612 - Alpha test version - Send notifications to contacts is now enabled

I am also trying to assume next minute if second is 57 or up, to prevent issues with the ST job scheduler being early


( I hate Mondays) #3507

v0.0.088.20160612 - Alpha test version - Added the ability to initialize/change variables from within the UI


( I hate Mondays) #3508

v0.0.089.20160612 - Alpha test version - Added the ability to delete variables from within the UI