2026.6.22 — entry-gate: never suppress proven presence
🐛 Fix — entry-gate no longer suppresses real presence
The entry-gate (2026.6.19) blocked occupancy until a door-open was captured since the last CLEAR — trusting that every door-open is recorded. Two real situations broke that:
- a contact misses an open (Zigbee glitch), or
- the door is left open to air the room and the occupant walks in and closes it behind them → only a close-event fires.
In both cases a genuinely present occupant was suppressed. Observed live: an office showed CLEAR for ~83 min while BLE placed the phone in the room and mmWave fired continuously.
_entry_gate_blocks() now has two exemptions beyond "entry captured":
- Door currently open → free access, the gate stands down.
- Strong presence signal active — BLE device located in the room, or person-count > 0 — positive proof of presence, never suppressed.
Only ambiguous motion (PIR/mmWave) with a closed, never-opened door is still gated, preserving the anti-false-positive value for noisy motion sensors.
No config change — the gated rooms keep require_door_entry.