After Effects Layer Properties Interaction
For the blur, just use the pick-whip to link the properties. you might want to read up on how to link properties with expressions using the pick whip.
For the opacity, you'll need some javascript. what you want to do is set the opacity of L1 to if L2 blur is 0 then 0, or else if it's not  equal to 1 then 100%.

let L2 = thisComp.layer(&quot;layer 2 name&quot;);
//use the pick whip to get the actual property name here
let blurAmt = l2.effect(&quot;Blur effect name&quot;)(&quot;Blurriness or whatever&quot;); 
//set the opacity to 0 if bluriness is 0 '===' means 'exactly equal to'
if (blurAmt === 0){
    0
} else if (blurAmt != 1) { //'!=' means 'not equal to'
    100
} else {
    ???? // you haven't specified what you want the opacity to be if L2's blur is 1
}