# Assistand virtual device question

**URL:** <https://community.homey.app/t/assistand-virtual-device-question/33513>\
**Category:** Questions & Help\
**Created:** [August 12, 2020, 6:20am UTC](https://community.homey.app/t/assistand-virtual-device-question/33513 "2020-08-12T06:20:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Razzle](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/razzle/32/10410_2.png) [@Razzle](https://community.homey.app/u/Razzle)\
**Post date:** [August 12, 2020, 6:20am UTC](https://community.homey.app/t/assistand-virtual-device-question/33513/1 "2020-08-12T06:20:11Z")

</div>

Hi.  
I am trying to get my garage door opener to work with google assistant.  
I am wanting it to activate a flow since the flow checks for open or closed state of the door.  
I have installed a virtual device for assistant to use.

However my issue is that when assistant turns on the virtual device it toggles on and stays that way. There is no option in the virtual device for momentarily on. It staying on then disables future on commands from assistant  
Any Ideas on how to fix this?  
Thanks.  
Darren.

---

<div class="post-metadata">

**Author:** ![viix](https://avatars.discourse-cdn.com/v4/letter/v/4af34b/32.png) [@viix](https://community.homey.app/u/viix)\
**Post date:** [August 12, 2020, 6:34am UTC](https://community.homey.app/t/assistand-virtual-device-question/33513/2 "2020-08-12T06:34:31Z")

</div>

In your flow that this virtual devices turns on your garage door, set an action to turn it off after a delay, say 3 sec. That you can turn on again in google assistant.

---

<div class="post-metadata">

**Author:** ![Cory](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cory/32/12997_2.png) [@Cory](https://community.homey.app/u/Cory)\
**Post date:** [August 12, 2020, 7:56am UTC](https://community.homey.app/t/assistand-virtual-device-question/33513/3 "2020-08-12T07:56:47Z")

</div>

Another way to do this is without the virtual device.

Flow:  
When: someone says “garage door open”  
Then: (your flow actions)

In the Google Home app, create a routine.  
Voice commands:  
“garage door open” “open garage door” “open garage” etc. - use whatever versions of the command you might use.  
Then for the action it triggers, use “ask homey garage door open”

And same for closing the garage door.

That way you can trigger flows directly without being reliant on the status of a virtual device.

---

<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:** [August 12, 2020, 8:07am UTC](https://community.homey.app/t/assistand-virtual-device-question/33513/4 "2020-08-12T08:07:21Z")

</div>

Is it not possible to add a virtual button instead of a switch?

---

<div class="post-metadata">

**Author:** ![Razzle](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/razzle/32/10410_2.png) [@Razzle](https://community.homey.app/u/Razzle)\
**Post date:** [August 12, 2020, 8:12am UTC](https://community.homey.app/t/assistand-virtual-device-question/33513/5 "2020-08-12T08:12:08Z")

</div>

So far as I as I can tell, assistant doesn’t see buttons. Only devices.

---

<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:** [August 12, 2020, 8:29am UTC](https://community.homey.app/t/assistand-virtual-device-question/33513/6 "2020-08-12T08:29:19Z")

</div>

Ah, ok.

---

<div class="post-metadata">

**Author:** ![Razzle](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/razzle/32/10410_2.png) [@Razzle](https://community.homey.app/u/Razzle)\
**Post date:** [August 12, 2020, 8:53am UTC](https://community.homey.app/t/assistand-virtual-device-question/33513/7 "2020-08-12T08:53:37Z")

</div>

awesome - thank you Cory. That works great.

---

<div class="post-metadata">

**Author:** ![Razzle](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/razzle/32/10410_2.png) [@Razzle](https://community.homey.app/u/Razzle)\
**Post date:** [August 12, 2020, 12:48pm UTC](https://community.homey.app/t/assistand-virtual-device-question/33513/8 "2020-08-12T12:48:08Z")

</div>

ok - the only issue there is now it requires that I unlock my phone. This for some reason isn’t the case with other devices ☹  
For example my ‘arriving home’ routing still turns lights on without unlocking.
