webCoRE for Hubitat Updates

I do basically the same thing but load a global var (as I use this list elsewhere) with all the devices and "do with @devGlobalVar Turn off" with no wait statement.
And yup, you're in the wrong place :slight_smile:
There is also a webcore forum for this kind of help https://community.webcore.co

It should be in the /dashboard portion of the HE git (note 1 of this thread)

so if you re-clone, it should work (would appreciate feedback if it does, I have not had time to test it there)

1 Like

Just upgraded to the latest version of webcore (Release January 23, 2021). I am now seeing the following message from several different pistons in my logs.

Error calling comparison comp_changes:java.lang.NullPointerException: Cannot set property 'm' on object

Is anyone seeing similar messages in their logs?

there is a fix out for this already, ensure you have latest piston file

I'm getting error message according hubitat live log when I'm trying to run pistons.
"http Response Status: 408 error Message: Remote host closed connection during handshake"

Most of my pistons works but those which are supposed to send commands to server (lan) does not work. Anyone had similar issues and knows how to fix it?

Your scenario is unclear

  • are you trying do http requests to another host and getting this message?

    • what is the URL
    • it sounds like an SSL / certificate issue
  • or is this some other post posting to the HE system?

Logs would be helpful, as well as the piston code.

It sounds like you are using https and the systems cannot match on the security during connection

Hi,

Here's some data. Hope someone understands..
Here's my piston. I'm doing POST request to local server where assistant relay is running.
For example that "push message" part is working but POST to server not. It works without problems with ST webcore.

Here's log from webcore:

28.1.2021 klo 22.01.14 +222ms
+47ms ╔Received event [HubitatHome].wc_async_reply = httpRequest with a delay of 91ms, canQueue: false, calledMyself: true
+51ms ║RunTime initialize > 50 LockT > 1ms > rtDT > 1ms > pistonT > 0ms (first state access 48 48 2)
+53ms ║Runtime (6573 bytes) successfully initialized in 1ms (v0.3.110.20210123_HE)
+56ms ║╔Execution stage started
+64ms ║╚Execution stage complete. (7ms)
+96ms ╚Event processed successfully (95ms)

28.1.2021 klo 22.01.14 +23ms
+2ms ╔Received event [Presence_vswitch].presence = not present with a delay of 29ms, canQueue: true, calledMyself: false
+15ms ║RunTime initialize > 14 LockT > 1ms > rtDT > 1ms > pistonT > 0ms (first state access 12 4 10)
+17ms ║Runtime (6567 bytes) successfully initialized in 1ms (v0.3.110.20210123_HE)
+19ms ║╔Execution stage started
+26ms ║║Comparison (enum) not present changes_to (string) not present = true (1ms)
+28ms ║║Cancelling condition #45's schedules...
+30ms ║║Condition #45 evaluated true (7ms)
+31ms ║║Cancelling condition #26's schedules...
+33ms ║║Condition group #26 evaluated true (state changed) (11ms)
+34ms ║║Cancelling statement #35's schedules...
+61ms ║║Executed virtual command sendPushNotification (22ms)
+68ms ║║Executed virtual command setVariable (3ms)
+79ms ║║Sending asynchttpPost web request to: 192.168.86.30:3000/assistant
+81ms ║║Executed virtual command httpRequest (6ms)
+83ms ║║Requesting a wake up for Thu, Jan 28 2021 @ 10:01:38 PM EET (in 24s)
+90ms ║╚Execution stage complete. (71ms)
+110ms ║Setting up scheduled job for Thu, Jan 28 2021 @ 10:01:38 PM EET (in 24s)
+112ms ╚Event processed successfully (112ms)

28.1.2021 klo 22.01.14 +132ms
+3ms ╔Received event [HubitatHome].wc_async_reply = httpRequest with a delay of 1ms, canQueue: true, calledMyself: false
+7ms ╚Event queued (7ms)

28.1.2021 klo 22.01.07 +666ms
+2ms ╔Received event [Presence_vswitch].presence = present with a delay of 36ms, canQueue: true, calledMyself: false
+28ms ║RunTime initialize > 27 LockT > 1ms > rtDT > 19ms > pistonT > 18ms (first state access 7 4 23)
+31ms ║Runtime (6648 bytes) successfully initialized in 19ms (v0.3.110.20210123_HE)
+32ms ║╔Execution stage started
+40ms ║║Comparison (enum) present changes_to (string) not present = false (0ms)
+42ms ║║Condition #45 evaluated false (6ms)
+44ms ║║Condition group #26 evaluated false (state did not change) (7ms)
+48ms ║╚Execution stage complete. (16ms)
+51ms ╚Event processed successfully (50ms)

