Save setting without input()?

I’m working on some changes to an existing DTH for an Inovelli dimmer. The dimmer has an LED indicator that can be configured through the device configuration page, and offers 8 standard colors. The default is blue.
For my installation, I wanted to set the LED color dynamically through webCoRE, so I created a new method to do that which works.
My issue is that once I set the LED color in my new method to say red, the device configuration page still shows blue. I’ve done some research and know that the settings are normally set through the input() function. Is there a way through my new method where I can update the device configuration so that it will show red after I’ve updated it through the code?
Thank you!

Try -

# update (smartapp)
app.updateSetting(name, value)
settings[name] = value

# delete (smartapp)

# update (device)
device.updateSetting(name, value)
settings[name] = value

# delete (device)
1 Like

© 2019 SmartThings, Inc. All Rights Reserved. Terms of Use | Privacy Policy

SmartThings; SmartApps®; Physical Graph; Hello, Home; and Hello, Smart Home are all trademarks of the SmartThings, Inc.