[DEPRECATED] webCoRE Beta Milestone 2

just for reference

When you edit the piston, click on the name of the piston.
In the window that opens, click on the settings cog.
Here you will see command optimisation.
Turn it off.
This means that whatever state ST thinks the light is, the commands will be sent.
With command optimisation on, if ST and webCoRE think a light is on, it will not send the ON command.

Spot on found it, thanks I’ll give that a go :slight_smile:

@ady624:

I’m getting this error in logs in reference to the hasCommand in the webCoRE Piston Smartapp, not sure if this is an issue or not since I’m not seeing any issues from this error but wanted to report it just incase.

ce984a2b-a2ae-4b9d-96c3-c44e803a769e 9:35:08 PM: trace ║║ Executed virtual command setVariable (4ms)
ce984a2b-a2ae-4b9d-96c3-c44e803a769e 9:35:08 PM: debug ║║ Calculating (integer) 1 + (integer) 1 >> (integer) 2
ce984a2b-a2ae-4b9d-96c3-c44e803a769e 9:35:08 PM: debug ║║ Calculating (integer) 2 - (integer) 1 >> (integer) 1
ce984a2b-a2ae-4b9d-96c3-c44e803a769e 9:35:08 PM: debug ║║ Calculating (integer) 2 - (integer) 1 >> (integer) 1
ce984a2b-a2ae-4b9d-96c3-c44e803a769e 9:35:08 PM: debug ║║ Calculating (string) 65% + (string) 5376 >> (string) 65% 5376
ce984a2b-a2ae-4b9d-96c3-c44e803a769e 9:35:03 PM: error ║║ An error occurred while executing the event: java.lang.NullPointerException: Cannot invoke method hasCommand() on null object @ line 1579
ce984a2b-a2ae-4b9d-96c3-c44e803a769e 9:35:03 PM: debug ║║ Calculating (string) 25 + (string) % >> (string) 25%
ce984a2b-a2ae-4b9d-96c3-c44e803a769e 9:35:03 PM: debug ║║ Calculating (string) 25% + (string) 0 >> (string) 25% 0
ce984a2b-a2ae-4b9d-96c3-c44e803a769e 9:35:03 PM: debug ║║ Calculating (string) 25 + (string) % >> (string) 25%
ce984a2b-a2ae-4b9d-96c3-c44e803a769e 9:35:03 PM: debug ║║ Calculating (integer) 2 + (integer) 1 >> (integer) 3
ce984a2b-a2ae-4b9d-96c3-c44e803a769e 9:35:03 PM: debug ║║ Cancelling statement #119’s schedules…
ce984a2b-a2ae-4b9d-96c3-c44e803a769e 9:35:03 PM: debug ║║ Cancelling statement #206’s schedules…
ce984a2b-a2ae-4b9d-96c3-c44e803a769e 9:35:03 PM: trace ║║ Executed virtual command setTile (2ms)

Here’s the Piston I’m getting this error on:



2 Likes

Hey did you ever figure this out!? Trying to write a simple piston with my BE469 lock specifically when unlocked via keypad. Thought I was making progress till I unlocked manually from inside and it still triggered the event. Didn’t think it would be so complicated! It’s gotta be possible.

I never did get it to work exactly as I wanted. I ended up creating a virtual switch, called “unlocked” or something like that. I set that button to turn on when door was opened with any code. I had a second virtual button called “Contractors”, I set that to turn on with only specific codes. When the door is manually locked I turn off the 1st virtual switch “Unlocked”, but if the contractors switch is also on I do other things, like re-arm my security system.

I use https://community.smartthings.com/t/release-door-lock-code-user-management-create-delete-and-schedule-codes-with-automatic-lock-unlock-custom-user-actions-and-shm-integration

To turn on and off the virtual switches, and WebCore to complete my actions.

1 Like

How do you specify a keypad unlock on webcore though? If you could share? I thought I had the attached setup working, but then discovered the action was still being triggered by manual unlocks.

Guys and Gals,

Most everyone has moved over to the WebCore site. You might have better luck over there with your issues

Here is the link to WebCore
Rick

I was unable to get it to work, so I used my device handler to turn on and off virtual switches. I then used the virtual switches to trigger actions in webcore.

I never went back to try again. As @Toy4Rick mentioned, if we continue this chain, lets do it on the updated thread, :slight_smile:

Maybe I’m misunderstanding, but it sounds like you were able to differentiate between code unlocks and manual unlock…no?

I don’t understand why no one has shared this yet for such a common lock, when @RBoy had an app that is able to do it…

Hi @ady624

Is the AskAlexa integration disabled? I’m able to see my EchoSistant profiles listed under Virtual Devices but the interface is showing

“AskAlexa not installed - please install or open AskAlexa”

and the IDE shows

“askAlexaMacros {}.”

Do you think it may have something to do with the Ask Alexa SmartApp name having a space for it to not think it’s installed?

I can’t seem to see an answer for this but I have a lot of pistons using CoRE right now. If I install WebCoRE will they show up in there or do I have to add them all in manually and delete from CoRE?

You will have to move them all across to webCoRE.
Start with your simple ones and disable the CoRE equivalent until you are happy they are running OK.
Once you get into it I think you will find things easier.
Also if you have lots of similar CoRE pistons, once you have your first webCoRE piston you can duplicate it and then amend it.
Makes things easier.

So I have to manually redo them all in WebCoRE? There isn’t an import feature?:anguished: Is this the forum to ask questions about pistons?

Jane, yes… you will need to manually recreate each piston in Webcore. There is no mechanism for exporting/importing.

Better place for asking Core/WebCore questions is in their new forums…

Sorry but you have to redo them all.

Thanks! I am signing up now!

Be sure to check out their Examples section. Lots of great pistons and a good place to get an idea on what you can accomplish with webCoRE.