[DEPRECATED] webCoRE Beta Milestone 2

Still puzzled with dates.
I changed a DTH to return a date attribute. which contains the date 2017/07/28 12:30:00 PM (which is JULY)

attribute "rinkeOpened", "date"

Which nicely gets returned, as you can see as a warning in the log file.
But as soon as i compare or do something with it (assign it to a variable), it seems to be today.
Also my IF statement doesn’t get caught, eventhough the date is clearly after 2017-6-29

Here is the log:
13:16:25: info ║ rinkeOpened variable aqara2: Thu, Jun 29 2017
13:16:25: info ║ rinkeOpened aqara2: Fri Jul 28 12:30:00 UTC 2017
13:16:25: info ║ LastOpened with formatDateTime aqara2: Jun 29, 2017 12:00:00 AM
13:16:25: info ║ LastOpened with datetime aqara2: Thu, Jun 29 2017 @ 12:00:00 AM CEST
13:16:25: warn ║ Fri Jul 28 12:30:00 UTC 2017

I also tried to return a formatted string, but that also gave me today’s date.
I must be doing something wrong…
Any thoughts?

I’m in the same boat as well

v0.2.0cc will address that issue, when I can publish again. Fixed the issue last night but could not publish - tried again just now (lunch break) and it doesn’t. I guess it will have to be tonight, ST said they’d fix the github publishing today.

2 Likes

@ady624, I mentioned this in another post a while back. It seemed to be fixed, but upon further testing, it is not. Using a Chromebook, I cannot get the browser authentication to stick. Every time I even refresh the browser, I have to re-authenticate.

Now I am starting to see the same issue on my Pixel phone. I am wondering if Google is changing some security in their browsers where your method of authentication will not work? Both devices are on their default security settings, I haven’t done anything like prevent cookies or anything.

I’m not having issues with any other websites at all.

Thanks Ady, you rock!

Orientation doesn’t seem to work for me. I tried two different pistons, neither does anything.

A test piston that just writes the orientation to the piston state - the logs show the threeAxis events, but the piston state never changes:


6/29/2017, 5:45:13 AM +295ms
+2ms ╔Received event [Office Desk Controller].threeAxis = -1015,10,-8 with a delay of 1220ms
+191ms ║RunTime Analysis CS > 24ms > PS > 48ms > PE > 118ms > CE
+202ms ║Runtime (32324 bytes) successfully initialized in 48ms (v0.2.0cb.20170626) (199ms)
+203ms ║╔Execution stage started
+215ms ║╚Execution stage complete. (12ms)
+223ms ╚Event processed successfully (222ms)
6/29/2017, 5:45:12 AM +301ms
+2ms ╔Received event [Office Desk Controller].threeAxis = -1014,13,-8 with a delay of 1230ms
+260ms ║RunTime Analysis CS > 43ms > PS > 70ms > PE > 146ms > CE
+269ms ║Runtime (32324 bytes) successfully initialized in 70ms (v0.2.0cb.20170626) (266ms)
+271ms ║╔Execution stage started
+285ms ║╚Execution stage complete. (14ms)
+293ms ╚Event processed successfully (292ms)

And another piston:

