How do you change device parameters I Hubitat

Note that there are two versions floating around. The code linked above is for 2.2.3 and later. Earlier platform versions need this: