# Make variables non-changeable in widgets

**URL:** <https://community.homey.app/t/make-variables-non-changeable-in-widgets/118127>\
**Category:** Dashboards\
**Created:** [October 14, 2024, 2:40pm UTC](https://community.homey.app/t/make-variables-non-changeable-in-widgets/118127 "2024-10-14T14:40:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maccalo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maccalo/32/116515_2.png) [@maccalo](https://community.homey.app/u/maccalo)\
**Post date:** [October 14, 2024, 2:40pm UTC](https://community.homey.app/t/make-variables-non-changeable-in-widgets/118127/1 "2024-10-14T14:40:36Z")

</div>

Hello!

I use variables and flows to store some basic information. This is shown on my home screen/dashboard.

A short press on the variables returns a pop up window to manually change the values. I would like to disable this feature.

Would it be possible to add an option to the widget so that information is non-changeable?

 ![Screenshot_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/3/b3e3b06e59d8d5a60f78ef4f242f36e0a70840e8.jpeg)

---

<div class="post-metadata">

**Author:** ![DirkH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkh/32/78952_2.png) [@DirkH](https://community.homey.app/u/DirkH)\
**Post date:** [October 15, 2024, 1:39pm UTC](https://community.homey.app/t/make-variables-non-changeable-in-widgets/118127/2 "2024-10-15T13:39:21Z")

</div>

Hi @maccalo ,  
I guess it is not possible to lock a variable. But there are segways to do something similar.

One simple one is to us two variables _Innetemperatur_ and _Innetemperatur\_orig_.  
With a flow _DontTouchInnetempertur_:  
When variable _Innetemperatur_ changed

- Disable flow _dontTouchInnetemperatur_
- Set variable _Innetemperatur_ to _ **innetemperatur\_orig** _
- Delay 2 seconds
- Enable flow _DontTouchInnetemperatur_

And the lines from Disable to enable you would also add to the flow, where you calculate or set the variable _Innetemperatur\_orig_

Just my 2cts

---

<div class="post-metadata">

**Author:** ![K3nneth](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/k3nneth/32/79106_2.png) [@K3nneth](https://community.homey.app/u/K3nneth)\
**Post date:** [October 15, 2024, 6:27pm UTC](https://community.homey.app/t/make-variables-non-changeable-in-widgets/118127/3 "2024-10-15T18:27:33Z")

</div>

Another workaround could be to make a virtual device just showing the value of the variable.
