Skip to content

fix(drone): reliable detection notify + self_id, graceful unknown-make#48

Merged
ifnull merged 1 commit into
mainfrom
fix/drone-notify
Jun 19, 2026
Merged

fix(drone): reliable detection notify + self_id, graceful unknown-make#48
ifnull merged 1 commit into
mainfrom
fix/drone-notify

Conversation

@ifnull

@ifnull ifnull commented Jun 19, 2026

Copy link
Copy Markdown
Owner

The example "drone detected" automation triggered on numeric_state above: 0, which fires only on the single 0->1 crossing of the drone count. A second drone arriving while one was already tracked (1->2), or a re-detection before the count fell back to 0, was silently missed — the "doesn't always fire" report. Switch to a state trigger gated on the count increasing, which catches every new drone.

The message only rendered FAA make/model and fell back to "Unknown drone" whenever the registry couldn't resolve the serial (off, or a spoof/test serial not in the FAA DOC set) — the "unknown values" report. It now degrades make/model -> UA type -> "Drone" and adds self_id + AGL, so it stays useful without a registry hit.

Plumb the Remote ID Self-ID message (self_id) through DroneInfo -> parse -> DronePayload so the broadcast description (e.g. "Spoofing test") reaches HA. Additive optional payload field; no schema_version bump.

The example "drone detected" automation triggered on `numeric_state above: 0`,
which fires only on the single 0->1 crossing of the drone count. A second drone
arriving while one was already tracked (1->2), or a re-detection before the count
fell back to 0, was silently missed — the "doesn't always fire" report. Switch to
a state trigger gated on the count increasing, which catches every new drone.

The message only rendered FAA make/model and fell back to "Unknown drone"
whenever the registry couldn't resolve the serial (off, or a spoof/test serial
not in the FAA DOC set) — the "unknown values" report. It now degrades make/model
-> UA type -> "Drone" and adds self_id + AGL, so it stays useful without a
registry hit.

Plumb the Remote ID Self-ID message (`self_id`) through DroneInfo -> parse ->
DronePayload so the broadcast description (e.g. "Spoofing test") reaches HA.
Additive optional payload field; no schema_version bump.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ifnull ifnull merged commit a4fd376 into main Jun 19, 2026
3 checks passed
@ifnull ifnull deleted the fix/drone-notify branch June 26, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant