Disable motion sensor when volume is above 2?

Hi there, first of all: How to help us help you - or How to ask a good question
So you can post the yaml which we can read properly instead of the screenshot.

If you look at the media_player Media Player - Home Assistant
Then you’ll see the range is between 0 - 1. 1 Being 100% volume 0 is 0$
You will have to figure out what 2 is in that range. Using a template in the dev tools you can see what it produces:

{{ state_attr('media_player.echo_dot_salle_de_bain', 'volume_level') }}