[ST Edge] vEdge Creator: a virtual device generator for end users

Here is an Edge driver that will enable end-users to create virtual devices that run locally on-hub.

UPDATED JULY 2023

Features:

  • Supports the following virtual device types:
A/C, air quality, alarm, Alexa switch, battery, CO2 level, contact, door, energy, fan, garage door, illuminance, Level/dimmer-only, lock, light (including RGBW),  momentary button/doorbell,
motion, panic, presence, refrigerator, smoke detector, sound pressure, sound sensor, switch, switch level/dimmer, temp/humidity, TV, thermostat, video camera, water sensor, window shade
  • Create any number of virtual devices
  • Easy and fast to use: No coding or CLI required
  • Enables you to create 100% local automations with virtual devices
  • See how many devices you’ve created of a given type (inventory)
  • Devices include additional controls and features beyond what is available through CLI-created virtual devices
  • Several virtual device types include a switch that mirrors controls - useful for Alexa triggers
  • Several virtual devices types include custom controls to set device states
  • Ability to select dashboard icon for select devices (e.g., switch, contact, motion)
  • Momentary button includes both switch and contact, plus preference settings to control on/off/revert behavior, and delay value
  • Motion includes optional auto-revert back to inactive after given delay value
  • Shade device includes hidden contactSensor for triggering Alexa routines

Note for those wanting to trigger Alexa or have Alexa trigger SmartThings: Use the AlexaSwitch device, with which you can create a linked contact device from the device Settings screen, which can be used for reliable Alexa triggering. (The former method of using a combined switch+contact device seems to no longer work reliably). Icon preferences can also be chosen in device Settings. For more information see this post. In summary: use the linked contact device to trigger Alexa routines ('when this happens…'). Control the contact state with the linked switch. You can use the switch in Alexa routine ‘actions’.

  • I have an alternate driver option available for creating Alexa triggers that uses a different approach. See this post for details.

Known issues

  • Alex integrations: Alexa no longer seems to like devices with combo devices (e.g. switch+contact), so use the AlexaSwitch device type to create a linked contact device for more reliable Alexa triggering. See Note for those wanting to trigger Alexa… above.

More help
@Buds_Smart_Home has done an instructional video on virtual switches that references this driver (February 2024) that is quite helpful.


I’m happy to expand the list of virtual device types supported based on community needs.

Please leave your feedback here!


Instructions:

  1. Use this channel invitation link to load the driver to your hub: Samsung account
    Enroll your hub, then display available drivers and choose Virtual Devices V2

  2. Once the driver has been installed to your hub, go to your mobile app and do an Add device / Scan for nearby devices. This will result in the creation of a new device called vEdge Creator V2.94 to be found in the room where your SmartThings hub device is located.

  3. Open the new creator device to the device Controls screen. Set the quantity of devices you want to create of a given type, then select the device type and your device(s) will be created in the room where your SmartThings hub device is located…

Upgrading from prior versions:

  • If the existing creator device is not working with the updated driver, the creator device can be deleted and recreated without affecting existing virtual devices. Ensure the latest driver is installed to your hub by checking the driver version. Once the updated driver is on your hub, you can delete the existing creator device, then perform an Add device / Scan for nearby devices, and a new creator device will be created.

Current Driver Version as of 8/1/23: ** 2023-08-01T15:09:45.521809442**


If you have any problems, it would be helpful to get a log output, but for that you will need the CLI:

