# Better management of variables

**URL:** <https://community.homey.app/t/better-management-of-variables/48680>\
**Category:** Questions & Help\
**Created:** [June 22, 2021, 8:45am UTC](https://community.homey.app/t/better-management-of-variables/48680 "2021-06-22T08:45:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Herve69](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/herve69/32/37183_2.png) [@Herve69](https://community.homey.app/u/Herve69)\
**Post date:** [June 22, 2021, 8:45am UTC](https://community.homey.app/t/better-management-of-variables/48680/1 "2021-06-22T08:45:12Z")

</div>

Hi all,

Homey is great but I have the feeling that variables are not correctly managed by Homey … ☹

For exemple, is there a way to do tho with Homey and variables :

- Change the position of each variable (up / down)
- Create folders to classify variables (like Weather, Alarm, Doors …)
- For each variable, get the list of all flows that are using the variable
- When changing the name of a variable, let Homey automaticcaly update the variable’s name in the flows that are using this variable
- etc …

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/0/705fe6659a42b382b113f186110e8038d4780b06.jpeg)

Thanks a lot to everybody who’ll be able to help me 🙂

---

<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:** [June 22, 2021, 9:37am UTC](https://community.homey.app/t/better-management-of-variables/48680/2 "2021-06-22T09:37:52Z")

</div>

In general, the Homey WebApp is still in beta phase. Bugs and suggestions can be reported to Athom.

1 - Feature request ([support@athom.com](mailto:support@athom.com))

> [@Herve69](#):
>
> Change the position of each variable (up / down)

No, but:  
2 - in the overview in the smartphone app (More → Logic) the variables are sorted alphabetically, probably also numerically.  
3 - maybe it helps to use an own system, e.g. B\_ for boolean, N\_ for numeric and S\_ for variables with strings, or the name of the room, or something similar…  
4 - there is a search function.  
5 - please see point 1.

> [@Herve69](#):
>
> Create folders to classify variables (like Weather, Alarm, Doors …)

No, but:  
6 - please see point 1 and 3.

> [@Herve69](#):
>
> For each variable, get the list of all flows that are using the variable

Yes, via [homey script](https://community.homey.app/t/ungenutzte-logik-variablen/47671/7). Thx to @RonnyW!

> [@Herve69](#):
>
> When changing the name of a variable, let Homey automaticcaly update the variable’s name in the flows that are using this variable

7 - Unfortunately, the name of the variables are only partially automatically updated. Variables inserted via tags are automatically updated. Variables inserted via dropdown are not automatically updated. You have to update them manually in the flows.  
Maybe it can be done via a homey script, but I don’t know.  
8 - please see point 1.

> [@Herve69](#):
>
> etc …

9 - Yes and no… 😉

---

<div class="post-metadata">

**Author:** ![Herve69](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/herve69/32/37183_2.png) [@Herve69](https://community.homey.app/u/Herve69)\
**Post date:** [June 22, 2021, 1:59pm UTC](https://community.homey.app/t/better-management-of-variables/48680/3 "2021-06-22T13:59:24Z")

</div>

Oky, thanks for this information 🙂

---

<div class="post-metadata">

**Author:** ![Steinar\_Moen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/steinar_moen/32/48694_2.png) [@Steinar\_Moen](https://community.homey.app/u/Steinar_Moen)\
**Post date:** [June 24, 2022, 12:27pm UTC](https://community.homey.app/t/better-management-of-variables/48680/4 "2022-06-24T12:27:27Z")

</div>

Seems like the variable name problem is still not solved. We really need to be careful when choosing variable names, since it gets very messy if a name is changed. We could say it’s nice that the flows still work after the rename, but I would really love an update where I got a mark or error sign on the flows using an old variable name. 🤨
