Back to SONOFF Guides
SONOFF

Why Is Sonoff Door Sensor Showing Frequent Open-Close Flapping?

SONOFF GuideSmart Sensors
easy difficulty 10-15 minutes 25 views 0 found helpful Where this fix applies: Global Updated
This guide applies to: SONOFF Sonoff Contact Sensor Flapping (Sonoff magnetic contact stability)
At a glance — most common causes
  • Magnet gap right at the detection threshold
  • Two halves slightly misaligned
  • Loose mounting vibrating
10-15 minutes13 solutions coveredeasy level

Expert Review & Technical Scope

DeviceSONOFF Sonoff Contact Sensor Flapping
Model CoverageSonoff magnetic contact stability
Fix Time10-15 minutes
DifficultyEasy
Required Toolsreplacement battery, mounting tape or screws
Network / ProtocolWi-Fi / app-based troubleshooting context

Problem Description

Your SONOFF SNZB-04 contact sensor rapidly alternates between open and closed states — sometimes dozens of times per minute — even when the door is not moving. This 'flapping' triggers repeated automation runs, fills up event logs, and drains the battery. It happens when the magnet sits right at the reed switch activation threshold, where tiny vibrations cause the contacts to bounce.

Why This Happens in Real Homes

A SONOFF door sensor flapping between open and closed usually has its magnet gap sitting right at the detection threshold — so tiny movements (a door rattling in a draft, a slightly loose mount, or vibration) push it just across the line repeatedly, producing phantom open/close events. It's a borderline alignment issue.

Bring the two halves closer together and align them precisely so the closed gap is well within the detection range, not on the edge, and re-secure both halves firmly (fresh adhesive or screws) so nothing shifts or vibrates. A shim can keep the gap consistent on an uneven frame. Replace a low battery, strengthen the mesh, and reduce interference. A solid, well-within-range alignment stops the flapping.

Symptoms

  • Rapid open/close flapping
  • Sensor toggles repeatedly
  • Phantom open/close events
  • Flapping state
  • Repeated triggers without use
  • State bounces
  • Erratic open/close
  • Nuisance flapping alerts

Recognize these? Here's what usually causes it.

Common Causes

  • Magnet gap right at the detection threshold
  • Two halves slightly misaligned
  • Loose mounting vibrating
  • Weak signal causing flaky reports
  • Low battery
  • Door/frame movement (drafts, HVAC)
  • Adhesive shifting
  • Interference

Most fixes happen in the first 3 steps.

Warning

Do not leave noisy flapping sensors in security-critical automations.

Tools & Requirements

replacement batterymounting tape or screws

Step-by-Step Solution

1

Check the magnet gap distance

Open-close flapping (rapid alternation between open and closed states) happens when the magnet is right at the reed switch's activation threshold. The magnetic field is just barely strong enough to close the reed switch — any vibration (wind, foot traffic, HVAC vibration) causes the contacts to bounce. Fix: move the magnet closer to the sensor (reduce the gap to under 10mm). When the gap is too large (15-20mm), the reed switch is in a marginal zone where small vibrations cause rapid state changes. You should hear a definitive 'click' through the sensor body when the door closes if the magnet is close enough.

2

Secure the sensor and magnet mounting

If the adhesive has weakened and the sensor or magnet has shifted even slightly from its original position: the gap changes and causes flapping. Press on both the sensor and magnet to check if they are firmly attached. If either one moves or rocks: remove it, clean the surface with isopropyl alcohol, and reattach with fresh 3M VHB tape (included with the SNZB-04) or a small dab of E6000 adhesive. For metal door frames: the metal can interfere with the magnetic field — mount the sensor on the door (wood) and the magnet on the frame, not the other way around.

16 Pieces Double-Sided Mounting Tape Compatible with Govee RGBIC Light Panels H6061 / H6066 / H6067 – High Bond Adhesive, Easy to Remove Without Damage

Needed for this step

16 Pieces Double-Sided Mounting Tape Compatible...

This helps complete the fix you are currently reading.

$5.89
View Needed Item
3

Check for nearby magnetic interference

Other magnets near the sensor can cause false triggers. Common sources: magnetic door catches, speaker magnets, magnetic phone mounts, or even another SNZB-04 sensor mounted on an adjacent door. If two contact sensors are within 50mm of each other: their magnets can cross-trigger the other sensor's reed switch. Space sensors at least 100mm apart. Also check for large ferrous metal objects (steel door frames, iron railings) near the sensor — they can redirect the magnetic field in unexpected ways.

4

Add debounce in your automation platform

If the physical installation is correct but you still get occasional false open/close events (1-2 per day): add debounce logic in your automation. In Home Assistant: use a template sensor with a delay filter, or add a 'for:' condition in your automation trigger (e.g., 'trigger when state is open for at least 3 seconds'). In eWeLink scenes: there is no built-in debounce, but you can add a condition that checks if the sensor has been in the new state for more than a set duration before triggering the action. This filters out sub-second flaps.

5

Replace the sensor if the reed switch is worn

Reed switches have a mechanical lifespan. After hundreds of thousands of cycles (years of use on a frequently opened door), the reed contacts can develop pitting or micro-welding that causes intermittent contact — the switch 'bounces' between open and closed on its own. If you have tried all alignment and mounting fixes and the sensor still flaps: the reed switch is likely worn. Replace the SNZB-04. They are inexpensive ($8-10 USD) and re-pairing to the Zigbee Bridge takes 30 seconds.

Quick Solutions

Reduce the gap / realign the halves closer
Re-secure both halves firmly
Add a shim to keep the gap consistent
Replace the battery
Strengthen the Zigbee mesh
Stabilize a moving/rattling door
Re-apply fresh adhesive if shifting
Reduce interference (WiFi channel)

Still having issues? This is usually the deeper cause below.

If this comes back after following these steps, check whether a recent app or firmware update reset a default setting — the fix works, but the setting gets reverted silently.

Pro Tip

Contact sensor alignment should be verified after any door hardware shift.

Real-World Insight

This issue almost always looks more complex than it is — the majority of cases trace back to a single setting, a stale credential, or a default that shipped wrong.

What Usually Goes Wrong
  • Magnet gap right at the detection threshold
  • Two halves slightly misaligned
  • Loose mounting vibrating
  • Weak signal causing flaky reports
  • Low battery
Best Sonoff Contact Sensor Flapping Options

Most popular upgrades chosen by Sonoff Contact Sensor Flapping owners.

As an Amazon Associate we earn from qualifying purchases.

Official Manufacturer Manual

SONOFF provides official product documentation through their online manual rather than downloadable PDF. Access setup guides, troubleshooting steps, and product specifications for your Sonoff Contact Sensor Flapping.

View Sonoff Contact Sensor Flapping Online Manual

Source: sonoff.tech

Need More Help? SONOFF Support

Note: The contact information below connects you directly to SONOFF's official customer support team, not Trunetto. They can help with warranty claims, device replacements, and advanced technical issues.