smartthings edge:drivers:installed
smartthings edge:drivers:logcat <driverID> --hub-address=<hub ip addr>
64 Likes
Announcement | SmartThings Edge for Devices and Automations
FAQ: Alexa simulated devices and others on the new platform?
How Create a Virtual Device without the IDE?
Mobile Presence Stopped working (Android)
Samrtphone as presence sensor
[ST Edge] Virtual Things Edge Driver
Mirror Aeotec temerature
Changing Status of Life360 Presence Sensor Manually
Use Google Home Speakers as Smartthings Audio Notification Speakers
Virtual Thermostat with Device in the new platform
[ST Edge] Web Requestor: a driver to issue local POST and GET HTTP requests
Getting Wind Speed from Web Weather Service
[ST Edge] Virtual Energy/Power Meter
Virtual switch option under Labs in the ST app
Placeholder Smartphone not show change position in the IDE
Logitech Harmony Elite + Broadlink RM Pro + SmartThings + RF device integration
How can I set virtual presence sensor with a routine?
SmartThings momentary push switch
[EDGE DEVICE] Simple Harmony Bridge **Alpha Testing**
Virtual Devices Beyond Simple On/Off?
From DTH to Edge Migration tips or tricks?
How do i make a local virtual switch?
Lighting Groups
VIRTUAL DEVICES V2: "Hub does not support edge drivers"
Wyze Cam as motion sensor HELP
[OBSOLETE] New Virtual Thermostat With Device
The End of Groovy Has Arrived
All my Simulated Switches are offline and not working
All my Simulated Switches are offline and not working
Changing the status of an phone presence sensor manually
[RELEASE] Zooz MultiRelay (ZEN16)
The End of Groovy Has Arrived
The End of Groovy Has Arrived
Any momentary off buttons in the new Edge world?
AEON Power Strip Binding just stopped working (presumably because groovy)
How can it be, everytime I want to make a routine, something seemingly basic isn't supported
How is mobile presence still so broken?
Virtual switches a bit broken? (November 2024)
Simulated Alexa Switches Status after Dec 2022
Location Modes not taking Effect on Routines
Virtual Fire Detector
[ST EDGE] Z-Wave Lock PH
Groovy SmartApp Shutdown
Unable to Add Tuya Compatible WiFi PIR Device in SmartThings
Anyone Use EZVIZ Wi-Fi Smart Plugs (T30)?
Setting webCore Variable from Virtual Thermostat Setpoint
Basic Routine behavior appears to be unusual
Making LED downlights Smart (UK)
Life after the IDE: Questions and Answers
Hourly Automation Timer? (2022)
Vacation Lighting Alternatives?
iPhone presence sensor not working anymore
Virtual switches are not showing up in new app.
Edgebridge
Mirror Device Behavior in Routines Running Locally
iPhone Presence no longer working
Alternative iOS presence?
[Edge] Driver for Aqara Cube
How to execute a scene from a rule?
[OBSOLETE] TaHoma® by Somfy
SmartThings API Browser+ ... Now Available to All
Smartthings Alexa
General Migration from ST DTH to ST Edge Drivers
Voice command to trigger SmartThings fan speed controls
Migrating to Ring Alarm
Relative AND fixed timing: sunset to fixed time
Start Hoover after I’ve been away for 30 minutes?
Presence sensor replacement
Smartthings / Life360 Connect stopped working (11 Jan 2023)
Presence in 2023, including multiple members and multiple locations
[ST Edge] Driver for Ring Keypad 2nd Gen
Reminder for an open garage door?
Home Monitor Alarm as condition to trigger and Alexa announcement?
Life360 Connect (post Groovy)?
[ST Edge] Personal Tuya Devices - Generic EF00 Device
Post Requests for Zwave Edge Drivers Here (community-created)
Share more info on integrations
SmartThings API Browser+ ... Now Available to All
The End of Groovy Has Arrived
[ST Edge] ONVIF-compliant IP Camera Motion Detection & Video Streaming - Testers Wanted!
Makeshift emergency button
iPhone as presence sensor?
Shout out to the GOAT
Triggering LIFX Scenes from ST?
Revisiting making old smoke alarms smart
The End of Groovy Has Arrived
What happens to virtual devices created on Groovy IDE after its phase-out?
SmartThings Rest API using Tasker
K. I want to make a wake up device that uses SmartThings
Nest protect smoke alarm
[~…duplicate thread]
Post Requests for Zwave Edge Drivers Here (community-created)
Driver Migration How To?
Post Requests for Zigbee Edge Drivers Here (community-created)
Post Requests for Zigbee Edge Drivers Here (community-created)
Geofencing for ios — keep app open?
New app Virtual switch
Scenes and Routines aren't changing modes
Looking for a virtual device sending constant/periodic update?
V2 Hub with firmware 043, but no "drivers" option in the app (August 2022)
My Silly Routine I Tried to Build in the SmartThings iOS App
SmartThings API Browser+ ... Now Available to All
[ST Edge] Driver for SONOFF SNZB-02
Post Requests for Zigbee Edge Drivers Here (community-created)
[ST Edge] ONVIF-compliant IP Camera Motion Detection & Video Streaming - Testers Wanted!
Some devices suddenly gone offline yesterday. And our presence sense virtual switches disappeared
Life after the IDE: Questions and Answers
How do I detect that my iPhone is no longer at home?
How to enable "Play Message on Speaker" as an Action for a Routine
[EDGE] PurpleAir Air Quality Edge Driver
[EDGE] PurpleAir Air Quality Edge Driver
Mobile Presence sensors no longer working
Smartthings Android app ( update 1.8.01.22 ) May 10 2023
[Release] JSmartApp - iOS SmartThings client
T austin virtual presence switch
iOS presence not working (august 2023)
Announcement | Changes to our Legacy SmartThings Platform
[EDGE DEVICE] Simple Harmony Bridge **Alpha Testing**
Post Requests for Zwave Edge Drivers Here (community-created)
Integrating Swann Security Motion Sensors (DVR) through IFTTT
FAQ: Can I trigger an Echo Action without Speaking to It?
How do I create my 2nd virtual Echo switch
My STHM is a mess
FEIT Wifi outlets driven by SmartThings
[OBSOLETE ] Virtual Presence Sensor
(EDGE Driver-Mc): Z-Wave Switch and Child Mc. Added Inovelli Gen1 Dimmers (NZW31) and Gen1 Switch (NZW30)
Error When Trying to Add Virtual Device
.((duplicate))
(EDGE Driver-Mc): Zigbee Drivers for Motion, Open/Close, Moisture, Smoke-Co Sensors and others Devices
Manual override to disable automations based on physically adjusting a switch?
(EDGE Driver-Mc): Z-Wave Edge Drivers and others with FIBARO devices:
A simple guide to move Sonoff / Tasmota / http devices to Edge driver (Free)
%device% tag in the new ST app?
Recommendations for local virtual switches?
Scene issue
Routine trigger when I leave location
Combining overlapping motion sensors to avoid false alarms?
Is Webcore still supported "allowed" to work by Samsung Smartthings in the new app?
Is Webcore still supported "allowed" to work by Samsung Smartthings in the new app?
Timer capability
Dome Water Valve no longer works with Google, Alexa and Home Assistant after firmware update to 047.00010
(EDGE Driver-Mc): Zigbee Drivers for Motion, Open/Close, Moisture, Smoke-Co Sensors and others Devices
Make a custom device now without groovy?
[EDGE] Universal Enhanced Z-Wave Lock Driver for Schlage, Yale, Kwikset, IDLock, Popp, Danalock, August Pro, Keywe, Philia, Samsung
New Stock Edge Drivers Beta list
Advice on integrating Aqara sensors to give a physical or audible warning
Issue with SmartThings Hub and Alexa Integration
Keep the light display OFF when AC turns ON?
Setting up an automation to have Alexa announce the status of a contact sensor?
Thermostats in ST
Hub v2 died, can only source v3: how do I migrate?
[EDGE DEVICE] Simple Harmony Bridge **Alpha Testing**
[Edge] Heatit Controls Official Edge Driver [v2.3.0]
Shelly devices units don't match in SmartThings
Smarthings Water Leak Sensor: How to set up to work as Alexa device please
Location Mode Changes Failing (5-Dec-23)
Smartthings and Device Location
Any New Presence Sensor Device
How to execute the Sonos volumeUp command in a routine?
How to Use a Meross or Matter Plug to Use HomeKit Presence to Trigger ST Routines
How to reset timer if state changes?
MY myQ DSC Alarm Integration
Edge driver request for Bluetooth Christmas Lights
Home Monitor and Motion Switches
(EDGE Driver-Mc): Zigbee Drivers for Motion, Open/Close, Moisture, Smoke-Co Sensors and others Devices
New siren device recommended?
Alexa + SmartThings + Philips Hue + natural light =?
A Tile for Phone Presence in SmartThings App
FAQ: Creating a virtual Groovy Device [OBSOLETE]
Location Triggers Stopped Working (Dec 2023)
Integrate Kwikset Halo?
Frient Air Quality Sensor
Home Assistant Integration with SmartThings
Adding Yolink water leak sensors to ST app?
Virtual dimmer in 2021?
How to implement a edge driver for bridge device in lan?
SwitchBot Indoor/Outdoor Thermo-Hygrometer
Geofencing Mode Changes
Occupancy routine triggered too much, lights stay on
Non (yet!) developer Q: can virtual devices be more than binary?
Need to get a device to trigger momentarily and run local
Ecobee automation after Groovy/Webcore retirement
Multiple LAN Devices with One Edge Device Handler
The End of Groovy Has Arrived
Legacy virtual switches stopped working (July 2023)
Map Physical Button to Virtual Button
"Advanced" Automations with multiple presence sensors
[ST Edge] Web Requestor: a driver to issue local POST and GET HTTP requests
Govee integration
The End of Groovy Has Arrived
[ST Edge] •• Tasmota Edge •• for Sonoff, Tuya & many other ESP WiFi & HTTP devices - over 2000 Tasmota supported devices
Lights in the man-cave (office)
Webcore Automation to Routines frustrations :( Pause routine while other routine is running?
Programmatically Close Simulated Contact Sensor?
Edge replacement for Ridiculously Automated Garage Door automation?…
Door sensor to turn light off on delay
Newbie button question - Button invoke an Alexa announcement
Newbie button question - Button invoke an Alexa announcement
Change Edge device to driver with a different capability?
The End of Groovy Has Arrived
AEON Power Strip Binding just stopped working (presumably because groovy)

Does it automatically run every time you put the hub in pairing mode? Any way to kill it so you can pair other devices?

Not sure what you mean. The initial scan nearby is just to initialize the driver and create a ‘creator-device’. From then on any new scans initiated are ignored. The virtual devices themselves are created via the settings options within the creator-device. You may need to try it out to see what I mean.

2 Likes

ah, interesting. will play later when I can get a log opened.

This works great!
Amazing work @TAustin
Any chance of a dimmer?

2 Likes

This is great. Lot of my automations run in the cloud due to virtual switches. This will allow them to now run locally.

1 Like

Ah right. I’d got so fixated with the driver discovery process that I didn’t think about being able to generate more devices from a device life cycle.

Ironically I use the update() method in a DTH to do a broadly similar thing, albeit with child devices.

Serves me right for not following the Hello World example and trying to throw in custom capabilities which didn’t work.

3 Likes

A virtual presence sensor (on = present, off = not present) might well be a real game changer for me.

Much as I like messing around with code, the Edge drivers really don’t have any appeal to me so the less I need to do with them the better.

4 Likes

+1 on virtual presence sensor

6 Likes

@TAustin Virtual Motion works well with IFTTT connected to Wyze.
Fyi after creating virtual device, renaming and moving to different room, and if you go to vEdge Creator, and type 0 for same type of device, it does not delete virtual device(s). This is good

1 Like

My first installation of a community created edge driver, most excellent thank you @TAustin

I do have a suggestion, on the drivers main page, under the instructions, would it be possible to have a count of the devices already created, or a list of the devices names once they are created and renamed similar to the old DTH of v switches which used to list the created devices

Even if not possible it is an excellent driver, thank you

1 Like

@TAustin,
I have tested the 4 virtual devices with automations and scenes and they work very well.
In the logcat I have not seen any errors during the installation and operation with the automations.

If it was possible to add the virtual dimmer, I would use it to encode a sequence of multiple button presses to arm away, at home and disarm STHM.

Great job !!!, Thanks

2 Likes

Echo also instantly found the created v switch and motion sensor I created as a test, I mean, really instantly :+1:

2 Likes

So can you use these to trigger a echo routine? How do you actuate the virtual Sensor?

RIght; that works as intended. If you want to delete devices, you can delete them manually.

If you do change a setting to 0. You’ll have to use an incremental number to get more devices created. It simply subtracts the last number from the new number to determine how many devices to create.

Yes, you should be able to trigger an echo routine with a virtual contact. You trigger a virtual sensor by turning the included switch on and off (on == ‘open’ or ‘active’, off == ‘closed’ or ‘inactive’).

2 Likes

Thanks for the feedback!

I’ll look at a virtual dimmer type. I may have more question for you on that one, but will get back to you.

1 Like

Virtual dimmers have in the past been used a couple of different ways:

  1. to act as a master control for a group of dimmers

  2. to act as a Value holder for a variable that can have more than two values. For example, some people use them for fan settings, some people use them for sound levels, some people use them for humidity ranges.

Adding a count would be fairly easy; a list might be a bit more challenging to format nicely. Will consider…

Thanks for your comments!

1 Like

Presence sensor: will do!

5 Likes