Homey Community Forum

How to set device settings in Homey script

Does anyone have an example of how to change a device setting using Homey script?
I am able to read out all settings of a device (sensor, etc.). But I can’t figure out how to change a setting using Homey script.
I have tried using the setDeviceSettings() method, but then I get the error: device.setDeviceSettings is not a function.
Any help appreciated.

Maybe this gets you started?
(I searched for “set device settings”)

What do you mean specifically by “setting”? If you want to set a device’s capability, look at the Homeyscript example code here.

Thanks for the reply. This post is about changing capability settings. I want to change the advanced settings of a device.

Thanks for the reply. This example is about changing capability settings. I want to change the advanced settings of a device.

HomeyScript does not have the permission to change device settings. Only device control(capabilities).