# Virtual Device and turning devices on

**URL:** <https://community.homey.app/t/virtual-device-and-turning-devices-on/14385>\
**Category:** Questions & Help\
**Created:** [June 13, 2019, 6:53pm UTC](https://community.homey.app/t/virtual-device-and-turning-devices-on/14385 "2019-06-13T18:53:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jannick](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jannick/32/27301_2.png) [@Jannick](https://community.homey.app/u/Jannick)\
**Post date:** [June 13, 2019, 6:53pm UTC](https://community.homey.app/t/virtual-device-and-turning-devices-on/14385/1 "2019-06-13T18:53:28Z")

</div>

Hi!

I have an issue. The problem is when I manually start the Sonos and want to stop it using my Virtual (Sonos) Device it won’t stop the Sonos. Why? Because the virtual device is still turned off, because I didn’t use it to turn the Sonos initially on.

Is there a way to check if the Sonos is running so a flow also starts the Virtual Device?

Thanks!

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [June 13, 2019, 7:05pm UTC](https://community.homey.app/t/virtual-device-and-turning-devices-on/14385/2 "2019-06-13T19:05:20Z")

</div>

When u have the Sonos app running there is a card for it. I hear some peeps having trouble with this card not working but others don’t so maybe worth a try?  
 ![chrome_2019-06-13_21-03-23](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/d/dcaabed61b0c2f69fe60da39abb5ef8570c54587.png)

---

<div class="post-metadata">

**Author:** ![Jannick](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jannick/32/27301_2.png) [@Jannick](https://community.homey.app/u/Jannick)\
**Post date:** [June 13, 2019, 7:33pm UTC](https://community.homey.app/t/virtual-device-and-turning-devices-on/14385/3 "2019-06-13T19:33:21Z")

</div>

No it’s not working correctly. I pause the music and somehow the flow thinks it’s still playing, activating the VD and that activating the Sonos again. Creating a loop.

Maybe someone has the perfect solution?

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [June 13, 2019, 7:34pm UTC](https://community.homey.app/t/virtual-device-and-turning-devices-on/14385/4 "2019-06-13T19:34:24Z")

</div>

You could try virtual button.

---

<div class="post-metadata">

**Author:** ![Jannick](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jannick/32/27301_2.png) [@Jannick](https://community.homey.app/u/Jannick)\
**Post date:** [June 13, 2019, 7:37pm UTC](https://community.homey.app/t/virtual-device-and-turning-devices-on/14385/5 "2019-06-13T19:37:37Z")

</div>

Can you explain the perfect flow(s) with a virtual button? So it always go’s well? I use the Virtually Device to turn on and off my Sonos using Google Home, but I also use the button on my Sonos itself.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [June 13, 2019, 7:39pm UTC](https://community.homey.app/t/virtual-device-and-turning-devices-on/14385/6 "2019-06-13T19:39:17Z")

</div>

Make a virtual button. WHEN button is pushed AND Sonos is playing THEN stop Sonos ELSE play Sonos.

---

<div class="post-metadata">

**Author:** ![Jannick](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jannick/32/27301_2.png) [@Jannick](https://community.homey.app/u/Jannick)\
**Post date:** [June 13, 2019, 7:41pm UTC](https://community.homey.app/t/virtual-device-and-turning-devices-on/14385/7 "2019-06-13T19:41:38Z")

</div>

Can I use “Hey Google, turn on Sonos” with this?

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [June 13, 2019, 7:43pm UTC](https://community.homey.app/t/virtual-device-and-turning-devices-on/14385/8 "2019-06-13T19:43:11Z")

</div>

U have Sonos in ur Google Home added aye? No need for a virtual button. “Hey Google, play Madonna” should work.

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [June 13, 2019, 8:01pm UTC](https://community.homey.app/t/virtual-device-and-turning-devices-on/14385/9 "2019-06-13T20:01:28Z")

</div>

Madonna? Sorry That will not work. Sonos can’t play off key…

---

<div class="post-metadata">

**Author:** ![Jannick](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jannick/32/27301_2.png) [@Jannick](https://community.homey.app/u/Jannick)\
**Post date:** [June 13, 2019, 8:12pm UTC](https://community.homey.app/t/virtual-device-and-turning-devices-on/14385/10 "2019-06-13T20:12:52Z")

</div>

Of course, got it to work control the Sonos using a single connection between Google and Sonos 🙂
