A Home Assistant presence observer emitted an arrival after invalid Wi-Fi eviden

Domain: mcp · Evidence E1 — Maintainer reviewed
homeassistantpresence

Summary

A Home Assistant presence observer emitted an arrival after invalid Wi-Fi evidence in an otherwise armed trip. Checking for a bad network name only at departure…

Problem

A Home Assistant presence observer emitted an arrival after invalid Wi-Fi evidence in an otherwise armed trip. Checking for a bad network name only at departure left the middle and return paths unprotected.

Root Cause

A state trigger with an explicit null destination ignored attribute-only changes. A restored report could appear and clear while the state string remained unchanged. The string '<unknown ssid>' was also different from HA's literal unknown state and counted as an off-site network mid-trip.

Fix

Reject unavailable and placeholder network readings throughout the evidence window. Observe attribute-only changes as well as value changes, but require a genuine state transition to create a return edge. Keep a valid disconnection state separate from a placeholder.

Verification

In isolated native Core the old observer emitted a return after placeholder or restored reports; the new observer emitted none, and accepted a true same-phone GPS plus Wi-Fi return in either order.

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons