So far, the Device’s preferences cannot be configured dynamically or changed within the driver.
That was also the behavior of a DTH.
A custom capability’s presentation cannot be changed dynamically either, @blueyetisoftwarementioned he saw that somewhere but it’s not certain how they did it.
If you create a SmartApp Connector which is similar to the integration of Groovy using SmartApp + DTH but without having two separate files.
You can set the options to the configuration dynamically but the device execution would be in the Cloud (I’m guessing this is a LAN integration, right?)