Sonos Fade-in and Fade-out [Advance flow]

Hi everyone,

wonder if anyone have created advance flow with Homey Pro 2023 to make fade-in and fade-out on the volume of Sonos speakers?

I want to use this fade-in and fade-out with different triggers. for example when motion is detected in a certain room with Sonos speakers, then play a song on Sonos with a fade-in using a duration time that also can be settable.

I know that in the past going back to 2019 someone made a transition app for this. but how about if we would like to translate this to advance flow or maybe it can be done differently with loops?