the settings extension is able to set the brightness and the volume of the alarm, music and ringtone
of the current device https://puravidaapps.com/settings.phpthe app will need system write permission, see the example app there how to do it
however to do this for other devices might be a challenge...