# Can't set Multi Mode Virtual Device with action card

**URL:** <https://community.homey.app/t/cant-set-multi-mode-virtual-device-with-action-card/838>\
**Category:** Apps\
**Created:** [August 29, 2018, 8:12pm UTC](https://community.homey.app/t/cant-set-multi-mode-virtual-device-with-action-card/838 "2018-08-29T20:12:55Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![vdneut](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vdneut/32/9914_2.png) [@vdneut](https://community.homey.app/u/vdneut)\
**Post date:** [August 29, 2018, 8:12pm UTC](https://community.homey.app/t/cant-set-multi-mode-virtual-device-with-action-card/838/1 "2018-08-29T20:12:55Z")

</div>

A Multi mode VD can be set via the Homey App, but it seems it can not be set by a Logic action card setting the MM VD variable to the desired value.  
Is this as designed or a bug?  
 ![MMVD01](https://us1.discourse-cdn.com/flex025/uploads/athom/original/1X/5c60a760c75e6d9aebac7da96e059303e8b9d464.png)

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [August 29, 2018, 8:18pm UTC](https://community.homey.app/t/cant-set-multi-mode-virtual-device-with-action-card/838/2 "2018-08-29T20:18:51Z")

</div>

You should type the name of the tag. Dragging the variable in there will use the value of the tag.

In Homey v2.0 we will enhance logic tag support.  
(from here: [https://github.com/athombv/homey/issues/2247#issuecomment-380402773](https://github.com/athombv/homey/issues/2247#issuecomment-380402773) )

---

<div class="post-metadata">

**Author:** ![vdneut](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vdneut/32/9914_2.png) [@vdneut](https://community.homey.app/u/vdneut)\
**Post date:** [August 30, 2018, 5:14pm UTC](https://community.homey.app/t/cant-set-multi-mode-virtual-device-with-action-card/838/3 "2018-08-30T17:14:48Z")

</div>

Thanks. Tried it, but it creates a seperate variable with the same name as the Multi Mode Virtual Device, but the MM VD status itself is not changed.  
I guess your suggestion does not work for MM VD status?  
Therefore the topic is not solved yet.

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [August 30, 2018, 6:16pm UTC](https://community.homey.app/t/cant-set-multi-mode-virtual-device-with-action-card/838/5 "2018-08-30T18:16:45Z")

</div>

Ahhh… Sorry,  
didn’t seen you where not using a normal Logic Tag (Variable) but a Multi Mode from the Virtual Devices App.

You need a Action from the App  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/1X/e48a55e115ab0811b1f1f8c2f22fdaf9a5ca4f87.jpeg)

---

<div class="post-metadata">

**Author:** ![vdneut](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vdneut/32/9914_2.png) [@vdneut](https://community.homey.app/u/vdneut)\
**Post date:** [August 30, 2018, 6:22pm UTC](https://community.homey.app/t/cant-set-multi-mode-virtual-device-with-action-card/838/6 "2018-08-30T18:22:23Z")

</div>

Yes, I guess it works as designed. Then it’s a feature request.  
The reason is that I use this for the home-mode which can be Home, Away, Sleep and Awake.  
The change of this mode will trigger flows, like turn some lights on at random time interval when I’m Away.  
Changing the home-mode can only be done by the Homey App. But I also want to change it with a Remote with some buttons that change the home-mode and trigger the flows as well.

At this moment I use a work around. When the home-mode is changed by the Homey App, an extra variable is set with it’s value. This extra variable is also set by the Remote. The flows are triggered by a change in this extra variable. This works fine, the only disadvantage is that the status of the home-mode is not set and therefore the value in the Homey app is not in sync. Example: The home-mode is set in the app to Away. I press the Remote’s Home button. This new status is not reflected in the app. Not a big thing… but wouldn’t it be nice…

---

<div class="post-metadata">

**Author:** ![vdneut](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vdneut/32/9914_2.png) [@vdneut](https://community.homey.app/u/vdneut)\
**Post date:** [September 1, 2018, 10:23am UTC](https://community.homey.app/t/cant-set-multi-mode-virtual-device-with-action-card/838/8 "2018-09-01T10:23:18Z")

</div>

That is the solution I was looking for.  
I did nor realise that I had to use the VD **device** card itself instead of the VD card of the App.  
Thanks!

---

<div class="post-metadata">

**Author:** ![vdneut](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vdneut/32/9914_2.png) [@vdneut](https://community.homey.app/u/vdneut)\
**Post date:** [September 2, 2018, 10:32am UTC](https://community.homey.app/t/cant-set-multi-mode-virtual-device-with-action-card/838/9 "2018-09-02T10:32:47Z")

</div>

Unfortunately it seems that this does not work in all cases.  
It DOES work when the multi mode is changed via the app.

It DOES NOT work when assigning it in a flow. In my case I use a Remote to set the modus, like IF button X pressed THEN set multi mode to ‘Weg’ (Away).  
The flow which catches the change (see last picture of Roy’s post) is triggered, but it fails on the test if it’s ‘Weg’. I suspect that the Multi-Modus-Veranderd trigger was handled before the value of the multi modus was changed.  
Workaround: So, I added a flow that is triggered by the Multi-Mode Veranderd (Changed) event and then start the flow to check the value of the multi-mode **with a delay of 1 sec**. This works as a charm!

I wonder if this is unique for my configuration -or made a misstake-, or if this can be reproduced by someone else?

---

<div class="post-metadata">

**Author:** ![vdneut](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vdneut/32/9914_2.png) [@vdneut](https://community.homey.app/u/vdneut)\
**Post date:** [September 2, 2018, 2:36pm UTC](https://community.homey.app/t/cant-set-multi-mode-virtual-device-with-action-card/838/11 "2018-09-02T14:36:43Z")

</div>

> [@RoyWissenburg](#):
>
> Help me out with this…. you using the remote as a trigger, the action in “then colum” is set multimod away. right?? this is working??

Yes. Please find the flow…

 ![mmvd02](https://us1.discourse-cdn.com/flex025/uploads/athom/original/1X/2f6da0a340e1b21b7a4d152023303621cedc4f08.png)  
I have to break the reply as I’m e New user which is limited to one picture upload per reply ☹

---

<div class="post-metadata">

**Author:** ![vdneut](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vdneut/32/9914_2.png) [@vdneut](https://community.homey.app/u/vdneut)\
**Post date:** [September 2, 2018, 2:37pm UTC](https://community.homey.app/t/cant-set-multi-mode-virtual-device-with-action-card/838/12 "2018-09-02T14:37:17Z")

</div>

And this flow should say ‘Hoi’ if the multi modes changes to ‘Thuis’…

 ![mmvd03](https://us1.discourse-cdn.com/flex025/uploads/athom/original/1X/4c6ef3c306eba8d0d6f1d15e4ca7f1aa1ff50e15.png)

But it does not! It gives unexpected and random results, some times it freeses Homey (giving constant orange ring color) and need to reboot.

---

<div class="post-metadata">

**Author:** ![vdneut](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vdneut/32/9914_2.png) [@vdneut](https://community.homey.app/u/vdneut)\
**Post date:** [September 2, 2018, 2:38pm UTC](https://community.homey.app/t/cant-set-multi-mode-virtual-device-with-action-card/838/13 "2018-09-02T14:38:02Z")

</div>

It does work and behaves as expected after I added a delay between setting the multi mode and checking the value in the IF.

 ![mmvd05](https://us1.discourse-cdn.com/flex025/uploads/athom/original/1X/5bcab989d28361ecdddb0401248f503d0b4acb16.png)

Strange huh? 🙂

---

<div class="post-metadata">

**Author:** ![vdneut](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vdneut/32/9914_2.png) [@vdneut](https://community.homey.app/u/vdneut)\
**Post date:** [September 3, 2018, 6:47pm UTC](https://community.homey.app/t/cant-set-multi-mode-virtual-device-with-action-card/838/15 "2018-09-03T18:47:05Z")

</div>

Sure thing! This works! No delay nescessary.

Conclusion: use the multi-mode device card in IF and THEN, but not in AND. Use Logical test of Tag in the AND.

(Surely I accept this way of working, but it’s a bit confusing that the mm device card can be used in the AND, but does not work. Also, not documented at the app’s github).

Thanks for your help Roy!

Thread can be closed - Solved

---

<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:** [September 3, 2018, 7:25pm UTC](https://community.homey.app/t/cant-set-multi-mode-virtual-device-with-action-card/838/16 "2018-09-03T19:25:44Z")

</div>

Closed on September 3, 2018, 7:25pm UTC


