Adjusting and capturing device preferences from a rule

I am pretty sure there isn't a nice way to do this today, but please correct me if I missed something obvious.

It would be nice to be able to Get, Set, Capture, Restore device preferences from a rule. Where this comes up in my setups is motion lights which are controlled at the switch. Previously I used Jasco switches which let me get/set the motion sensor behavior with custom attributes and custom actions. I am in the process of switching these out for the new inovelli mmWave switches. I was able to achieve something similiar with their driver using there setParameter custom action. But this is rather annoying and not very readable. (setParameter(110, 1), setParameter(110,0))

It would be real cool if there was just a set preference action which used the preference names and values as configured in the device driver. Having this supported at the system level would reduce the need to pollute custom drivers with verbose custom actions, or to use obscure generalized custom actions.