This should work: This flow triggers a light when a motion sensor triggers, or a person enters the home location. With both events, the light turns off after 5 minutes, IF there’s no motion detected in the mean time
You can import it right away.
Open Device Capabilities settings
Hit ‘Templates’
Hit “AF Motion and presence activated Light/Device with Sunset condition”
.
Or use this (how to is in post #1 of the topic below)