I have been enjoying the flexibility in using WebCore Pistons and I’m stumped on something that doesn’t at least seem obvious to me at this point. I would like to trigger a piston from the Smartthings app from like a virtual switch. The use case here is to run a piston that sets my exterior lights based on the press of a button on a z-wave remote. Pointers on how to create a virtual button that could be seen in WebCore would be greatly appreciated.
@n8xja, I have quite a few of these. I use a smart app called Alexa Helper to create the virtual buttons. Then in the piston I use an if name of virtual button switch changes then…
Goto Marketplace / SmartApps in the ST Classic app under More and scroll to the bottom and you will see Virtual Device Creator. SmartThings added this SmartApp a couple months ago
As of right now it lets you create a Virtual Switch or a Virtual Dimmer Switch (they are discussing on adding more types later), but that gets you exactly what you need and it’s an ST created SmartApp.
Also: Make sure you select your Hub when creating the device. This will allow the Virtual switch to execute locally. The Virtual Switches are new for this very reason.
Other SmartApps will create using “Simulated Switch” which does not and cannot run locally. Those other SmartApps will need to be updated to include these new devices and they will also need to be updated to include the Hub Name (not a required field when creating a device).
I understand the need for a virtual switch, but why if your using a physical switch to trigger the event. Can’t you just use the button press on the z-wave remote to trigger your Webcore piston?
The remote is not always near by when I wanted the piston triggered.
Thank you @WB70 - I did not know that was in there and it’ll get put to good use!
How would you trigger it then? I’m just a little confused…
Also, I hope SmartThings expand their VS Creator App…I still use this one which creates 4 different kinds of switches including a button.
So in Webcore the if portion is if “virtual switch or remote button”. Seems pretty simple once you create the virtual switch, either through IDE or using the smart app.