# How about letting us send a parameter to a flow?

**URL:** <https://community.homey.app/t/how-about-letting-us-send-a-parameter-to-a-flow/9809>\
**Category:** Ideas & Suggestions\
**Created:** [February 27, 2019, 5:40pm UTC](https://community.homey.app/t/how-about-letting-us-send-a-parameter-to-a-flow/9809 "2019-02-27T17:40:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bjorn\_Andersson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjorn_andersson/32/13731_2.png) [@Bjorn\_Andersson](https://community.homey.app/u/Bjorn_Andersson)\
**Post date:** [February 27, 2019, 5:40pm UTC](https://community.homey.app/t/how-about-letting-us-send-a-parameter-to-a-flow/9809/1 "2019-02-27T17:40:59Z")

</div>

While I do have a workaround by setting a variable in the calling flow before starting the secondary, I think it would be nice if you instead could add a parameter to the call - it would reduce the need for global variables quite a lot, I think.

I do realize there’s a case for it being triggered directly without parameter - it could be opted that the flow does nothing in that case… or that you in the when can set a default value to be used if triggered without an input.

Just a suggestion if no one at athom has considered it.

---

<div class="post-metadata">

**Author:** ![Jeroen\_Somhorst](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_somhorst/32/184_2.png) [@Jeroen\_Somhorst](https://community.homey.app/u/Jeroen_Somhorst)\
**Post date:** [February 27, 2019, 5:52pm UTC](https://community.homey.app/t/how-about-letting-us-send-a-parameter-to-a-flow/9809/2 "2019-02-27T17:52:34Z")

</div>

can you fill in this form?

> **[Feature request for Homey](https://docs.google.com/forms/d/e/1FAIpQLSc8j_GfID4adV4w5ogNtIX1-AqVWrkgIo3bOjkoNtqlHMM0xw/viewform)**
>
> If you have a feature request for Homey you can request this feature here. (we will do our best to include all request in the Homey software, but requesting a new feature does not automatically mean that it will be added in a future update)

---

<div class="post-metadata">

**Author:** ![Bjorn\_Andersson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjorn_andersson/32/13731_2.png) [@Bjorn\_Andersson](https://community.homey.app/u/Bjorn_Andersson)\
**Post date:** [February 27, 2019, 5:57pm UTC](https://community.homey.app/t/how-about-letting-us-send-a-parameter-to-a-flow/9809/3 "2019-02-27T17:57:47Z")

</div>

Definitely!

I’ll send one or a few more that way too, then!

Thanks!

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [February 28, 2019, 7:52am UTC](https://community.homey.app/t/how-about-letting-us-send-a-parameter-to-a-flow/9809/4 "2019-02-28T07:52:39Z")

</div>

That would also solve the race condition, where the flow is called before the variable is updated because the actions are run asynchronously.

---

<div class="post-metadata">

**Author:** ![Bjorn\_Andersson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjorn_andersson/32/13731_2.png) [@Bjorn\_Andersson](https://community.homey.app/u/Bjorn_Andersson)\
**Post date:** [February 28, 2019, 8:44am UTC](https://community.homey.app/t/how-about-letting-us-send-a-parameter-to-a-flow/9809/5 "2019-02-28T08:44:35Z")

</div>

Yes, that’s part of it too.

( I generally put a one second delay on new flow starts to improve the chance of the variable getting set first. )
