# Use homey variable in device settings

**URL:** <https://community.homey.app/t/use-homey-variable-in-device-settings/162177>\
**Category:** Questions & Help\
**Tags:** tags\
**Created:** [November 13, 2026, 7:48pm UTC](https://community.homey.app/t/use-homey-variable-in-device-settings/162177 "2026-11-13T19:48:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlorisVandeVijver](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/florisvandevijver/32/60097_2.png) [@FlorisVandeVijver](https://community.homey.app/u/FlorisVandeVijver)\
**Post date:** [November 13, 2026, 7:48pm UTC](https://community.homey.app/t/use-homey-variable-in-device-settings/162177/1 "2026-11-13T19:48:25Z")

</div>

hi,

is it possible to use a homey variable in a device setting? what is the syntax?

e.g. i have some devices that have an IP address as input, however (once in a while) those IP addresses changes, so i have. a small homeyscript that gets the IP address that corresponds to a certain MAC address and store this in a (text) variable.

kind regards,

Floris

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [November 13, 2026, 8:19pm UTC](https://community.homey.app/t/use-homey-variable-in-device-settings/162177/2 "2026-11-13T20:19:32Z")

</div>

> [@FlorisVandeVijver](#):
>
> i have some devices that have an IP address as input

Are those local IP addresses (on your local network)? If so, an alternative option is to set a reserved IP in your DHCP server on your router, so that it never changes.

I don’t think you can tie device settings to a variable.

---

<div class="post-metadata">

**Author:** ![Drako74](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/drako74/32/150506_2.png) [@Drako74](https://community.homey.app/u/Drako74)\
**Post date:** [November 13, 2026, 8:23pm UTC](https://community.homey.app/t/use-homey-variable-in-device-settings/162177/3 "2026-11-13T20:23:47Z")

</div>

> [@SunBeech](#):
>
> set a reserved IP in your DHCP server on your router

That’s the proper way to solve it.

Not aware of any way to use logic variables or HomeyScript to change a device’s settings. The sandbox approach of Homey prevents things like this, in my opinion for good reason (security).

---

<div class="post-metadata">

**Author:** ![FlorisVandeVijver](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/florisvandevijver/32/60097_2.png) [@FlorisVandeVijver](https://community.homey.app/u/FlorisVandeVijver)\
**Post date:** [November 13, 2026, 8:30pm UTC](https://community.homey.app/t/use-homey-variable-in-device-settings/162177/4 "2026-11-13T20:30:10Z")

</div>

that’s indeed the most obvious solution, but sadly, my router (BE Telenet) does not support this feature.

---

<div class="post-metadata">

**Author:** ![Drako74](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/drako74/32/150506_2.png) [@Drako74](https://community.homey.app/u/Drako74)\
**Post date:** [November 13, 2026, 8:34pm UTC](https://community.homey.app/t/use-homey-variable-in-device-settings/162177/5 "2026-11-13T20:34:23Z")

</div>

In that case, perhaps consider running your own DHCP server, and just disable the router one.

I don’t trust the ISP router as far as I could throw it… it’s in a draw somewhere gathering dust 🤣

---

<div class="post-metadata">

**Author:** ![Yustmenl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yustmenl/32/10659_2.png) [@Yustmenl](https://community.homey.app/u/Yustmenl)\
**Post date:** [November 13, 2026, 9:29pm UTC](https://community.homey.app/t/use-homey-variable-in-device-settings/162177/6 "2026-11-13T21:29:44Z")

</div>

First thing I do is use my own router/modem then you can easily switch isp without having to rebuild your network and you have full control over your network
