Here is the scenario
Trigger will be occupancy sensor, on/off (and maybe timer event).
Person walks into area, gets detected i.e. on. Its not presence sensor, so the detector goes off even if the person is in the area just not moving/or being still. Some time passes (4 to 15 minutes), the person leaves, gets detected again (i.e. on), then leave the area, and sensor isoff again
Person would spend a minimum of 4 minutes in this area, but can also be as long as 15 minutes.
I would like to create an automation where I get a notification when the person enters (that easy), and then leaves the area. The latter is not so easy because there is a minumum time required.
I was thinking of using wait-for-trigger, with max 15 min timeout OR perhaps a timer?
If I do a wait-for-trigger, how do I make it so that it does not register the first cool-down of the occupancy sensor? add a min 4-minute delay or something?
thanks