feat: add doorbell event detection and MQTT status publishing#408
Open
anrp wants to merge 2 commits into
Open
Conversation
Also decode multiple motion events from comma-separated status Co-authored-by: aider (openai/Qwen/Qwen3.6-27B) <aider@aider.chat>
Author
|
Tested interactively with https://reolink.com/__/product/reolink-video-doorbell/ |
privatecoder
added a commit
to privatecoder/neolink
that referenced
this pull request
Jun 17, 2026
…ngledAndy#408) (0.7.10) Detect a doorbell/visitor button press as a distinct event (separate from motion) and publish it over MQTT as a Home Assistant event entity. - motion.rs: new pure decode_alarm_events() splits comma-separated alarm statuses — "visitor" -> Doorbell, motion types -> Start, "none" -> Stop — aggregating all events (no collapse). Motion semantics for RTSP gating are preserved; "visitor" no longer counts as motion. - mdthread.rs/neocam.rs/instance.rs: doorbell presses are emitted on a new broadcast (NeoInstance::doorbell_events()) fed by the existing md thread — no second camera subscription, no Doorbell variant on the MdState watch. - config.rs: per-camera enable_doorbell (default off, opt-in). - mqtt/mod.rs: when enabled, publish {"event_type":"press"} (non-retained) to neolink/{camera}/status/doorbell; graceful no-op otherwise. - discovery.rs: new DiscoveryEvent DTO; "doorbell" feature -> HA event entity (device_class doorbell, event_types ["press"]). - README/changelog updated. 8 new decoder tests + config/discovery tests. Adapted from upstream QuantumEntangledAndy#408 — tailored to this fork (event-broadcast model, HA event entity), not a blind port. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Also decode multiple motion events from comma-separated status