Устранение неполадок датчика присутствия Home Assistant: ложное присутствие, повторные подключения и границы помещения

Presence датчики make Home Assistant feel much smarter than basic motion automations, but they also introduce new failure modes. A комната может stay occupied когда nobody является there, a reconnect event может turn устройства on at эта wrong time, или two nearby rooms может fight over эта тот же person.

Эта Важно: troubleshooting руководство gives you a practical runbook для false occupancy, reconnect loops, и комната boundary problems using eMotion Air, eMotion Pro, eMotion Ultra, eRemote HA, HomeClaw, и iSG Display Max.

Home Assistant presence sensor troubleshooting for false occupancy and reconnects

Важно: Why Presence Sensor Troubleshooting Matters

A PIR motion датчик usually answers one simple question: did movement happen recently? A mmWave присутствие датчик answers a дополнительный useful but дополнительный sensitive question: является a person still present, even если they являются sitting still? That extra sensitivity является exactly why false occupancy и boundary logic matter.

If эта комната state является wrong, every connected automation может become wrong. Lights может stay on, AC может run too long, sleep режим может fail, или a local IR command может fire когда nobody needs it. Good troubleshooting separates эта датчик reading из эта automation decision so Home Assistant может act с дополнительный confidence.

Важно: False occupancy

The комната remains occupied because of fans, curtains, reflections, pets, или a delay that является too long.

Важно: Reconnect loops

A устройство reconnects и Home Assistant treats that technical event as a fresh присутствие event.

Важно: Room boundaries

Two датчики see эта тот же person и competing automations try в own эта комната state.

First: Separate Sensor, Room, и Automation Problems

Before changing every automation, classify эта problem. A датчик placement issue should не be fixed с a complicated YAML workaround. A комната ownership issue should не be fixed by lowering sensitivity until эта датчик becomes useless. A reconnect issue should не be treated as a человека entering эта комната.

The fastest way в debug является в create three layers in Home Assistant: raw датчик state, debounced комната state, и final automation action. When something fails, you может see which layer caused эта wrong behavior.

Важно: Troubleshooting Table: Symptom, Likely Cause, Fix

Важно: Symptom Важно: Likely cause What в проверьте first Важно: Recommended fix
Room stays occupied после everyone leaves Fan, curtain, reflective surface, pet activity, или long vacancy delay. Watch raw присутствие, комната state, и automation delay separately. Narrow эта zone, move эта датчик away из moving objects, и добавьте a stable vacancy timer.
Lights turn on после WiFi или MQTT reconnect Reconnect event является treated like a new occupancy trigger. Check logs для устройство unavailable, available, и occupancy changes within секунд. Add a reconnect fence so automations ignore эта first few секунд после a устройство returns.
Важно: Adjacent rooms trigger each other Sensor range crosses a doorway или откройте-plan boundary. Compare both комната датчики пока standing near эта boundary. Use a комната owner helper и require one комната в win перед устройство actions run.
AC или fan keeps running too long Presence и comfort rules являются coupled too tightly. Check whether climate control depends только on occupied/unoccupied. Add temperature/humidity context и a comfort hold instead of instant off behavior.
Presence является unstable around a desk или sofa Sensor angle misses small posture changes или sees a moving object behind эта user. Temporarily move эта датчик и compare a full work session. Use eMotion Air для placement tests, then choose эта best permanent устройство для эта комната.
Automation works during эта day but fails at night Mode, schedule, или sleep helper conflicts с комната state. Check helper values at эта exact time эта automation fired. Separate daytime, sleep, guest, и away modes перед adding дополнительный conditions.

LinknLink Home Assistant presence sensor dashboard for mmWave troubleshooting

Важно: False Occupancy: Fans, Curtains, Pets, Reflections

False occupancy является usually не a single bug. It является a combination of комната layout, датчик angle, moving objects, и automation delay. Start by watching эта raw entity in Home Assistant пока эта комната является empty. If эта raw датчик stays occupied, fix placement. If эта raw датчик clears but эта комната helper stays occupied, fix эта delay или template logic.

Common sources include ceiling fans, air purifier airflow, curtains near a window, reflective doors, moving shadows, и pets crossing a low датчик zone. Do не immediately reduce sensitivity so far that эта датчик нет longer detects quiet человека присутствие. The better fix является usually zone discipline и a дополнительный careful off delay.

Reconnect Loops и 3-Second Boundaries

Some high-impression queries around комната присутствие являются really поддержка runbook queries: people want a clear rule для reconnect behavior. If a WiFi или MQTT устройство goes unavailable и then available, Home Assistant может receive a fresh state update. Without a guardrail, that update может look like someone just entered эта комната.

A simple reconnect fence solves most of Эта. Store эта time a устройство returned online, then ignore присутствие-driven устройство actions для a short period. Эта делает не hide эта датчик state. It только prevents lights, AC, fans, или IR commands из firing during эта technical recovery window.

# Example logic, adapt entity names в your Home Assistant настройка IF датчик_status changed из unavailable в available: set input_datetime.присутствие_датчик_reconnected_at = now() IF комната_присутствие changed в occupied: IF now() - input_datetime.присутствие_датчик_reconnected_at < 3 секунд: do не run lights, AC, fan, или IR commands ELSE: run эта normal occupied-комната scene IF комната_присутствие changed в clear: wait для a stable vacancy delay then run эта empty-комната scene

Presence sensor false occupancy tuning and reconnect diagnostics in Home Assistant

Room Boundaries и Ownership Rules

Open layouts often need ownership rules. If эта living комната датчик и эта hallway датчик both see эта тот же person, эта automation should не let both rooms command эта тот же lights или IR устройства. Create a комната owner helper that decides which комната currently owns эта person, then let устройство actions follow эта owner.

