# Virtual Parallel

**URL:** <https://community.homey.app/t/virtual-parallel/96195>\
**Category:** Flows\
**Tags:** homey-pro\
**Created:** [November 29, 2023, 12:33pm UTC](https://community.homey.app/t/virtual-parallel/96195 "2023-11-29T12:33:12Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcelo\_Leite](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcelo_leite/32/79656_2.png) [@Marcelo\_Leite](https://community.homey.app/u/Marcelo_Leite)\
**Post date:** [November 29, 2023, 12:33pm UTC](https://community.homey.app/t/virtual-parallel/96195/1 "2023-11-29T12:33:12Z")

</div>

Hello everyone, I’m new here at homey. I have a homey pro 2023 and I’m having trouble making a virtual parallel. Can anyone help me?

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [November 29, 2023, 12:39pm UTC](https://community.homey.app/t/virtual-parallel/96195/3 "2023-11-29T12:39:49Z")

</div>

I just wonder, what is a virtual parallel in your opinion?

---

<div class="post-metadata">

**Author:** ![DirkH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkh/32/78952_2.png) [@DirkH](https://community.homey.app/u/DirkH)\
**Post date:** [November 29, 2023, 12:45pm UTC](https://community.homey.app/t/virtual-parallel/96195/4 "2023-11-29T12:45:44Z")

</div>

True, as I understand everything in Homey is virtual parallel, even if you write different cards one below or after (advanced flow) an other they do not wait for the others. So if needed, it is much more difficult to force serial flows.

---

<div class="post-metadata">

**Author:** ![Marcelo\_Leite](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcelo_leite/32/79656_2.png) [@Marcelo\_Leite](https://community.homey.app/u/Marcelo_Leite)\
**Post date:** [November 29, 2023, 12:51pm UTC](https://community.homey.app/t/virtual-parallel/96195/5 "2023-11-29T12:51:43Z")

</div>

I will try to explain my situation. In my living room I have a point with a smart switch that activates a lamp through a physical switch. In another part of the room I have another smart switch that is also connected to a physical switch, but without the light bulb. The idea is, when I activate this smart switch that does not have the light bulb installed, it would activate the smart switch with the light bulb installed and vice versa. I don’t know if I was very clear in my explanation, but I hope you understand and can help me.

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [November 29, 2023, 1:23pm UTC](https://community.homey.app/t/virtual-parallel/96195/6 "2023-11-29T13:23:21Z")

</div>

Probably you use the word switch for sensor and for actuator, a smart pus button and a smart wall outlet for example. A very common language problem.

From your description it looks too simple:

WHEN smartswitch1 is switched on  
THEN set smartswitch2 to on

---

<div class="post-metadata">

**Author:** ![Marcelo\_Leite](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcelo_leite/32/79656_2.png) [@Marcelo\_Leite](https://community.homey.app/u/Marcelo_Leite)\
**Post date:** [November 29, 2023, 1:43pm UTC](https://community.homey.app/t/virtual-parallel/96195/7 "2023-11-29T13:43:51Z")

</div>

I had done it as follows.

WHEN smartswitch1 is switched on  
THEN set smartswitch2 to on  
WHEN smartswitch1 is switched off  
THEN set smartswitch2 to off

WHEN smartswitch2 is switched on  
THEN set smartswitch1 to on  
WHEN smartswitch2 is switched off  
THEN set smartswitch1 to off

But the lamp turns on and off in a loop.

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [November 29, 2023, 1:50pm UTC](https://community.homey.app/t/virtual-parallel/96195/8 "2023-11-29T13:50:10Z")

</div>

These are 4 normal flows I suppose?  
I don’t see the loop yet, but add an extra condition like:

WHEN smartswitch1 is switched on  
AND smartswitch 2 is off  
THEN set smartswitch2 to on

Etc…

---

<div class="post-metadata">

**Author:** ![Anders\_Gregow](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anders_gregow/32/61721_2.png) [@Anders\_Gregow](https://community.homey.app/u/Anders_Gregow)\
**Post date:** [November 29, 2023, 1:50pm UTC](https://community.homey.app/t/virtual-parallel/96195/9 "2023-11-29T13:50:13Z")

</div>

This is because you trigger the other button, which triggers the first button. 🙂  
This will create an infinit loop. Why the lamp is blinking might be that your flow does not look exactly as you describe? Maybe you have a on instead of off somewhere?

Do like this:

You do not need this as switch 1 turns on the lamp.  
WHEN smartswitch1 is switched on  
WHEN smartswitch1 is switched off

Keep this  
WHEN smartswitch2 is switched on  
THEN set smartswitch1 to on  
WHEN smartswitch2 is switched off  
THEN set smartswitch1 to off

---

<div class="post-metadata">

**Author:** ![Anders\_Gregow](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anders_gregow/32/61721_2.png) [@Anders\_Gregow](https://community.homey.app/u/Anders_Gregow)\
**Post date:** [November 29, 2023, 1:55pm UTC](https://community.homey.app/t/virtual-parallel/96195/10 "2023-11-29T13:55:59Z")

</div>

My solution expects that switch 2 has two buttons.  
If only one button you need to check state of switch 1.

If switch 2 is pressed and switch 1 is on, then turn off switch 1, else turn on switch 1. Or use toggle switch card.

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [December 16, 2023, 7:40am UTC](https://community.homey.app/t/virtual-parallel/96195/11 "2023-12-16T07:40:20Z")

</div>

@Marcelo_Leite

The people that responded to your request for help would appreciate if you give your feedback or simply say thank you…
