diff --git a/74_AMADDevice.pm b/74_AMADDevice.pm index 7808de8..9cfbe5b 100644 --- a/74_AMADDevice.pm +++ b/74_AMADDevice.pm @@ -105,6 +105,8 @@ sub AMADDevice_Initialize($) { "setTtsMsgLang:de,en ". "setVolUpDownStep:1,2,4,5 ". "setVolMax ". + "setNotifyVolMax ". + "setRingSoundVolMax ". "setAPSSID ". "root:0,1 ". "disable:1 ". @@ -416,6 +418,8 @@ sub AMADDevice_Set($$@) { my $method; my $volMax = AttrVal($name,'setVolMax',15); + my $notifyVolMax = AttrVal($name,'setNotifyVolMax',7); + my $ringSoundVolMax = AttrVal($name,'setRingSoundVolMax',7); if( lc $cmd eq 'screenmsg' ) { @@ -742,7 +746,7 @@ sub AMADDevice_Set($$@) { my $btdev = AttrVal( $name, "setBluetoothDevice", "none" ); - my $list = "screenMsg ttsMsg mediaGoogleMusic:play/pause,stop,next,back mediaSamsungMusic:play/pause,stop,next,back mediaAmazonMusic:play/pause,stop,next,back mediaSpotifyMusic:play/pause,stop,next,back mediaTuneinRadio:play/pause,stop,next,back mediaAldiMusic:play/pause,stop,next,back mediaYouTube:play/pause,stop,next,back mediaVlcPlayer:play/pause,stop,next,back mediaAudible:play/pause,stop,next,back screenBrightness:slider,0,1,255 screen:on,off,lock,unlock openURL nextAlarmTime:time timer:slider,1,1,60 statusRequest:noArg bluetooth:on,off notifySndFile clearNotificationBar:All,Automagic activateVoiceInput:noArg volumeNotification:slider,0,1,7 volumeRingSound:slider,0,1,7 vibrate:noArg sendIntent openCall closeCall:noArg currentFlowsetUpdate:noArg installFlowSource doNotDisturb:never,always,alarmClockOnly,onlyImportant userFlowState sendSMS startDaydream:noArg volumeUp:noArg volumeDown:noArg mute:on,off"; + my $list = "screenMsg ttsMsg mediaGoogleMusic:play/pause,stop,next,back mediaSamsungMusic:play/pause,stop,next,back mediaAmazonMusic:play/pause,stop,next,back mediaSpotifyMusic:play/pause,stop,next,back mediaTuneinRadio:play/pause,stop,next,back mediaAldiMusic:play/pause,stop,next,back mediaYouTube:play/pause,stop,next,back mediaVlcPlayer:play/pause,stop,next,back mediaAudible:play/pause,stop,next,back screenBrightness:slider,0,1,255 screen:on,off,lock,unlock openURL nextAlarmTime:time timer:slider,1,1,60 statusRequest:noArg bluetooth:on,off notifySndFile clearNotificationBar:All,Automagic activateVoiceInput:noArg vibrate:noArg sendIntent openCall closeCall:noArg currentFlowsetUpdate:noArg installFlowSource doNotDisturb:never,always,alarmClockOnly,onlyImportant userFlowState sendSMS startDaydream:noArg volumeUp:noArg volumeDown:noArg mute:on,off"; $list .= " screenOrientation:auto,landscape,portrait" if( AttrVal( $name, "setScreenOrientation", "0" ) eq "1" ); $list .= " screenFullscreen:on,off" if( AttrVal( $name, "setFullscreen", "0" ) eq "1" ); @@ -750,6 +754,9 @@ sub AMADDevice_Set($$@) { $list .= " system:reboot,shutdown,airplanemodeON" if( AttrVal( $name, "root", "0" ) eq "1" ); $list .= " changetoBTDevice:$btdev" if( AttrVal( $name, "setBluetoothDevice", "none" ) ne "none" ); $list .= " volume:slider,0,1,$volMax"; + $list .= " volumeNotification:slider,0,1,$notifyVolMax"; + $list .= " volumeRingSound:slider,0,1,$ringSoundVolMax"; + return "Unknown argument $cmd, choose one of $list"; @@ -1019,6 +1026,8 @@ sub AMADDevice_decrypt($) {