# Virtual buttons and Google home

**URL:** <https://community.homey.app/t/virtual-buttons-and-google-home/37186>\
**Category:** Questions & Help\
**Created:** [November 10, 2020, 8:59pm UTC](https://community.homey.app/t/virtual-buttons-and-google-home/37186 "2020-11-10T20:59:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glenn\_Dijkstra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/glenn_dijkstra/32/17251_2.png) [@Glenn\_Dijkstra](https://community.homey.app/u/Glenn_Dijkstra)\
**Post date:** [November 10, 2020, 8:59pm UTC](https://community.homey.app/t/virtual-buttons-and-google-home/37186/1 "2020-11-10T20:59:04Z")

</div>

Hello guys,

I need a little help…  
Currently, I have a virtual button for each zone in my house. When I turn off the zone, lichts won’t go on with the motion sensors (for example when I’m watching a movie, I don’t want the living room lights to go on). Each button is called like ‘motion sensor living room’ ‘motion sensor kitchen’ etc. The buttons are linked to a logic ‘yes = on, no = off. I can ask Google to’ turn off motion sensor living room’

It works perfectly. Now, I would like or love to have a button to turn on and off all zones. Just to make it work the normal way. For that, I created a flow that turns all rooms to yes and all to no… But here is the problem:

1. I say: turn on all motion sensors. The button called all motion sensors turns to on (all rooms in logic go to yes)
2. I turn off the living room and the kitchen (both go to no)
3. I say : turn on all motion sensors… It won’t work becaise the button ‘all motion sensors’ already is tirn d on.

Edit: making it automatically turn off after one second won’t work as I also want to be able to say: turn off all motion sensors

I d love to hear if anybody can come up with an creative idea 💡👆

---

<div class="post-metadata">

**Author:** ![Edwin\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_d/32/136417_2.png) [@Edwin\_D](https://community.homey.app/u/Edwin_D)\
**Post date:** [November 10, 2020, 9:01pm UTC](https://community.homey.app/t/virtual-buttons-and-google-home/37186/2 "2020-11-10T21:01:36Z")

</div>

Before it was possible to start flows from Google Home, I used two virtual buttons, one that was always on to turn it off, and one that was always off to turn it on. Now that favorite flows can be activated from Google Assistant, I deleted all those virtual buttons. I now only use flows. I use Google Routines to add the sentences I like.

---

<div class="post-metadata">

**Author:** ![Glenn\_Dijkstra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/glenn_dijkstra/32/17251_2.png) [@Glenn\_Dijkstra](https://community.homey.app/u/Glenn_Dijkstra)\
**Post date:** [November 10, 2020, 9:48pm UTC](https://community.homey.app/t/virtual-buttons-and-google-home/37186/3 "2020-11-10T21:48:02Z")

</div>

Ah of course. I read something about starting a flow directly. Lemme try, thanks!

---

<div class="post-metadata">

**Author:** ![Glenn\_Dijkstra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/glenn_dijkstra/32/17251_2.png) [@Glenn\_Dijkstra](https://community.homey.app/u/Glenn_Dijkstra)\
**Post date:** [November 10, 2020, 10:09pm UTC](https://community.homey.app/t/virtual-buttons-and-google-home/37186/4 "2020-11-10T22:09:56Z")

</div>

Hi @Edwin_D,

What’s the difference between the virtual button with the app and the one of homey?

> **[Google routines gebruiken met Homey - Homey Cornelisse](https://homeycornelisse.nl/google-routines-gebruiken-met-homey/)**
>
> Sinds een tijdje zijn de lang verwachte google routines beschikbaar in het Nederlands, Je kon de google routines al wel gebruiken in Nederland maar dan moest je eerst je Google home op de Engelse taal instellen. Dit is nu verleden tijd we kunnen nu...

---

<div class="post-metadata">

**Author:** ![Glenn\_Dijkstra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/glenn_dijkstra/32/17251_2.png) [@Glenn\_Dijkstra](https://community.homey.app/u/Glenn_Dijkstra)\
**Post date:** [November 10, 2020, 11:13pm UTC](https://community.homey.app/t/virtual-buttons-and-google-home/37186/5 "2020-11-10T23:13:10Z")

</div>

Thank you very much. It works perfectly now 👌👌

---

<div class="post-metadata">

**Author:** ![Edwin\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_d/32/136417_2.png) [@Edwin\_D](https://community.homey.app/u/Edwin_D)\
**Post date:** [November 11, 2020, 6:30am UTC](https://community.homey.app/t/virtual-buttons-and-google-home/37186/6 "2020-11-11T06:30:14Z")

</div>

I do not use the app myself, but thee virtual buttons in Homey are more basic. The ones for the app offer more variations, but the basic concept is the same. IThey allow you to add devices that are not directly hardware related, and add behaviour via flows.

As I mentioned before, their use of making flows accessible in Google Home is no longer needed, but you can still use them e.g. to control devices via webrequests/ifttt or toggle variables that you use in flows. For that, basic Homey virtual buttons will do just fine.

---

<div class="post-metadata">

**Author:** ![Dracoignis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dracoignis/32/17161_2.png) [@Dracoignis](https://community.homey.app/u/Dracoignis)\
**Post date:** [November 12, 2020, 8:53am UTC](https://community.homey.app/t/virtual-buttons-and-google-home/37186/7 "2020-11-12T08:53:56Z")

</div>

I use virtual lights. I turn them on by voicecommand.  
When the lamp is on i use a flow to let it active logic (set someone as sleeping) and i also let the lamp deactivate after 2 minutes. This way i can reactivate again.
