CoRE and Piston Rules Engine, first design steps

Can you go and resave that piston? Go to the action tap on that task, make sure all is good, then save your way out?

It’s got to be a smartthings issue. Your app behaves this way if accessed from the Marketplace screen, but acts normally if accessed from the Smartapps option of the hub.

Yeah I see
 There is a “single instance” option in the meta of the app so I guess it’s trying to open the installed instance, but since all children and the parent are the same app, it opens one of them
 Randomly maybe
 But if I remove that single instance, then you would be installing duplicates. The proper way is to access it from the Smart Apps menu, not the Marketplace, I guess

Already on the latest
 Doesn’t do anything but change the camera icon brown

Disable popup blocker?

Anyone else just get an error when they try to view the dashboard?

Anyone know why this would only stay on for a minute and go off. I have tried from 100 to 60000. I would assume ms is millisecondd

Here is the log.

SmarThings doesn’t have a popup blocker?

You need to enable OAuth in the IDE

I think Android doesn’t open the link in the tablet’s browser even if I asked for external. Grab the link in the logs and open it in the browser instead. Also bookmark it for fast access

Because 60000ms is one minute. Instead of turn off (delayed), add a Wait x minutes, then Turn off. This way, you can break that 1 minute barrier.

I tried 600000 but would not accept

The (delayed) tasks are more precise and designed to work for times below 1 minute. Unless you need to blink a light or keep it on for a few seconds, I recommend using three tasks like this:

Turn on
Wait 5 minutes
Turn off

You will find the Wait task down the list.

It should be able to open it in the internal SmartThings browser. Maybe @625alex or @tgauchat may have some insight, as the SmartTiles app has a preview-with-internal-browser and also a view URL option to capture the link without having to dig in the logs.

Just hadn’t had time but will make the image display in an internal div so it can be copied. As for the copy URL, I can do it in the dashboard, easy, via clipboard API

PS i just found out this morning that Android does not open the browser, it does it “internally”. IOS opens it in Safari when I use style: “external”.

Im Trying to have a lifx lamp do a 20 second color cycle at sunset
we’ll see what happens!

1 Like

@eric182, note that the wait times conveniently add up to the previous ones, IF used within the same action. You need Wait 5 seconds all around. No need for the progression, 10, 15, 20


UPDATE: Actually, looking at it, you got it all wrong. Wait tasks only affect tasks following it within the same action. You only need one action:

Using Table Lamp...
 â–ș Set color to "Random"
 â–ș Wait 5 seconds
 â–ș Set color to "Random"
 â–ș Wait 5 seconds
 â–ș Set color to "Random"
 â–ș Wait 5 seconds
 â–ș Set color to "Random"
 â–ș Wait 5 seconds
 â–ș Turn off

Also, shouldn’t the last task be “Turn off”?

Keep the first action and just keep adding tasks to it
 Remove all other actions.

1 Like

Thanks, I’ll figure this one after work. String work ady!

1 Like

Also, the last action, which is turn on reset table white is a virtual switch that turns the light back to plain white and then off.

Okay, because it’s kind of counter intuitive, you’re asking it to turn on
 :slight_smile: you can always set the color to white and then turn off too. But do put all tasks in the same action please. It’s easier to comprehend and less UI navigation too