From db1e3b73d1d4a2a98879ab10e5b18f84b30bd3bc Mon Sep 17 00:00:00 2001 From: koenkk Date: Tue, 20 Feb 2024 20:24:03 +0100 Subject: [PATCH] fix: Only configure routers on startup https://github.com/Koenkk/zigbee2mqtt/issues/21446 --- lib/extension/configure.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/extension/configure.ts b/lib/extension/configure.ts index 39906c6b1..bc366a7b8 100644 --- a/lib/extension/configure.ts +++ b/lib/extension/configure.ts @@ -65,7 +65,9 @@ export default class Configure extends Extension { override async start(): Promise { setImmediate(async () => { - for (const device of this.zigbee.devices(false)) { + // Only configure routers on startup, end devices are likely sleeping and + // will reconfigure once they send a message + for (const device of this.zigbee.devices(false).filter((d) => d.zh.type === 'Router')) { // Sleep 10 seconds between configuring on startup to not DDoS the coordinator // when many devices have to be configured. await utils.sleep(10);