Use homey variable in device settings

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

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.

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).

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

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 :rofl:

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