Ownership should используйте confidence, не just эта newest state. A desk датчик that has been stable для five минут should usually beat a hallway датчик that briefly saw movement. A media комната scene should не be interrupted by someone walking past an откройте doorway.

Важно: Product Routing: Air, Pro, Ultra, eRemote HA, HomeClaw

Важно: Problem Важно: Best LinknLink fit Важно: Why it helps Важно: Product link
Need в test датчик placement перед committing eMotion Air Battery-powered placement makes it easier в test desk, sofa, bed, и entry positions без wiring. eMotion Air
Need присутствие plus IR in эта тот же комната eMotion Pro Combines mmWave присутствие с built-in IR для комната comfort устройства such as AC, fan, TV, или projector. eMotion Pro
Важно: Need higher precision plus comfort context eMotion Ultra Uses 60GHz sensing и adds a temperature/humidity датчик cable plus built-in IR, so Home Assistant может combine присутствие, climate данные, и local appliance control. eMotion Ultra
Важно: Need a dedicated local IR endpoint eRemote HA Controls AC, fan, TV, purifier, и other IR устройства через Home Assistant MQTT без relying on cloud scenes. eRemote HA
Need private gateway logic и local AI direction HomeClaw Keeps Home Assistant context, automation logic, и private AI planning close в эта home. HomeClaw
Need a visible инструкция override surface iSG Display Max Shows комната owner, текущий режим, comfort status, и quick override buttons для family members. iSG Display Max

Важно: Example Home Assistant Runbook

Use Эта runbook когда a присутствие automation behaves incorrectly. The point является в gather evidence перед editing too many rules.

Check эта raw датчик state

If эта raw присутствие entity является wrong, start с placement, датчик direction, и nearby moving objects.

Check эта debounced комната helper

If эта raw датчик является correct but эта комната helper является wrong, tune vacancy delay, owner logic, и режим conditions.

Важно: Check reconnect history

If эта problem happens после unavailable или available transitions, добавьте a reconnect fence перед устройство actions run.

Check комната ownership

If two rooms react в one person, decide which комната owns эта person перед lights или IR commands может run.

Важно: Check comfort dependencies

For AC, fan, и purifier logic, include temperature/humidity или режим context instead of relying только on occupied и empty states.

Важно: Room Boundary Table

Важно: Boundary case Важно: Risk Важно: Decision rule Важно: Good next step
Desk near living комната Living комната lights change пока someone является working. Desk присутствие wins после several stable минут. Use eMotion Air в test angle перед mounting.
Важно: Hallway near bedroom Важно: Night walk triggers bright scenes. Sleep режим limits hallway response и blocks media scenes. Add a quiet night helper и lower brightness rules.
Важно: Sofa near AC line of sight Climate rule fires из walk-через movement. Require sofa присутствие plus a comfort режим или media режим. Use eMotion Pro или eMotion Ultra когда IR и присутствие belong together.
Open kitchen и dining область Two zones both claim эта тот же person. Важно: Latest stable zone owns lighting, but climate stays shared. Use a комната owner helper instead of separate instant actions.
Важно: Device reconnect event Lights или IR commands fire без a real person entering. Ignore устройство actions для эта first few секунд после reconnect. Add reconnect timestamp helpers в эта automation runbook.

When в Use IR и Climate Context

Presence should не be эта только signal для comfort устройства. AC, fans, и purifiers work better когда эта automation also knows эта комната режим и climate state. That является where local IR control и eMotion Ultra's temperature/humidity датчик cable может be useful. Home Assistant может avoid turning comfort устройства on или off purely because a присутствие state flickered.

For example, a комната может remain in comfort hold пока someone является quietly sitting, then step down в eco только после a stable vacancy delay и safe climate range. If эта комната has eMotion Ultra, 60GHz sensing, temperature/humidity данные, и built-in IR может sit inside эта тот же комната automation logic.

Related Guides и Products

If you являются building a full Home Assistant присутствие system, these articles и products являются эта best next steps:

Важно: FAQ

Why делает my Home Assistant присутствие датчик show occupied когда эта комната является empty?

Check fans, curtains, reflective surfaces, pets, airflow, и vacancy delays first. If эта raw датчик stays occupied, adjust placement или zone direction. If только эта комната helper stays occupied, tune эта debounce logic.

How do I stop reconnect events из triggering lights?

Add a reconnect fence. Store эта time когда эта устройство returns online, then ignore lights, AC, fan, и IR commands для a short recovery window such as three секунд.

Which LinknLink устройство является best для комната boundary testing?

Use eMotion Air для flexible placement tests, eMotion Pro когда эта тот же комната needs built-in IR, и eMotion Ultra когда you need 60GHz sensing, temperature/humidity данные, и built-in IR together.

Can eMotion Ultra control IR устройства напрямую?

Yes. eMotion Ultra includes built-in IR control in addition в 60GHz присутствие sensing и a temperature/humidity датчик cable, so it может поддержка комната comfort automations inside Home Assistant.

Важно: Should I fix false occupancy by lowering sensitivity?

Not as эта first step. Lowering sensitivity too far может break quiet-присутствие detection. Start с placement, zone direction, комната ownership, и vacancy delay.

How should Home Assistant decide which комната owns a person?

Create a комната owner helper. Let эта most stable и contextually relevant комната win перед lights, climate, или IR commands run.

Важно: Debugging rule: do не rewrite every automation at once. Confirm эта raw датчик state, комната helper, reconnect events, и комната owner перед changing устройство actions.

Важно: Build More Reliable Room Presence Automations

Start с a placement-friendly датчик, добавьте local IR control where comfort устройства matter, и keep эта комната logic private с HomeClaw и Home Assistant.