# Virtual (toggle) switch - where can I find these or set it up?

**URL:** <https://community.homey.app/t/virtual-toggle-switch-where-can-i-find-these-or-set-it-up/111068>\
**Category:** Devices\
**Tags:** virtual-device\
**Created:** [June 5, 2024, 10:42am UTC](https://community.homey.app/t/virtual-toggle-switch-where-can-i-find-these-or-set-it-up/111068 "2024-06-05T10:42:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tango\_Oscar\_Mike](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tango_oscar_mike/32/81191_2.png) [@Tango\_Oscar\_Mike](https://community.homey.app/u/Tango_Oscar_Mike)\
**Post date:** [June 5, 2024, 10:42am UTC](https://community.homey.app/t/virtual-toggle-switch-where-can-i-find-these-or-set-it-up/111068/1 "2024-06-05T10:42:57Z")

</div>

Hello everyone, I just started migrating my Hubitat system to Homey and still need to get my head around the different logic, but slowly getting there.  
I am looking for a virtual switch - a switch you change the state between on / off and it remains in the respective state.  
Background - want to use this virtual switch to activate or de-activate my irrigation system - eg Winter / Summer. Activating or deactivating a flow might be a different solution to the same problem I understood in the meantime, but need to figure out how this works.  
Anyways, having a virtual switch might also come in handy for other things. I can get a virtual button directly from homey or through “virtual devices app” - both solutions don’t offer me a switch. Searched the forums up and down and there a lot of threads talking about virtual switches, but could not find one how to add it into the system.  
What do I miss?  
Enclosed screenshot which shows the virtual devices I could get - no switch there

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/8/48139a07e2c4fe37512e3044ecc52012271e9878.png)

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [June 5, 2024, 11:49am UTC](https://community.homey.app/t/virtual-toggle-switch-where-can-i-find-these-or-set-it-up/111068/2 "2024-06-05T11:49:49Z")

</div>

Virtual Socket is the one you are searching for. A bit misleading the name, but that one has a ON/OFF state.

---

<div class="post-metadata">

**Author:** ![Tango\_Oscar\_Mike](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tango_oscar_mike/32/81191_2.png) [@Tango\_Oscar\_Mike](https://community.homey.app/u/Tango_Oscar_Mike)\
**Post date:** [June 5, 2024, 3:54pm UTC](https://community.homey.app/t/virtual-toggle-switch-where-can-i-find-these-or-set-it-up/111068/3 "2024-06-05T15:54:43Z")

</div>

Thanks! That should work for some of my cases.

Follow-up question - I do have an Alexa routine which starts when I disable an alarm and switches on an virtual button in this case to further start a Hubitat rule, which would be a flow in Homey, to trigger all kinds of lights and blinds.  
Now, virtual buttons are not exposed to Alexa as far as I can see and I just tested a virtual socket which is exposed to Alexa, but can not be switched by the amazon system. How could I trigger a flow to start by an Alexa routine wihtout wasting a real switch / module?

Add on question - is there a way to change the type of a unit? I have a Shelly dimmer module which was categorized as light, but is controlling a fan in reality.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [June 5, 2024, 5:13pm UTC](https://community.homey.app/t/virtual-toggle-switch-where-can-i-find-these-or-set-it-up/111068/4 "2024-06-05T17:13:42Z")

</div>

There’s two apps also for adding virtual devices to Homey  
Maybe you can find one which _does_ appear @ alexa

- [Virtual Devices](https://community.homey.app/t/1723)
- [Advanced Virtual Device](https://community.homey.app/t/app-pro-device-capabilities-addendum-fully-customisable-advanced-virtual-device-with-unique-text-status-indicator/68198) (part of [Device Capabilities](https://community.homey.app/t/43287) app)

---

<div class="post-metadata">

**Author:** ![Hielke\_de\_Jong](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hielke_de_jong/32/79029_2.png) [@Hielke\_de\_Jong](https://community.homey.app/u/Hielke_de_Jong)\
**Post date:** [June 5, 2024, 5:24pm UTC](https://community.homey.app/t/virtual-toggle-switch-where-can-i-find-these-or-set-it-up/111068/5 "2024-06-05T17:24:46Z")

</div>

Not possible to use a existing device within Alexa as trigger? For instance I set my Google speaker to mute (done by a flow in Homey) and then it starts a Google-routine on the speaker itself.

---

<div class="post-metadata">

**Author:** ![Tango\_Oscar\_Mike](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tango_oscar_mike/32/81191_2.png) [@Tango\_Oscar\_Mike](https://community.homey.app/u/Tango_Oscar_Mike)\
**Post date:** [June 5, 2024, 5:28pm UTC](https://community.homey.app/t/virtual-toggle-switch-where-can-i-find-these-or-set-it-up/111068/6 "2024-06-05T17:28:59Z")

</div>

Thanks! I’ll try.

---

<div class="post-metadata">

**Author:** ![Jonathan\_Draper](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jonathan_draper/32/33978_2.png) [@Jonathan\_Draper](https://community.homey.app/u/Jonathan_Draper)\
**Post date:** [June 5, 2024, 7:25pm UTC](https://community.homey.app/t/virtual-toggle-switch-where-can-i-find-these-or-set-it-up/111068/7 "2024-06-05T19:25:03Z")

</div>

@Tango_Oscar_Mike If I understand your use case correctly, I think you want to have an Alexa routine trigger a Homey flow? If so, then you don’t need virtual devices for that - you can do it directly with the official Alexa skill. See here: [https://support.homey.app/hc/en-us/articles/4409837342354-Starting-Flows-with-Amazon-Alexa](https://support.homey.app/hc/en-us/articles/4409837342354-Starting-Flows-with-Amazon-Alexa)

You just have to make sure you make the flow a ‘favourite’ as that’s what ensures it’s published to Alexa as a scene.

---

<div class="post-metadata">

**Author:** ![Tango\_Oscar\_Mike](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tango_oscar_mike/32/81191_2.png) [@Tango\_Oscar\_Mike](https://community.homey.app/u/Tango_Oscar_Mike)\
**Post date:** [June 5, 2024, 8:18pm UTC](https://community.homey.app/t/virtual-toggle-switch-where-can-i-find-these-or-set-it-up/111068/8 "2024-06-05T20:18:42Z")

</div>

Thanks a lot Jonathan! Yes, that is what I was looking for! Very helpfull information!  
Thinking about it, that would probably also worked with Hubitat. Well, it worked with my way until now 😅  
Tom
