IMHO, I think you've answered your own question here. Set up the triggers and run with it.
I see that you've never posted here before, so I assume perhaps you're exploring hubitat. There is some great documentation out there on rules. Unfortunately, I'm not at home to put this together, but I see that no one has offered input, so I wanted to at least offer you a place to start.
You could get your feet wet by looking over some example rules that were compiled into a post as well.