Smart curtains controlled with motion sensor

Hello - I’m fairly new to Hubitat and am exploring options for smart curtains. The Switchbot seems to be a good device for turning my existing curtains into smart curtains.

Goal: Close curtains when a motion sensor detects motion for 1 minute. Open curtains when motion goes away for 5 minutes.

The reason for this is because I am running an Airbnb in the upstairs of my house and I want the curtains to close when guests are on hanging out on the front porch. This will give me privacy as I don’t want guests looking through the window into my portion of the house while they are on the porch.

Any suggestions and advise welcome! Thank you!