Hi,
is there any way to get certain properties of devices that are not available in the device app itself?for example, i would like to extract the IP address of a device (which is an advanced setting), as i use this in a flow with a webhook. whenever the IP address changes, it would be nice if i could keep that flow in sync.
kind regards,
Floris
Hi Floris,
If that IP is stored with ‘Settings’, you can retrieve it per Homeyscript.
Here you can find all available settings and capabilities for your devices:
https://tools.developer.homey.app/tools/devices
It’s also gettable by using something like:
let naMe = "my device name"; // change to actual device namr
let ipAddr = _.find(await Homey.devices.getDevices(), d=>d.name == naMe );
console.log(ipAddr);
U can use JSON.parse to filter out the IP address, something like
JSON.parse(ipAddr.settings.address);