How to set device settings in Homey script

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