# Starting a flow from a Virtual Device with Number TAG

**URL:** https://community.homey.app/t/starting-a-flow-from-a-virtual-device-with-number-tag/123439
**Category:** Questions & Help
**Tags:** app, flow, homey-pro, advancedflow
**Created:** [December 10, 2024, 1:56am UTC](https://community.homey.app/t/starting-a-flow-from-a-virtual-device-with-number-tag/123439 "2024-12-10T01:56:23Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Peter\_Bittner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_bittner/32/16698_2.png) [@Peter\_Bittner](https://community.homey.app/u/Peter_Bittner)
#### Post date: [December 10, 2024, 1:56am UTC](https://community.homey.app/t/starting-a-flow-from-a-virtual-device-with-number-tag/123439/1 "2024-12-10T01:56:23Z")

</div>

Hi,  
For my Roborock vacuum I would like to set up a VD for each room and then when I press the VD for a room pass a number from the VD to the Flow. That number will then be used for a very simple flow which cleans the room associated with that number.  
Is that possible?

---

<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: [December 10, 2024, 8:44am UTC](https://community.homey.app/t/starting-a-flow-from-a-virtual-device-with-number-tag/123439/2 "2024-12-10T08:44:50Z")

</div>

The flow card “Start flow with number” ?

---

<div class="post-metadata">

### Author: ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)
#### Post date: [December 10, 2024, 8:59am UTC](https://community.homey.app/t/starting-a-flow-from-a-virtual-device-with-number-tag/123439/3 "2024-12-10T08:59:38Z")

</div>

Flows for the VDs:

**When…**  
– VD/Button no. 1 is pushed  
**Then…**  
– Logic: Set variable Roborock to 1 (= room 1)

**When…**  
– VD/Button no. 2 is pushed  
**Then…**  
– Logic: Set variable Roborock to 2 (= room 2)

And so on…

Flow(s) for cleaning the rooms:  
**When…**  
– Logic: Variable Roborock has changed  
**And…**  
– Logic: Variable Roborock is 1  
**Then…**  
– Clean room 1

**When…**  
– Logic: Variable Roborock has changed  
**And…**  
– Logic: Variable Roborock is 2  
**Then…**  
– Clean room 2

And so on…

---

<div class="post-metadata">

### Author: ![Peter\_Bittner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_bittner/32/16698_2.png) [@Peter\_Bittner](https://community.homey.app/u/Peter_Bittner)
#### Post date: [December 10, 2024, 9:05am UTC](https://community.homey.app/t/starting-a-flow-from-a-virtual-device-with-number-tag/123439/4 "2024-12-10T09:05:02Z")

</div>

Yes, that’s what I want to use, but how do you pass the number. So if I have a VD which says vacuum the dining room which is room number 18, how do I pass the 18 to the flow?

---

<div class="post-metadata">

### Author: ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)
#### Post date: [December 10, 2024, 9:28am UTC](https://community.homey.app/t/starting-a-flow-from-a-virtual-device-with-number-tag/123439/5 "2024-12-10T09:28:27Z")

</div>

In my opinion the _ **Start flow with number** _ flow card is not for using this number for further use.  
But you can use this flow card in the same way like the _ **Variable has changed** _ flow card.

Flow 1  
**When…**  
– VD/Button no. 1 is pushed  
**Then…**  
– Start Flow “Roborock” with no. 1

Flow 2  
**When…**  
– This flow is started with a number tag  
**And…**  
– Start value is 1  
**Then…**  
– Clean room 1

---

<div class="post-metadata">

### Author: ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)
#### Post date: [December 10, 2024, 9:31am UTC](https://community.homey.app/t/starting-a-flow-from-a-virtual-device-with-number-tag/123439/6 "2024-12-10T09:31:41Z")

</div>

Wouldn’t it be much more simple to do this?

When VD button 1 is pressed  
Then clean room 1

---

<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: [December 10, 2024, 10:28am UTC](https://community.homey.app/t/starting-a-flow-from-a-virtual-device-with-number-tag/123439/7 "2024-12-10T10:28:37Z")

</div>

You just fill in 18 🤨 ?  
And then make a flow which start with the card “This flow is started with a number tag” and use the tag “start value”

---

<div class="post-metadata">

### Author: ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)
#### Post date: [December 10, 2024, 10:50am UTC](https://community.homey.app/t/starting-a-flow-from-a-virtual-device-with-number-tag/123439/8 "2024-12-10T10:50:09Z")

</div>

> [@Wim\_Post](#):
>
> Wouldn’t it be much more simple to do this?

Let me think about that… 🤔

Yes! 😂

---

<div class="post-metadata">

### Author: ![Peter\_Bittner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_bittner/32/16698_2.png) [@Peter\_Bittner](https://community.homey.app/u/Peter_Bittner)
#### Post date: [December 10, 2024, 7:39pm UTC](https://community.homey.app/t/starting-a-flow-from-a-virtual-device-with-number-tag/123439/9 "2024-12-10T19:39:45Z")

</div>

Yeh OK, I get it, and in the end this is what I did. But I can’t help thinking that if such a card exists “Start flow with number” then there must be a way of passing a parameter when starting the flow so that the Start Value takes on that number. Yet I can’t seem to find any reference on how to do that. Maybe it can be done from a Script.

---

<div class="post-metadata">

### Author: ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)
#### Post date: [December 11, 2024, 7:46am UTC](https://community.homey.app/t/starting-a-flow-from-a-virtual-device-with-number-tag/123439/10 "2024-12-11T07:46:06Z")

</div>

You first start that flow from another flow via the THEN card ‘Start [flow name] with [number]’ in which you provide the number tag.

The flow that you are trying to call needs to start with the WHEN card ‘This flow is started with a number tag.

You can then check which number was passed to the flow by checking the ‘Start value’ tag.

---

<div class="post-metadata">

### Author: ![Peter\_Bittner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_bittner/32/16698_2.png) [@Peter\_Bittner](https://community.homey.app/u/Peter_Bittner)
#### Post date: [December 11, 2024, 9:52pm UTC](https://community.homey.app/t/starting-a-flow-from-a-virtual-device-with-number-tag/123439/11 "2024-12-11T21:52:06Z")

</div>

Got it. Thanks
