# Virtual device with many states?

**URL:** <https://community.smartthings.com/t/virtual-device-with-many-states/294694>\
**Category:** Connected Things\
**Created:** [February 1, 2025, 3:56am UTC](https://community.smartthings.com/t/virtual-device-with-many-states/294694 "2025-02-01T03:56:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmjb](https://avatars.discourse-cdn.com/v4/letter/r/c5a1d2/32.png) [@rmjb](https://community.smartthings.com/u/rmjb)\
**Post date:** [February 1, 2025, 3:56am UTC](https://community.smartthings.com/t/virtual-device-with-many-states/294694/1 "2025-02-01T03:56:39Z")

</div>

I have TAustin’s excellent virtual device creator that I’ve used for a few virtual switches, but those only have two states: on or off.  
Is there a virtual device where I can set a higher number of states and preferably name them?

I’d like to trigger routines based on the states.

What I’m trying to do is create a virtual washer/dryer to match my real washer/dryer appliance for which I monitor the power. The states would be: washing, drying, washing&drying, finished, off.

---

<div class="post-metadata">

**Author:** ![Drewicecold](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/drewicecold/32/199241_2.png) [@Drewicecold](https://community.smartthings.com/u/Drewicecold)\
**Post date:** [February 1, 2025, 4:20am UTC](https://community.smartthings.com/t/virtual-device-with-many-states/294694/2 "2025-02-01T04:20:20Z")

</div>

> [@(EDGE Driver-Mc): Aplicaciones Virtuales Mc (virtual Switch Mirror, Virtual Calendar and virtual Switch Board...)](https://community.smartthings.com/t/edge-driver-mc-aplicaciones-virtuales-mc-virtual-switch-mirror-virtual-calendar-and-virtual-switch-board/243627):
>
> (New Release)Edge Driver Aplicaciones Virtuales Mc (virtual Switch Mirror, virtual Switch Board, Text and Number Fields): Link to [Version with Text Field and Number Field](https://community.smartthings.com/t/new-release-edge-driver-virtual-switches-mc-virtual-switch-mirror-and-virtual-switch-board/243627/26) Link to versión with [Virtual Calendar](https://community.smartthings.com/t/new-release-edge-driver-virtual-appliances-mc-virtual-switch-mirror-and-virtual-switch-board/243627/55) Link to version with new device [Timer Number of Days](https://community.smartthings.com/t/new-release-edge-driver-virtual-appliances-mc-virtual-switch-mirror-virtual-calendar-and-virtual-switch-board/243627/131) Link to version with capability [Local Week Day](https://community.smartthings.com/t/edge-driver-mc-aplicaciones-virtuales-mc-virtual-switch-mirror-virtual-calendar-and-virtual-switch-board/243627/276) in Virtual Calendar Link to version with new device [Timer of Seconds](https://community.smartthings.com/t/edge-driver-mc-aplicaciones-virtuales-mc-virtual-switch-mirror-virtual-calendar-and-virtual-switch-board/243627/305) Link to adding Calculation capabilities to [Number Fields virtual device](https://community.smartthings.com/t/edge-driver-mc-aplicaciones-virtuales-mc-virtual-switch-mirror-virtual-calendar-and-virtual-switch-board/243627/306) Link to adding [Device List and Battery levels](https://community.smartthings.com/t/edge-driver-mc-aplicaciones-virtuales-mc-virtual-switch-mirror-virtual-calendar-and-virtual-switch-board/243627/330) Link to adding [Virtual Security Device](https://community.smartthings.com/t/edge-driver-mc-aplicaciones-virtuales-mc-virtual-switch-mirror-virtual-calendar-and-virtual-switch-board/243627/333) While we wait for the stock mirror routine to arrive. This driver creates virtual devices to be able to automate state synchronization between a real device and this virtual mirror device, writing 2 routines instead of 4 routines without…

I’m using this, combined with an energy reading smart plug, and an additional virtual switch to set off Alexa routine (announcing when clothes are done), works great.

Kinda wish there was a more all in one way (well two, plug power states are needed) that also allowed to change the icon displayed, but it works.

Just started replacing variables I had set up with Sharptools with it, with the idea being eventually, maybe, as AI continues to be a thing, MAYBE just MAYBE having all the info in Smartthings would make it easier for an AI Assistant to understand my smart home.

---

<div class="post-metadata">

**Author:** ![TheHundredthIdiot](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/thehundredthidiot/32/121372_2.png) [@TheHundredthIdiot](https://community.smartthings.com/u/TheHundredthIdiot)\
**Post date:** [February 1, 2025, 5:41pm UTC](https://community.smartthings.com/t/virtual-device-with-many-states/294694/3 "2025-02-01T17:41:56Z")

</div>

Mariano\_Colmenarejo has a virtual device creator that allows creation of a switch panel containing upto 5 switches which can be configured as exclusive (i.e. one switch on at a time) or multiple (so potentially all on at once). He also has text based devices where you can set and interrogate text values… The switch panel should achieve what you need?
