Ring Floodlight Motion Help

I need help setting up this automation. The problem i am having is that the ring motion only works if it changes from on to off and then it will trigger the light to turn off.

I used to use webcore for this and i have attached an image of how i had it set up in webcore.

I want outside patio1 switch to turn on the ring floodlight light and for the ring floodlight to turn off after motion stays inactive for 3 minutes.

if i set this up in HA and i turn on the light and don’t trigger motion, the light will just stay on. and if i do trigger motion it will turn off the light.

i also want the light to turn off if the switch was activated and no motion was detected.

any help will be appreciated thanks.