(command: list[str])
| 1993 | f"\U0001F441️ {who} detected — a monitored space is now occupied.", |
| 1994 | title="RuSense — Presence", priority=1) |
| 1995 | # Log the sighting whether or not the phone alert fired, so it |
| 1996 | # stays reviewable (geofence walk-by is not logged). |
| 1997 | _rusense_open_sighting(now, conf, people, cls.get('motion_level'), vitals) |
| 1998 | elif p_fell: |
| 1999 | # Defer the close; finalized below if no re-entry within the window. |
| 2000 | _rusense_notify_state['pending_close_ts'] = ( |
| 2001 | now if _rusense_notify_state.get('open_sighting') is not None else None) |
| 2002 | |
| 2003 | # Finalize a deferred close once the grace window elapses with no re-entry. |
| 2004 | pending = _rusense_notify_state.get('pending_close_ts') |
| 2005 | if pending is not None and (now - pending) > _RUSENSE_SIGHTING_MERGE_S: |
| 2006 | if alerts_now: |
no test coverage detected