Audio safe volume

tom0ne

Member
@Jacob L
@mapriex

Hello,

I have tested the macro system detector change,

I have a popup sometime but not each time, it is random when i change a parameter in system.

In journal there is not all log, for exemple with sharing data parameter or data usage - see it in videoscreen please

I just test "volumelimit_on" in macrodroid and it did not work 😭

What do you think about?

 

Attachments

  • Screenshot_20240405_212601_MacroDroid.jpg
    Screenshot_20240405_212601_MacroDroid.jpg
    70.3 KB · Views: 6
  • Screenshot_20240405_214606_MacroDroid.jpg
    Screenshot_20240405_214606_MacroDroid.jpg
    411.4 KB · Views: 5
Last edited:

tom0ne

Member
i think this is the command you need to set. if this is set to off, then your other command won't work anyway.
how did you test it?
volumelimit_on 1?
Hello Friend,

I have tested
volumelimit_on 1
And
volumelimit_on 0

Two times each, one time with the command is set to off and an other time with the command is set to on.

absolutly nothing change abd there is ni log when i try the command with macro.

i have no more idea now?

And you? 😊
 

tom0ne

Member
Hello friend

Please see the screenshots below

And video here
Thanks a lot
 

Attachments

  • Screenshot_20240407_022721_Settings.jpg
    Screenshot_20240407_022721_Settings.jpg
    213.5 KB · Views: 4
  • Screenshot_20240407_022638_MacroDroid.jpg
    Screenshot_20240407_022638_MacroDroid.jpg
    389.5 KB · Views: 4
  • Screenshot_20240407_022553_MacroDroid.jpg
    Screenshot_20240407_022553_MacroDroid.jpg
    323.9 KB · Views: 4
Last edited:

mapriex

Active member
i see that this works. how should we continue?

maybe you explain your main problem again and then we try to find the right macro since we have the necessary variables now.
 

tom0ne

Member
Hello friend,

As i told it,
I want to enable volumelimit parameter when macrodroid detects that the airpods BT are connected.
Not less not more 😋

Is there something not enought explained from me? I'm sorry but my english is not perfect then i perhaps forget to explain something

See you

Tom
 

mapriex

Active member
ok, then this it:
t: bluetooth device connects
t: bluetooth device disconnects

a: if bluetooth device connected:
a: wait 1 sec
a: volumelimit_on = 1
a: wait 1 sec
a: audio_safe_volume_state = 3
a: else
a: wait 1 sec
a: volumelimit_on = 0
 

tom0ne

Member
😋😋😋,
Thanks a lot @mapriex 💚💚,
It is working very well and i learn a lot of things about conditions.
Thanks a lot for this!!
Just two things,
1 - the slider of "limit media volume" stay activated, the macro is working but not changing the slider status (please see in the screenvideo here)

2 - there is an Android EU popup alert about "limit media volume"
See picture please
Is it possible to desactivate it?

Thanks a lot Friend,
 

Attachments

  • Screenshot_20240409_204526_MacroDroid.jpg
    Screenshot_20240409_204526_MacroDroid.jpg
    641 KB · Views: 5
  • Screenshot_20240409_205920_Settings.jpg
    Screenshot_20240409_205920_Settings.jpg
    384.4 KB · Views: 5

mapriex

Active member
hey,

if you compare the macro:
action1 was right.
just copy it and write = 0

you have [system] xxxxyx and then volumesetting

also for the adio save volume state: write only: [system] audio_volume_ state 3

yes, you can auto-accept the pop-up, but first use correct variables.
 

tom0ne

Member
hey,

if you compare the macro:
action1 was right.
just copy it and write = 0

you have [system] xxxxyx and then volumesetting

also for the adio save volume state: write only: [system] audio_volume_ state 3

yes, you can auto-accept the pop-up, but first use correct variables.
Friend,
I’m not sure to understand,
Do you mean like these screenshots ?
(If BT actiavted then volumesetting 1 volumesetting and audio_volume_ state 3
+
If BT desactivated then volumesetting 0 and and audio_volume_ state 3)

Variables are corrects now ?

Thanks Friend
 

Attachments

  • Screenshot_20240411_012403_MacroDroid.jpg
    Screenshot_20240411_012403_MacroDroid.jpg
    569.3 KB · Views: 3
  • Screenshot_20240411_012415_MacroDroid.jpg
    Screenshot_20240411_012415_MacroDroid.jpg
    567.8 KB · Views: 3
Last edited:

mapriex

Active member
no, only the first variable is right. the others must look like this at the end:


btw you dont need the disconnected function in the action list, an else alone is just fine.
 

Attachments

  • Screenshot_20240411-101811.png
    Screenshot_20240411-101811.png
    373 KB · Views: 6

tom0ne

Member
no, only the first variable is right. the others must look like this at the end:


btw you dont need the disconnected function in the action list, an else alone is just fine.
😋😋😋👍🏽👍🏽👍🏽
Thanks a lot Friend, very clear writing like this, (screenshot 1)
Thanks a lot for this
The macro is working perfectly.

just three more things :
1 - the slider (audio_safe_volume_state 3 ) in parameter center do not refresh automatically, i need to close parameters center and open it again for to see the cursor th change.
(Perhaps there is a command for auto refresh screen? it is not a big problem at all. (Screenshot 2)

2 - the command audio_safe_volume_state 3 activate the limite volume slider when airpod are connected but the slider statut not change when airpod are disable. I have tried to change the value to 0 or 1 or 2, it is the same problem

3 - i need to add a command for auto-accept the sound limitation popup alert
( Screenshot 3)

Could you help me again? 😄

Thanks a lot and sorry for disturbing you every day😳
 

Attachments

  • Screenshot_20240412_012558_MacroDroid.jpg
    Screenshot_20240412_012558_MacroDroid.jpg
    445.1 KB · Views: 3
  • Screenshot_20240412_005930_Settings.jpg
    Screenshot_20240412_005930_Settings.jpg
    364.7 KB · Views: 3
  • Screenshot_20240412_010356_Settings.jpg
    Screenshot_20240412_010356_Settings.jpg
    496.3 KB · Views: 3
Last edited:

mapriex

Active member
2 - the command audio_safe_volume_state 3 activate the limite volume slider when airpod are connected but the slider statut not change when airpod are disable. I have tried to change the value to 0 or 1 or 2, it is the same problem
its not needed, if you just use volumelimit_on = 0
you can delete the other variabld with audio safe state in the else clause.


3 - i need to add a command for auto-accept the sound limitation popup alert
( Screenshot 3)
it can be solved with ui interactions, but display needs to be on. can you confirm, if you enables bluetooth, the device will show the display?

if you your device won't be displayed then you need a pin-unlocker macro to display the screen.
 

tom0ne

Member
its not needed, if you just use volumelimit_on = 0
you can delete the other variabld with audio safe state in the else clause.



it can be solved with ui interactions, but display needs to be on. can you confirm, if you enables bluetooth, the device will show the display?

if you your device won't be displayed then you need a pin-unlocker macro to display the screen.
Hello friend,

Thank you for your loyalty and availability,

Please check the vidéo

You can see two things :
1 - At the end of the vidéo, you can see that the limite volume slider is always enable, with volumulimite=0 and volumelimit=1.
It is never modified.

2 - The device do not show the volume alert display when the macro is activated.
The device only show the display when i up the volume.

Was it your questions?

Thanks a lot

Thomas
 

Attachments

  • Screenshot_20240412_231727_MacroDroid.jpg
    Screenshot_20240412_231727_MacroDroid.jpg
    390.2 KB · Views: 4
Top