# Variables

**URL:** <https://community.homey.app/t/variables/69875>\
**Category:** Questions & Help\
**Created:** [October 4, 2022, 4:50pm UTC](https://community.homey.app/t/variables/69875 "2022-10-04T16:50:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tirrazo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tirrazo/32/55444_2.png) [@Tirrazo](https://community.homey.app/u/Tirrazo)\
**Post date:** [October 4, 2022, 4:50pm UTC](https://community.homey.app/t/variables/69875/1 "2022-10-04T16:50:56Z")

</div>

Hi,

I haven’t found the answer to this in any post so I just have to ask.

What are these variables that you can create and how to use them?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/4/7426a64a0a37734e47ac8579a2e078fbb0a26cbf.png)

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [October 4, 2022, 5:57pm UTC](https://community.homey.app/t/variables/69875/2 "2022-10-04T17:57:54Z")

</div>

I use them to create tags that allow me to return to previous Hue light settings. I have a text variable whose value is set by flows. I have a flow that turns on various Hue scenes at sunset, I have other flows that change the colours of individual lamps for specific events, dishwasher finished or new media added to plex. The text variable can then be used to have Homey activate the correct Hue scene so that the lights return to their previous state.

---

<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:** [October 4, 2022, 6:00pm UTC](https://community.homey.app/t/variables/69875/3 "2022-10-04T18:00:30Z")

</div>

Everything explained here by Athom:

> **[Using Homey Logic in Flows](https://support.homey.app/hc/en-us/articles/4410240765586-Using-Homey-Logic-in-Flows)**
>
> You’ve probably seen Homey Logic. Once you get the hang of it, it's a great tool for any smart home. By creating your own Variables and using these in your Flows as Tags, you can often accomplish c...
