Here is an Edge driver that will enable end-users to create virtual devices that run locally on-hub.
UPDATED FEBRUARY 2023…
Features:
- Supports the following virtual device types:
A/C, air quality, alarm, Alexa switch, battery, CO2 level, contact, door, fan, garage door, illuminance, Level/dimmer-only, lock, light (including RGBW), momentary button,
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: Use the AlexaSwitch device, which contains both a switch and contact needed for full Alexa routine control (switch for action, contact for condition). Icon preferences can be chosen in device Settings. The contact capability is hidden in this virtual device. You can alternatively use a virtual Contact device, which exposes the contact capability in the SmartThings device Controls screen.
Known issues
There is a known issue with Connect/Wifi hubs as of 11/8/21. The symptom is that the vEdge Creator device will not get created when you do an Add device/Scan nearby. Hopefully a future firmware update will solve it.
I’m happy to expand the list of virtual device types supported based on community needs.
Please leave your feedback here!
Instructions:
-
Use this channel invitation link to load the driver to your hub: SmartThings. Add a little smartness to your things.
Enroll your hub, then display available drivers and choose Virtual Devices V2 -
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.9 to be found in your No Room Assigned room or the room where your SmartThings hub device is located.
-
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 your No room assigned room or the room where your SmartThings hub device is located…
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>
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 2/1/23: 2023-02-01T22:35:17.008560957