webCoRE piston error java.lang.NullPointerException

I recently moved all my webCoRE pistons from ST the HE. There is one that keeps giving me this error:

This was fully functioning on ST and cannot figure out why I would be having issues on HE.

Any help would be appreciated.

It is a presence automation piston that I use to close my garage door when we leave and also change the location mode.

Is there anything more in the HE logs (should be line numbers in error)

HE console -> Logs

Are you running on built -in or user install of webcore

Are you up to date with latest HE firmware?

The HE logs look very similar

I am running the built in version of webcore.

Yes, I should be on the latest version of HE firmware.

Here is some other information.

Ok, I see what is going on, will look at a fix.

At line 88 in you piston posted above, you have an empty On statement. You should remove that as that is what is causing the issue (and you are not using it).

Sorry I don't understand how to fix this. This worked great on ST and I only did an import of the old working piston. Around line 88 is the other part of the if statement. Does HE webCoRE work differently on HE vs ST?

at line 88-92 , you have an empty on statement. you should delete it. when I imported it was 88

It could be near 182 when editing (you need to turn on under options:)

Screenshot 2023-01-23 at 11.39.12 AM

I understand that it is blank, but that is the other side of the original if statement. Above, I am checking IF either device presence is not present, this is the other part of the IF to check that the 2 devices are present.

Am I still not inside the original on statement?

right below the 2nd highlight, is where the empty on statement is.

My note above shows options in the IDE you need to enable in order to edit it (to remove the empty on statement)

You are not deleting any if statements, just the

  • when true
    On events from

that is empty that I show above

I posted an update that should fix this (without the edit I described, which itself is a bug in your piston). HPM repair would get it if you want to try it out.

Thanks so much.

I was able to get the piston to work. Now I just having the same issues other are with the iOS notifications and HE...

I can test the presence manually in the device via HE, so I know the piston works as I need it. Hopefully the presence issues are also resolved some day.

I need to see some debug logs for the presence driver and the main webCoRE app.

I only have 'control' on the groovy side, but perhaps someone using this can show me some logs so I can see if I can sort it out....

What and how can I provided them?

you can turn on full logging in the main webcore

HE console -> apps -> webCoRE (first item in list)
then settings ->

Done your way out

Then

HE console -> devices -> select your webCoRE presence device

"Enable debugging" and done/save your way out.

They you can show what webCoRE sees as the presence device changes.

HE console -> Logs

and post/screen shot

Just wanted to let you know I have resolved this issue.

Thank you.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.