From ad5c1c90da9addc03c70e65f84827fc3c51c1f8f Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Mon, 20 Oct 2025 19:55:57 -0700 Subject: [PATCH] Update system.py --- modules/system.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/system.py b/modules/system.py index 68e737a..9bbf544 100644 --- a/modules/system.py +++ b/modules/system.py @@ -2022,9 +2022,11 @@ async def handleSentinel(deviceID): node_id = node['id'] distance = node['distance'] if str(node_id) in sentryWatchList and str(node_id) not in sentryIgnoreList: - if distance > sentry_radius: + if distance > sentry_radius and str(node_id) in sentryWatchList: + # Outside zone detectedNearby = f"{get_name_from_number(node_id, 'long', deviceID)}, {get_name_from_number(node_id, 'short', deviceID)}, {node_id}, {decimal_to_hex(node_id)} at {distance}m (OUTSIDE ZONE)" else: + # Inside the zone detectedNearby = f"{get_name_from_number(node_id, 'long', deviceID)}, {get_name_from_number(node_id, 'short', deviceID)}, {node_id}, {decimal_to_hex(node_id)} at {distance}m (INSIDE ZONE)" break # Only alert on the first found #logger.debug(f"handleSentinel: loop={handleSentinel_loop}/{sentry_holdoff}, detectedNearby={detectedNearby} closest_nodes={closest_nodes}")