Bug: After Latest Update - Looping & Crashing
See original GitHub issueDescribe The Bug
After the latest update, my HomeBridge is continuously looping and crashing.
To Reproduce
Install latest update, restart HomeBridge. Tried to restore from a older back up and reinstalled, same issue.
Expected behavior
Homebridge works and does not continuously crash
Relevant log output
.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:30:31] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:30:31] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:30:31] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:30:32] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:30:32] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:30:32] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:30:32] [LGThinQ] Successfully connected to the ThinQ API.
[20/10/2022, 09:30:32] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:30:33] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement
[20/10/2022, 09:31:04] [SwitchBot] Total SwitchBot Devices Found: 3
[20/10/2022, 09:31:04] [SwitchBot] Restoring existing accessory from cache: Exhaust Fan DeviceID: D84B5A4DA639
[20/10/2022, 09:31:04] [SwitchBot] Restoring existing accessory from cache: Bathroom Nightlight DeviceID: ED0BA396296A
[20/10/2022, 09:31:04] [SwitchBot] Bot: Exhaust Fan Config: {"mode":"press","deviceType":"switch","connectionType":"BLE/OpenAPI","logging":"standard"}
[20/10/2022, 09:31:05] [SwitchBot] Bot: Exhaust Fan Displaying as Switch
[20/10/2022, 09:31:05] [SwitchBot] Bot: Bathroom Nightlight Config: {"mode":"press","deviceType":"switch","connectionType":"BLE/OpenAPI","logging":"standard"}
[20/10/2022, 09:31:05] [SwitchBot] Bot: Bathroom Nightlight Displaying as Switch
[20/10/2022, 09:31:05] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:05] Got SIGTERM, shutting down Homebridge...
[20/10/2022, 09:31:05] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:05] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:05] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:06] [SwitchBot] Bot: Exhaust Fan failed BLERefreshStatus with BLE/OpenAPI Connection, Error Message: "Cannot read properties of undefined (reading 'stopScan')"
[20/10/2022, 09:31:06] [SwitchBot] Bot: Exhaust Fan wasn't able to establish BLE Connection, node-switchbot: [object Object]
[20/10/2022, 09:31:06] [SwitchBot] Bot: Exhaust Fan Using OpenAPI Connection to Refresh Status
[20/10/2022, 09:31:06] [SwitchBot] Bot: Bathroom Nightlight failed BLERefreshStatus with BLE/OpenAPI Connection, Error Message: "Cannot read properties of undefined (reading 'stopScan')"
[20/10/2022, 09:31:06] [SwitchBot] Bot: Bathroom Nightlight wasn't able to establish BLE Connection, node-switchbot: [object Object]
[20/10/2022, 09:31:06] [SwitchBot] Bot: Bathroom Nightlight Using OpenAPI Connection to Refresh Status
[20/10/2022, 09:31:06] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:06] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:06] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:06] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:06] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:07] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:07] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:07] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:08] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:08] [LGThinQ] Successfully connected to the ThinQ API.
[20/10/2022, 09:31:08] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:08] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:08] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:08] [LGThinQ] No ThinQ devices in your account.
[20/10/2022, 09:31:09] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:09] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:09] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:10] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[20/10/2022, 09:31:15] [HB Supervisor] Restarting Homebridge...
[20/10/2022, 09:31:15] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[20/10/2022, 09:31:15] [HB Supervisor] Started Homebridge v1.5.0 with PID: 30279
[20/10/2022, 09:31:16] Loaded config.json with 0 accessories and 4 platforms.
[20/10/2022, 09:31:16] Loaded 2 cached accessories from cachedAccessories.
[20/10/2022, 09:31:16] ---
[20/10/2022, 09:31:16] Loaded plugin: homebridge-lg-thinq@1.2.19
[20/10/2022, 09:31:16] Registering platform 'homebridge-lg-thinq.LGThinQ'
[20/10/2022, 09:31:16] ---
[20/10/2022, 09:31:17] Loaded plugin: homebridge-tesla-powerwall@3.0.0
[20/10/2022, 09:31:19] Registering platform 'homebridge-tesla-powerwall.TeslaPowerwall'
[20/10/2022, 09:31:19] ---
[20/10/2022, 09:31:19] The plugin "homebridge-switchbot" requires Node.js version of ^14.20.1 || ^16.18.0 || ^18.10.0 which does not satisfy the current Node.js version of v16.16.0. You may need to upgrade your installation of Node.js - see https://homebridge.io/w/JTKEF
[20/10/2022, 09:31:21] Loaded plugin: @switchbot/homebridge-switchbot@2.2.1
[20/10/2022, 09:31:21] Registering platform '@switchbot/homebridge-switchbot.SwitchBot'
[20/10/2022, 09:31:21] ---
[20/10/2022, 09:31:21] Loading 4 platforms...
[20/10/2022, 09:31:21] [SwitchBot] Initializing SwitchBot platform...
[20/10/2022, 09:31:21] [LGThinQ] Initializing LGThinQ platform...
[20/10/2022, 09:31:21] [Tesla Powerwall] Initializing TeslaPowerwall platform...
[20/10/2022, 09:31:21] Initializing platform accessory 'Powerwall'...
[20/10/2022, 09:31:21] Initializing platform accessory 'Solar'...
[20/10/2022, 09:31:21] Initializing platform accessory 'Grid'...
[20/10/2022, 09:31:21] Initializing platform accessory 'Grid Feed'...
[20/10/2022, 09:31:21] Initializing platform accessory 'Battery'...
[20/10/2022, 09:31:21] Initializing platform accessory 'Battery Charge'...
[20/10/2022, 09:31:21] Initializing platform accessory 'Home'...
Setup Payload:
X-HM://0024CUU9Q904Q
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
ββββββββββββββ
β 536-20-926 β
ββββββββββββββ
[20/10/2022, 09:31:21] Homebridge v1.5.0 (HAP v0.10.2) (Homebridge 48BA) is running on port 51679.
[20/10/2022, 09:31:21] [Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights
[20/10/2022, 09:31:21] [Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights
[20/10/2022, 09:31:21] [Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights
[20/10/2022, 09:31:21] [Tesla Powerwall] history
[20/10/2022, 09:31:21] [Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights
[20/10/2022, 09:31:21] [Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights
[20/10/2022, 09:31:21] [Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights
[20/10/2022, 09:31:21] [Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights
[20/10/2022, 09:31:22] [SwitchBot] Total SwitchBot Devices Found: 3
[20/10/2022, 09:31:22] [SwitchBot] Restoring existing accessory from cache: Exhaust Fan DeviceID: D84B5A4DA639
[20/10/2022, 09:31:22] [SwitchBot] Restoring existing accessory from cache: Bathroom Nightlight DeviceID: ED0BA396296A
[20/10/2022, 09:31:22] [SwitchBot] Bot: Exhaust Fan Config: {"mode":"press","deviceType":"switch","connectionType":"BLE/OpenAPI","logging":"standard"}
[20/10/2022, 09:31:22] [SwitchBot] Bot: Exhaust Fan Displaying as Switch
[20/10/2022, 09:31:22] [SwitchBot] Bot: Bathroom Nightlight Config: {"mode":"press","deviceType":"switch","connectionType":"BLE/OpenAPI","logging":"standard"}
[20/10/2022, 09:31:22] [SwitchBot] Bot: Bathroom Nightlight Displaying as Switch
[20/10/2022, 09:31:22] [Tesla Powerwall] Login successful
[20/10/2022, 09:31:22] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:22] Got SIGTERM, shutting down Homebridge...
[20/10/2022, 09:31:22] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:23] [SwitchBot] Bot: Exhaust Fan failed BLERefreshStatus with BLE/OpenAPI Connection, Error Message: "Cannot read properties of undefined (reading 'stopScan')"
[20/10/2022, 09:31:23] [SwitchBot] Bot: Exhaust Fan wasn't able to establish BLE Connection, node-switchbot: [object Object]
[20/10/2022, 09:31:23] [SwitchBot] Bot: Exhaust Fan Using OpenAPI Connection to Refresh Status
[20/10/2022, 09:31:23] [SwitchBot] Bot: Bathroom Nightlight failed BLERefreshStatus with BLE/OpenAPI Connection, Error Message: "Cannot read properties of undefined (reading 'stopScan')"
[20/10/2022, 09:31:23] [SwitchBot] Bot: Bathroom Nightlight wasn't able to establish BLE Connection, node-switchbot: [object Object]
[20/10/2022, 09:31:23] [SwitchBot] Bot: Bathroom Nightlight Using OpenAPI Connection to Refresh Status
[20/10/2022, 09:31:23] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:23] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:23] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:24] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:24] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:24] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:25] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:25] [LGThinQ] Successfully connected to the ThinQ API.
[20/10/2022, 09:31:25] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:25] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:25] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:26] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:26] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:26] [LGThinQ] No ThinQ devices in your account.
[20/10/2022, 09:31:26] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:26] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:26] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:27] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:27] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:27] TypeError: Cannot read properties of undefined (reading 'stopScan')
at Bot.stopScanning (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1067:21)
at Switchbot.switchbot.onadvertisement (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:475:26)
at Noble.<anonymous> (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/lib/switchbot.js:368:22)
at Noble.emit (node:events:539:35)
at Noble.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/noble.js:213:10)
at NobleBindings.emit (node:events:527:28)
at NobleBindings.onDiscover (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:188:10)
at Gap.emit (node:events:527:28)
at Gap.onHciLeAdvertisingReport (/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/lib/hci-socket/gap.js:250:10)
at Hci.emit (node:events:527:28)
[20/10/2022, 09:31:28] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[20/10/2022, 09:31:33] [HB Supervisor] Restarting Homebridge...
[20/10/2022, 09:31:33] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[20/10/2022, 09:31:33] [HB Supervisor] Started Homebridge v1.5.0 with PID: 30302
[20/10/2022, 09:31:34] Loaded config.json with 0 accessories and 4 platforms.
[20/10/2022, 09:31:34] Loaded 2 cached accessories from cachedAccessories.
[20/10/2022, 09:31:34] ---
[20/10/2022, 09:31:34] Loaded plugin: homebridge-lg-thinq@1.2.19
[20/10/2022, 09:31:34] Registering platform 'homebridge-lg-thinq.LGThinQ'
[20/10/2022, 09:31:34] ---
[20/10/2022, 09:31:34] Loaded plugin: homebridge-tesla-powerwall@3.0.0
[20/10/2022, 09:31:36] Registering platform 'homebridge-tesla-powerwall.TeslaPowerwall'
[20/10/2022, 09:31:36] ---
[20/10/2022, 09:31:36] The plugin "homebridge-switchbot" requires Node.js version of ^14.20.1 || ^16.18.0 || ^18.10.0 which does not satisfy the current Node.js version of v16.16.0. You may need to upgrade your installation of Node.js - see https://homebridge.io/w/JTKEF
<Repeats>
Config for homebridge-switchbot
{
"name": "SwitchBot",
"credentials": {
"token": "XXX",
"secret": "XXX",
"notice": "Keep your token a secret!"
},
"options": {
"devices": [
{
"deviceId": "XXX",
"configDeviceType": "Bot",
"connectionType": "BLE/OpenAPI",
"bot": {
"mode": "press",
"deviceType": "switch"
},
"logging": "standard"
},
{
"deviceId": "XXX",
"configDeviceType": "Bot",
"connectionType": "BLE/OpenAPI",
"bot": {
"mode": "press",
"deviceType": "switch"
},
"logging": "standard"
}
]
},
"platform": "SwitchBot"
Screenshots

Device & Model
SwitchBot Bot Firmware 6.3
Node.js Version
v16.16.0
NPM Version
v.8.11.0
Homebridge Version
v.1.5.0
Homebridge Switchbot Plugin Version
@switchbot/homebridge-switchbot v2.2.1
Homebridge Config UI X Plugin Version
homebridge-config-ui-x v4.50.1
Operating System
Raspbian GNU/Linux Bullseye (11)
Issue Analytics
- State:
- Created a year ago
- Comments:27
Top Results From Across the Web
Stuck in Windows 10 Update Crash Loop - Microsoft Community
After a few minutes, the process will complete successfully. 3. Close the command prompt. ... - Click the link below for the steps....
Read more >Deck boot looping after the most recent software update. (3.2)
Just ran a software update on the deck and now it boot loops 3/4 times on power on before it eventually logs in...
Read more >Loop App crashes - LoopDocs - GitHub Pages
What do I mean by "crashes"? Your Loop app immediately turns to a white screen and shuts itself down, landing you back at...
Read more >Big Sur crash restart loop after u⦠| Apple Developer Forums
Big Sur crash restart loop after update ... So after updating my MacBook Pro 16 inch , it starts up , then once...
Read more >How to Fix a Windows 10 Infinite Reboot Loop - MakeUseOf
1. Solve a Windows Update-Based Boot Loop. Wait for the response, then browse to C:\Windows\SoftwareDistribution. Here, delete all the directory contents.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Done. I didnβt even realize that was an option. LOL
Fixed in v2.2.2