Why your Home Assistant motion light turns off on you (and the Zigbee fix that comes first)
Описание и применение
Автоматизация движения в Home Assistant часто выключает свет, пока люди находятся в помещении, из-за режима single и фиксированной задержки. Переключение на режим restart, ожидание выключения датчика и правильное использование триггеров решают проблему. Кроме того, перенесение Zigbee‑координатора на USB 2.0 и выбор подходящего канала повышают надёжность сети.
Задача
Motion lights in Home Assistant often turn off while people are still present, fire at inappropriate times, and rely on sensors that drop from the Zigbee network.
Результат
Lights now stay on until two minutes after the last motion, eliminating premature turn‑offs. Zigbee network becomes more reliable, reducing sensor dropouts.
Рабочий процесс
- 1. Change automation mode to restart. 2. Replace delay with wait_for_trigger on motion sensor off for 2 minutes. 3. Add to: in state triggers and for: where appropriate. 4. Optionally use a timer helper to prevent turning off manually lit lights. 5. Move Zigbee coordinator to a USB 2.0 extension cable. 6. Select a Zigbee channel (15, 20, or 25) before pairing. 7. Add mains-powered routers to create a mesh. 8. Set permit_join to false after pairing.
Доказательства
The default, single, means that if the motion sensor fires again while the first run is still sleeping through its delay, the second trigger is dropped.
USB 3.0 ports and the cables plugged into them radiate noise in the 2.4 GHz band, which is exactly where Zigbee lives.
- Дата записи: 2026-10-12T22:55:55.799Z