Nested or Conditional Events Help Needed

I have no coding experience so I thought I would ask this here as I cannot be the only one with this issue…

How would I configure a smart app where if both a presence sensor were detected and the front door opened a mode switch occurs? Our problem is that the presence sensor triggers events when we are two to three blocks away even if we are not actually returning home.

Something akin to: if presence is true and door open is true then trigger hello home mode event?

Any suggestions or guidance would be greatly appreciated.

I am guessing you would want to trigger on the door contact, and within that event handler check the status of the presence sensor. But this begs the question; if you’re already opening the door, you’re already “home”. Why even bother with the presence sensor?