[DEPRECATED THREAD] webCoRE design process

I do this at nights. And some weekends.

1 Like

If you open the Chrome console while viewing or editing a piston (F12 in windows, apple+Alt+I I believe on Mac), you can type this in there:

JSON.stringify(scope.parseExpression(‘At {$now} the door is probably {statusOfDoor} for about {round(86400 * ($now - since),2)} seconds’))

results in

{“type”:“expresion”,“items”:[{“type”:“string”,“value”:“At “},{“type”:“expression”,“items”:[{“type”:“variable”,“value”:”$now”}]},{“type”:“string”,“value”:" the door is probably “},{“type”:“expression”,“items”:[{“type”:“variable”,“value”:“statusOfDoor”}]},{“type”:“string”,“value”:” for about “},{“type”:“expression”,“items”:[{“type”:“function”,“name”:“round”,“items”:[{“type”:“expression”,“items”:[{“type”:“integer”,“value”:86400},{“type”:“operator”,“operation”:”*“},{“type”:“expression”,“items”:[{“type”:“variable”,“value”:”$now"},{“type”:“operator”,“operation”:“-”},{“type”:“variable”,“value”:“since”}]}]},{“type”:“expression”,“items”:[{“type”:“integer”,“value”:2}]}]}]},{“type”:“string”,“value”:" seconds"}],“valid”:true}

copy and paste it here then go through the tree. It actually parses it. If anyone wants to parse their own strings, really curios if anyone finds a bug :smiley:

Thank you for all your work, it is incredible.

1 Like

1 more question for you. Will this be setup like regular core with the different types of pistons, latching etc, or is the flow different on this one. Was trying to do a BUT statement, cannot find it.

no piston types anymore. Still have to figure out how to do a but, though it’s not really necessary. You can just keep adding IFs and whatnot.

I figured that was the answer, wanted to make sure.

OK, feeling pretty dumb here. I have the latest verions of CoRE (SE), have enabled OAuth in both apps, got the URL from the log, and can bring up the dashboard. But I can’t seem to get past the authentication screen. I have my hub password written down so I’m pretty darn sure I know what it is, and I’ve tried just about every other password I’ve ever used, but no luck. Somebody? Anybody? Am I doing something stoopid?

This is different, you’d have to create a new one.

I’m assuming you were replying to my question about authenticating. Okay, that’s reasonable. But how?

@chickwebb Did you open WebCore in the ST app and go through the guide to set it up?

A password is created during the setup of the CoRE app. Alternatively, you can go back to the app’s settings and change the password. It’s that password that you need to enter in the dashboard…

I just figured out how to get to the dashboard from my browser, this is awesome. No more tinkering on a cell phone!!!

Adrian,

I recently had a need to change several of my device names and Pistons, however when I went into CoRE SE, I noticed the device names were not refreshed. I went into webCoRE on my Android, went into settings, selected Done and now the device list is refreshed

Wasn’t sure if you were aware

Rick

Not sure how I missed that. Might have been b/c I installed the earlier version that didn’t require authentication and then upgraded. But that definitely did it. Thanks!

Device names don’t update for one reason. Speed. But your devices will work fine, regardless. CoRE forces the update of devices when you open the app. The next dashboard activity will get the updated list. I’ve selected all my 100+ devices and that’s about 90kB of data off of the ST cloud. I am trying to be light on ST as well. Not a big price to pay, right? :wink:

So these two expressions are equivalent:

Do they make sense?

contraption is a variable I defined. It has autocomplete :smiley:

1 Like

Hi @ady624 thanks for doing this and i can’t wait to have all my rules here rather than the app which is now so slow with the amount of pistons i have set up!!

One question and i may have missed it but is there a way to add time constraints to some conditions? Eg If motion was inactive for at least 4 minutes?

Hello. I installed WebCoRE out of curiosity and now decided it is better to wait until it is further along. I have CoRE installed with several pistons and when I go to uninstall WebCoRE it says that all of my pistons will be deleted. That does not mean the ones in CoRE does it?

Got it, thanks!

I get this message when trying to use the same URL from the iphone app for the dashboard. How do I authenticate?

Oops, you are not logged in!

Please open the SmartThings IDE, go to Live Logging, then open the SmartThings CoRE app and look for the dashboard URL in the Live Logging page. You will need to open that link for the first time.