Hi everyone,
I’m currently working on an app for Homey and encountering this issue when trying to update a settings value in the onInit()
method of device.js
. Specifically, I’m trying to set the IP address to a label visible in settings using the following code:
await this.setSettings({
ip_address: "10.10.10.10",
});
Relevant code from driver.compose.json
:
"settings": [
{
"id": "ip_address",
"type": "label",
"label": { "en": "IP address" },
"value": "192.168.0.10",
"hint": { "en": "The IP address of the device." }
}
]
However, I’m getting the following error:
2025-03-09T13:36:32.109Z [err] [ManagerDrivers] [Driver:balboa-spa] [Device:87ddd4b4-affb-455c-ab18-807da51e8088] Device.onInit Error: Error: invalid_setting_type
at Remote Process
at HomeyClient.emit (/opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/@athombv/homey-apps-sdk-v3/lib/HomeyClient.js:1:312)
at Object.emit (/opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/@athombv/homey-apps-sdk-v3/manager/drivers.js:78:54)
at Object.emit (/opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/@athombv/homey-apps-sdk-v3/lib/Driver.js:1:1668)
at BalboaSpa.setSettings (/opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/@athombv/homey-apps-sdk-v3/lib/Device.js:1:5033)
at BalboaSpa.onInit (/drivers/balboa-spa/device.js:13:16)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async BalboaSpa._onInit (/opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/@athombv/homey-apps-sdk-v3/lib/Device.js:1:1682) {
code: 400
}
I’ve tried changing the setting type to text
in driver.compose.json
:
"settings": [
{
"id": "ip_address",
"type": "text",
"label": { "en": "IP address" },
"value": "192.168.0.10",
"hint": { "en": "The IP address of the device." }
}
]
But I’m still encountering the same issue and don’t get how the issue were resolved in this thread. Does anyone have any insights or suggestions on how to resolve this error?
Thanks in advance for your help!