Driver updateSettings

You need to put the setting in the map for settings. You can also include the type.

device.updateSetting("logEnable",[value:"false",type:"bool"])

So, yours would be:

device.updateSetting("buttonVolume",[value: 50, type: number])