When being called lowe volume on my sonos

Hi All, I was wondering if I can reduce my volume on my sonos when being called on my Iphone when I’m at home. Now I have te turn te volume down bu I want this action te be “smart”. Has anyone done this already? may i see the YAML?

Looking forward your reply,