Repository navigation
Update IR/RF receiver state only on recognized signals #1569
ProblemIR and RF receiver entities (#1372, #1487) update their state (last received timestamp) on every received signal. Receivers pick up a lot of noise (especially cheap 433 MHz ones), signals from unrelated remotes, and repeated frames. Each one becomes a state change: recorder row, logbook entry, websocket message, and state listeners (including consumer availability tracking). Proposed changeOnly update the state when a consumer recognizes the signal (suggested in #1372). Subscriber callback changesThe In order to avoid breaking custom integrations, we should deprecate the existing callback Changelog:
|
Replies: 4 comments 1 reply
|
I think that we should only update the state when a consumer recognized a signal. If we want to have a user see a flash flood of signals, we could always add a dev tool for this in the RF connectivity page. |
|
Numbers from the receiver side (HAIR consumes these receivers, BroadSniff provides them): an Athom RF/IR puck on ESPHome’s remote_receiver at filter 150us, idle 6ms gives roughly 750 to 1100 captures an hour in a quiet office and 12000 to 17000 in a noisy stretch, and tighter filters trimmed that by under ten percent before eating real frames. A fixed-code remote arrives as one frame per capture, so a consumer only knows it has a press once two or three agree. Whatever the state does, the subscriber callback has to deliver every signal untouched; the proposal keeps that, so the 5 s state throttle is fine from HAIR’s side. The consumer-gated version is the better definition, and HAIR already draws that line: static and unknown remotes do nothing, a recognized press lights the receiver and counts. The simplest shape with no protocol knowledge in core is the subscriber callback returning whether it recognized the signal, and the platform writing state when any subscriber says yes. It needs a floor though: a receiver with no consumer, or one hearing a remote not yet learned, would sit at unknown forever and “my receiver does nothing” becomes the first question on every thread. The 5 s throttle when no subscriber claimed the signal, or a last_signal_at attribute the recorder does not keep, would cover it. Happy to share the hour-long noise captures as a fixture. 🍻 ~ DAB |
|
The architecture meeting discussed this on 2026-11-26 and approved the proposal: "Update the state only when consumed.". |

The architecture meeting discussed this on 2026-11-26 and approved the proposal: "Update the state only when consumed.".