# Update Variable

**URL:** <https://community.homey.app/t/update-variable/57574>\
**Category:** Developers\
**Tags:** app\
**Created:** [December 31, 2021, 8:05pm UTC](https://community.homey.app/t/update-variable/57574 "2021-12-31T20:05:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jens\_De\_Smet](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jens_de_smet/32/33978_2.png) [@Jens\_De\_Smet](https://community.homey.app/u/Jens_De_Smet)\
**Post date:** [December 31, 2021, 8:05pm UTC](https://community.homey.app/t/update-variable/57574/1 "2021-12-31T20:05:02Z")

</div>

I’m looking for a way to update a variable using a token.

**See this example:**

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/d/2df8fc448f35ef4db2d777afe7cbc0195aa62390.png)

This is what I want, to get the operation of the flow to calculate this and then update.

---

<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:** [December 31, 2021, 9:24pm UTC](https://community.homey.app/t/update-variable/57574/2 "2021-12-31T21:24:13Z")

</div>

You are not allowed to update tokens/variables of other devices or apps. That is only possible by applying actions to the devices.

---

<div class="post-metadata">

**Author:** ![Jens\_De\_Smet](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jens_de_smet/32/33978_2.png) [@Jens\_De\_Smet](https://community.homey.app/u/Jens_De_Smet)\
**Post date:** [January 1, 2022, 6:07am UTC](https://community.homey.app/t/update-variable/57574/3 "2022-01-01T06:07:50Z")

</div>

I want to update a global logical variable with the value of a token .

---

<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:** [January 1, 2022, 6:43am UTC](https://community.homey.app/t/update-variable/57574/4 "2022-01-01T06:43:37Z")

</div>

Add a logic card to the Then section

 ![Screenshot_20220101-063826_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/2/42342cd051322f7e4bb6ae6685dc63500e39e7ed.jpeg)

You can tap on the tag icon to select a tag

 ![Screenshot_20220101-064202_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/6/8677dba8642dd2db12c6be4248ae63e563aa502f.jpeg)

---

<div class="post-metadata">

**Author:** ![Jens\_De\_Smet](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jens_de_smet/32/33978_2.png) [@Jens\_De\_Smet](https://community.homey.app/u/Jens_De_Smet)\
**Post date:** [January 1, 2022, 6:46am UTC](https://community.homey.app/t/update-variable/57574/5 "2022-01-01T06:46:58Z")

</div>

It’s about how this is programmed behind what the app itself does, but this is the basis of what I actually want to achieve.

---

<div class="post-metadata">

**Author:** ![Jens\_De\_Smet](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jens_de_smet/32/33978_2.png) [@Jens\_De\_Smet](https://community.homey.app/u/Jens_De_Smet)\
**Post date:** [January 5, 2022, 7:00am UTC](https://community.homey.app/t/update-variable/57574/6 "2022-01-05T07:00:59Z")

</div>

**New topic**

[Stored in a global token - Developers - Homey Community Forum](https://community.homey.app/t/stored-in-a-global-token/57981)