28.1.2021 klo 22.00.16 +908ms
+13ms ╔Subscribing to devices...
+16ms ║Using Attribute subscription
+212ms ║Device missing from piston. Loading all from parent (193ms)
+219ms ║Subscribing to Presence_vswitch.presence...
+244ms ╚Finished subscribing (236ms)
+262ms ╔Starting piston... (v0.3.110.20210123_HE)
+264ms ╚Piston successfully started (256ms)

And live log in Hubitat says. Time in log is different but same message every time.

[app:88](http://192.168.86.45/logs#pastapp88)2021-01-29 05:46:47.785 [debug](http://192.168.86.45/installedapp/configure/88)Released Lock and exiting

[app:88](http://192.168.86.45/logs#pastapp88)2021-01-29 05:46:47.782 [debug](http://192.168.86.45/installedapp/configure/88)Exiting

[app:88](http://192.168.86.45/logs#pastapp88)2021-01-29 05:46:47.669 [error](http://192.168.86.45/installedapp/configure/88)░║ http Response Status: 408 error Message: Remote host closed connection during handshake

[app:88](http://192.168.86.45/logs#pastapp88)2021-01-29 05:46:28.130 [debug](http://192.168.86.45/installedapp/configure/88)Released Lock and exiting

[app:88](http://192.168.86.45/logs#pastapp88)2021-01-29 05:30:11.805 [debug](http://192.168.86.45/installedapp/configure/88)Released Lock and exiting

[app:88](http://192.168.86.45/logs#pastapp88)2021-01-29 05:30:11.802 [debug](http://192.168.86.45/installedapp/configure/88)Exiting

[app:88](http://192.168.86.45/logs#pastapp88)2021-01-29 05:30:11.598 [error](http://192.168.86.45/installedapp/configure/88)░║ http Response Status: 408 error Message: Remote host closed connection during handshake

[app:88](http://192.168.86.45/logs#pastapp88)2021-01-29 05:30:00.425 [debug](http://192.168.86.45/installedapp/configure/88)Released Lock and exiting

[app:88](http://192.168.86.45/logs#pastapp88)2021-01-28 22:01:14.346 [debug](http://192.168.86.45/installedapp/configure/88)Released Lock and exiting

so fill in http or https into your url

That did it. There has to be http in url command. Thank you very much!!!

Just out of curiosity....since there have been several updates to both WebCoRE and Hubitat itself since release, has there been any attempts to add LIFX support back into WebCoRE or is there pretty much there no hope for that?

I have 49 LIFX bulbs and used the LIFX support built into the ST version of WebCoRE pretty extensively and native WebCoRE support on the HE version would make my life a lot easier. Lol

Thanks, I must have missed that forum!

Looks like it is still available on the Integrations page (not sure if it works, but...)

@nh.schottfam

I'm having trouble with date conversions. This code should be very simple:

date($now) 

It should return $now with the time set to midnight. But if I type that in to the expression evaluator, it gives me 3AM. Is something using the wrong time zone in that conversion?

should be fixed in latest kit (today).

I did not push version change, so if you use HPM, do a repair on webcore.

I have posted a new kit the puts back in Lifx support into webcore.

I could use someone to try it out as I don't have Lifx devices myself.

It is the normal webcore configuration

  • setup is done in webcore Dashboard -> settings

Calls are the same as defined in webcore manuals. I had to use different internal coding to have asynchttp work on HE.

Also the webcore main server (dashboard.webcore.co) has been updated with the latest fixes (that have been on staging).

Staging.webcore.co is still newer in that it has the dark mode code there.

Should there be two versions (?) in cast iron section or is that as it should be?

yes, it is showing the main webcore (and dashboard version) - these are shared with ST

and it is showing a webcore version on HE.

the formatting is interesting on your phone, as they on a webpage are a single line.

1 Like

I used to see the Engine block with the versions.
Not any more.
Could I have disabled the display of this somehow?
Cannot seem to find anything.
Thanks.

can you show me what you see?

This what I get on mobile and pc.