Perfect, thank you!
Note that " simulated switch" is a binary on/off, like a regular light switch.
Use âmomentary button tileâ or one of the other momentary device types if you want something more like a classic doorbell button where it only goes on at the moment that you activate it, and then returns to the off state on its own.
Both are useful, but they serve different purposes.
Device ID
Also, when choosing a device ID for the virtual switch, you need to be careful not to choose one that a future Z wave switch will want to also use or that future device may not pair correctly to your network. The easiest thing is just to choose a virtual device ID that starts with a letter higher than âH.â I start all of my virtual devices with the V.
Virtual Dimmer
Also, for those who want a virtual dimmer, see the following:
2020 Update
At the time of this writing, the only virtual switch DTH that works with the new V3 app without requiring modification is the âvirtual switch.â None of the momentary options.
You can make a Virtual switch act like a momentary switch by first creating a virtual switch and then adding a separate SmartLighting automation to use the âpower allowanceâ feature and have the virtual switch always turn itself off after one minute.
(On the plus side, this specific DTH can run locally. As of this writing, Other virtual devices will run in the cloud.)
2021 Update
Since groovy will be going away soon, so will groovy virtual switches.
One community member has written a new virtual switch creator Edge Driver for the new platform called VEdge Creator. Since edge drivers themselves are still in Beta, so is this code, but itâs worth following.
Note also that while groovy virtual devices could be used without a SmartThings hub, Edge drivers will require one.
[ST Edge] vEdge Creator: a virtual device generator for end users