Modify Preference Input?

Is it possible to change an input preference through code inside of the device?

I don’t believe so. What are you trying to do?

@Dianoga I’m trying to create an option with an autodiscover option if users don’t know what to put. So after it runs it will automatically change the setting for them. This is for the Foscam device type I created and it’s using hubaction commands and it’s a little slow to have the device run a query every time a command is run.

I wanted to something similar for when a user enters an invalid value, I could ‘push’ back the closest valid value as part of input validation. Something like that would make it more obvious to user that they didn’t enter it correctly. Alas, I’ve not figured out a way to do this yet.