6/29/2017, 5:45:13 AM +311ms
+1ms 	╔Received event [Office Desk Controller].threeAxis = -1015,10,-8 with a delay of 1235ms
+242ms 	║RunTime Analysis CS > 19ms > PS > 66ms > PE > 157ms > CE
+251ms 	║Runtime (36777 bytes) successfully initialized in 66ms (v0.2.0cb.20170626) (248ms)
+252ms 	║╔Execution stage started
+278ms 	║║Condition #2 evaluated false (15ms)
+287ms 	║║Condition #5 evaluated false (7ms)
+297ms 	║║Condition #9 evaluated false (8ms)
+307ms 	║║Condition #10 evaluated false (9ms)
+320ms 	║║Condition #11 evaluated false (11ms)
+329ms 	║║Condition #12 evaluated false (7ms)
+330ms 	║║Condition group #1 evaluated false (state did not change) (69ms)
+334ms 	║╚Execution stage complete. (83ms)
+472ms 	╚Event processed successfully (472ms)
6/29/2017, 5:45:12 AM +305ms
+2ms 	╔Received event [Office Desk Controller].threeAxis = -1014,13,-8 with a delay of 1234ms
+244ms 	║RunTime Analysis CS > 25ms > PS > 55ms > PE > 163ms > CE
+254ms 	║Runtime (36777 bytes) successfully initialized in 55ms (v0.2.0cb.20170626) (250ms)
+256ms 	║╔Execution stage started
+278ms 	║║Condition #2 evaluated false (10ms)
+289ms 	║║Condition #5 evaluated false (9ms)
+299ms 	║║Condition #9 evaluated false (8ms)
+310ms 	║║Condition #10 evaluated false (10ms)
+320ms 	║║Condition #11 evaluated false (8ms)
+329ms 	║║Condition #12 evaluated false (8ms)
+331ms 	║║Condition group #1 evaluated false (state did not change) (63ms)
+335ms 	║╚Execution stage complete. (79ms)
+342ms 	╚Event processed successfully (342ms)
1 Like

anyone notice something funny going on with the sunrise/sunset presets? Just updated to the lastest version and my sunrise/sunset presets are now set for 4 hours later than actual sunrise/sunset times…can someone take a look?

example: sunrise here is 5 am, but sunrise preset says schedule is set to wakeup at 9 am, same with sunset of 8 pm, sunset preset is set to wakeup at 12 am

Same here. Sunset is 8:57pm but webcore is saying 12:57am @ady624

Fixed in 0.2.0ce, sorry about that

v0.2.0ce.20170629 - BETA M2 - Fix for broken time scheduling and device variables

3 Likes

Thanks. The earth actually stopped spinning. The sun stopped setting. But with the update, the sun has began to set again.

ha ha ha, thanks - I’ve made some fixes to time, datetime(string) was not working. I’ve also added typed lists - but I’ll describe them more later. On to build something shiny…

Is it like this typed list?

Carrots
Milk
Radishes
Coffee
Worchestshire sauce
Beer
Marshmallows

Yeah, only yours seems to be printed, not typed.

I can’t seem to get the update to show in the mobile app, no matter what. I had manually installed the 01.0b7 version, but pasting in the new 0.2.x code and saving and publishing wasn’t doing anything. I used the remove option in the WebCoRE smart app, deleted the apps in the IDE, redid them as github installs, no luck. So I uninstalled and reinstalled the Android app, still no luck - the WebCoRE app under My Apps stubbornly still says ''Tap here to install webCoRE v0.1.0b7" and if I go ahead and do it, once the web interface launches in the browser, it complains about me running the old version and needing to upgrade. Is there any way to make the mobile app completely forget about the old version of the smart app?

Make sure you are doing all this on the right shard. Go to ide.smartthings.com, login, go to Locations, click on the smartapps link of your location - that should put you on the right shard. The url may change, go to the devices tab and ensure your devices are listed. If so, make note of the subdomain you are on. For some it is graph.api. for some it has a na-02 or na-04 or eu-west etc in it

Is there a new time issue? I have a simple piston that turns off a patio light 15 before sunrise everyday (have a family member who loves to turn it on early in the morning and leave it on all day). This morning the counter at 9am is showing 2 hours until next execution. It’s been okay before now.

I do find the Dashboard times sometimes are off but a refresh fixes it. That is not working this time.

I had to move to a new hub and created a new location for the new hub. I re-created my pistons from backup-codes for the new hub.
I, however, noticed that in the IDE, webCoRE is shown as linked to my previous location.


webCoRE is the only smart app showing as linked to a Location. With all the other smart apps, the “location” column is empy.
At some stage, I’ll be deleting my old location, and I’m worried that deleting that, will delete my webCoRE pistons.
How do I move the webCoRE installation to the new location?

Something weird just happened.
My light just went on, which should happen 2 hours later.
Something is wrong with interpreting time, UTC -> CEST in my case.
Or something happened with my HUB… (In the log, time is correct)

That’s what I’m wondering and why I posted a little further up.

1 Like

I’ve had to reauthenticate the same mobile chrome browser twice in the last 24 hours.