[OBSOLETE: [BETA MILESTONE 2] CoRE (Community's own Rules Engine)

Look in your logs while you open the Dashboard, it will complain about specific pistons. Try to then address those pistons individually.

Are you referring to the Dashboard? If so, did you push the Reset Security Token? If not, DON’T do it! I ended up having to reinstall due to a deficiency with ST handling of tokens.

‎I get this error over and over

8‎:‎24‎:‎05‎ ‎PM: error java.lang.NullPointerException: Cannot get property ‘l’ on null object @ line 2605

I looked under my location —> Installed SmartApps–Core
I see my pistons I created there. I also see one labeled CoRE that I didn’t create and it says created yesterday afternoon around 5pm during the issues Smartthings was having. There is nothing inside it it’s blank. I assume this is my problem. I don’t remember seeing it there before. How do I go about deleting it? Since it doesn’t show up in my mobile app?

Or is this supposed to be there and I just don’t remember? Which is a strong possibility since I do not go into this part of the IDE very often,

I say delete the empty Core item VERY carefully.

  1. Be sure it wasn’t a piston you liked, that is just empty now. I’d try going into the Smartapp and try editing the empty one. In fact you could skip my instructions below if you are able to remove it here at this step by “remove” at the bottom. Remember though not to remove the parent Core app, only child pistons.
  2. When following my crude instructions (there are better if you search the community), make sure you are only trying to delete an child, not a parent app. You can tell by the structure. If nervous, create a dummy piston with a silly name, and then uninstall it first.

Instructions:

  1. Go to IDE
  2. Click My Locations
  3. Click “List Smartapps” at bottom.
  4. Click “edit” at the top.
  5. Scroll down till you see your favorite piston, don’t touch.
  6. Look for the empty one, be sure it’s not the parent or your favorites, uninstall it.

In the below, I would not touch “CoRE”, but I would be fine uninstalling Home Theater button 5 as I don’t use it yet. :slight_smile:

If this all makes you nervous, call support. I believe they’d help you delete a child app.

1 Like

Done! Thank you very much. I looked right past the big EDIT at the top.
Much appreciated.

Again I learn even more from the very knowledgeable people on this Forum!!!

1 Like

Nervous??? What am I going to do BREAK IT???

Sorry I just saw that part after I posted. What’s the worse that could happen? Start all over?

Yeah, some people have complicated pistons, and would go crazy if they lost them. I’ve never lost one, but if I did, it would be an opportunity to make it better. Did that with my hub move v1 to v2, was best thing I did.

3 Likes

With Smart Rules, I can make a Quick Tap rule.
A Quick Tap is how you get the icon on the widget section on the iPhone.

Is there a way to execute rules in CoRe with widgets?

I have never played with ST widgets before. Thinking about it, if you can link a routine widget to a CoRE DO piston, then my answer would be yes :slight_smile:

@ady624 is this possible?

What’s different about a DO piston that I can’t change an existing one to it? I have a few that are basically just DO’s but I can’t make it “official.”

I was curious when I posted that earlier. I was able to create a Piston that subscribes to Routine execution, I was able to add whatever tasks I wanted or execute a DO piston.

DO pistons do not have an IF. So if you added any condition, buh-bye DO.

You can’t get a DO piston to execute when a routine is run, DO pistons can only be executed by other pistons. Why DO and not Basic? IF Routine X executed, THEN do this…

1 Like

I can add widgets and display them in the dashboard - then you can use them as triggers for pistons - that’s a very good idea, actually…

6 Likes

Can someone tell me how to make a “DO” piston real quick - I don’t see it anywhere.

When you start a new piston it’s the top option.

On Android, I’d do this using Tasker and the CORE IFTTT trigger-by-URL feature. Either that, or via sharptools and a virtual switch.

My pistons had been running pretty reliably so I haven’t been paying attention. But I did notice today that my living room lights don’t seem like the temperature had been changing lately. I have a time based piston to adjust the temperature throughout the day. Opened the piston and it was empty… nothing there. Never happened before!

I scrolled down and hit rebuild, and wham! It was back in all of its glory, barely any effort on my end.

So yeah, that’s really cool! Thanks @ady624 !!

3 Likes

When trying to access the dashboard I only get invalid token. Any ideas? Was working before

Update: Found the “reset security token” in the settings, this fixed it

v0.2.148.20160902 - Beta M2 - Added instructions for removing dashboard taps. Thank you @dseg for the Tap idea.