I tried your updated driver and “show all” is working. Now it shows 26 virtual devices and 2 are shown as unknown. I deleted 1 unknown switch that I was not using, and I will fix the other one tomorrow. I have been using both yours and taustins virtual devices, so I might have tried to switch drivers at some point.
Thanks again for the drivers and taking the time to fix them when I break them.
I’m finally diving into this Edge community and enrolled my Hub with this driver. I created a vSwitch device, and it set off my STHM because the vSwitch (not vContact) is seen as a contact device in the STHM, and even Alexa shows the vSwitch has contact capabilities as well even thought the SmartThings vSwitch device page only shows it as a switch with no Open/Close contact features. Is this by design, or a bug???
Hidden contact capability allows vSwitch to be used as a trigger in Alexa routines. Regular switches can not be used in “When this happen” part of the routine, only in action. So the only purpose of contact capability inside vSwitch is to workaround this Alexa’s limitation. It seems there is little to no benefit to show it in the device detailed view, hence it is hidden
It will be a deliberate design for use with Alexa, but as you have discovered the price you pay for that is that you can no longer let STHM default to using all your contact sensors.
The mobile app can also show a status tile when contact sensors are open so that would also be something to consider.
Generally speaking, adding stock capabilities to devices has costs as well as benefits. The costs can be the mild inconvenience of having to choose from irrelevant devices in lists, extra events flying around and potentially getting in the way, unwanted notifications etc etc. Often the cost is worth it.
For bulbs I have entered wattage value for all bulbs on the same load.
For plugs I have entered wattage of device that is plugged in (humidifier, heater, fan, etc.)
For hvac I have automation that changes Wattage to one when furnace is used and different wattage when a/c is used.
Remember that Webcore itself, like all other custom groovy smart apps that run in the Samsung hosted groovy cloud, will be going away once the transition to edge is complete. So you may want to reconsider a design that relies on a combination of Webcore and edge drivers and start looking for other ways to do a similar automation.
Webcore has its own forum, you can check there to see what people are planning to do in the future.
Hi Guys… First of all thanks for developing this! I’ve been using it to have Google home talk to SmartThings triggering a contact sensor to talk to Alexa, which uses a routine to trigger a Tuya device. It’s been working AWESOME! I’ve created a second location “WORK” to control a Tuya Device at my office. I have not been able to create a virtual contact sensor in the second location and you can’t seem to move devices between locations that I can find (I just googled it again and it seems you can’t move Non Samsung devices ). Anyway, is there anyway to create the vDevice in a second location?
If you don’t have a hub at your second location (work) you can create multiple locations (home & work) in the Tuya app. When you run the ST - Tuya integration (add devices in ST) it will bring all the Tuya locations into 1 ST location. Then you could just create a separate room for work.
This won’t work if you want to keep the ST locations separate.
I was looking at this issue and tried a couple of things.
First I tried to use visible condition to see if it can hide the sensor from STHM. Unfortunately, it didn’t work
Next, I tried @JDRoberts 's idea to replace a sensor with a lock. Unfortunately, when Alexa sees lock it ignores switch capability. Further, it does not allow unlocking locks, so the switch can not be toggled.
I can add an additional option to create a new virtual thing type that would create a simple switch without sensor. However, this would mean that you will need to create a new device and manually migrate your automation.
Finally, I can add a new option to switch preferences, that allow you to change device profile. It is currently used to change vSwitch icons, but it can be used as well to load a profile without sensor.
There pros and cons for both 3 and 4. I’m not sure what would be the best solution.
Do you have any preferences?
I added the ability to select device profile to vMomentary. You can find it in settings.
In addition, I added a “simple switch” profile to vSwitch.
This way there is no need to delete and recreate the device, so all automations should keep working