OK. I think I follow the intent.
You UNMUTE when the door is OPENED, immediately. That’s the easy part. Let’s move on…
To MUTE, a little more involved, but still not bad at all. First of all, the door rule is simply this: device state, door sensor, Tripped is FALSE, + option “sustained for” 300 seconds. When that condition goes true, the door has been closed for five minutes, and it’s time to re-mute those phones, but only for folks that aren’t home. That can be structured with groups, like this:
Root group - NUL (we don’t care about the tripped state of the ReactorSensor itself)
- Group “Door Closed a While” - OR
- Device State, door sensor, Tripped is FALSE + option “sustained for” 300
- Group “Mute Mary’s Phone” - AND
- Group State, this reactor sensor, “Door Closed a While” is TRUE
- Device State, iPhone Locator, Mary is home
- Group “Mute Jack’s Phone” - AND
- Group State, this ReactorSensor, “Door Closed a While” is TRUE
- Device State, iPhone Locator, Jack is home
- Group “Mute Tommy’s Phone” - AND
…etc…
See the pattern? I’ve defined a group called “Door Closed a While” that goes true when the door has been closed continuously for five minutes (it goes false immediately when the door is opened–you can use this fact!). Then, we create additional groups for each phone, checking the state of the phone in an AND group that also checks the state of that “Door Closed a While” group–if the person/phone is still home and the door has been closed long enough, the group goes true. You put your action on each of these groups “Mute zzz’s Phone is TRUE” activities to re-mute each phone individually.
The “Group State” condition lets us use the state of another group, basically making that rule re-usable. This is a simple rule, and you could code it directly on each Mute group, but that is less efficient and doesn’t demonstrate how you can make and re-use blocks of logic. Start early!
Now–for handling door opened. As soon as the door is opened, it just so happens that “Door Closed a While” will go false immediately, so as I said above, we can use that fact and simply put all of your unmute actions for all phones in the “Door Closed a While is FALSE” activity. You’ve now done everything you need to do in one ReactorSensor.
Note: The “sustained for”, by the way, will reset its timer if the door is opened during the wait for it to be closed long enough. That gives you that reset you were looking for. The “sustained for” and “delay reset” timers are resettable.