aarons22 / homebridge-bond

Homebridge plugin for Bond
MIT License
64 stars 31 forks source link

homebridge-bond causes crash loop in homebridge #122

Closed kshartman closed 3 years ago

kshartman commented 3 years ago

A workman was here to fix a circuit on the porch. This disconnected the bond there. When power was restored the bond did not connect (I think). When the plugin starts it gets an error which is uncaught and caused homebridge to enter a crash loop.

12/6/2020, 8:22:52 AM] Homebridge is running on port 51828. NOTICE: Temperature Unit is Now: (F) NOTICE: Updating Global Values | HubIP: 192.168.11.4 | UseLocal: false WARN: Devices to Remove: (0) [] INFO: Devices to Update: (28) GOOD: Devices to Create: (0) [] ALERT: Total Initialization Time: (1 seconds) NOTICE: Unknown Capabilities: [] INFO: SmartThings DeviceCache Size: (28) INFO: WebServer Initiated... INFO: Sending StartDirect Request to SmartThings | SendToLocalHub: (false) INFO: Direct Connect Active | Listening at 192.168.11.16:8000 INFO: SmartThings-v2 Hub Communication Established [12/6/2020, 8:22:53 AM] [Hue] Bed: set homekit supported transition configuration to {"configuration":[{"iid":11,"characteristic":1},{"iid":13,"characteristic":2}]} [12/6/2020, 8:22:53 AM] [Hue] Bed: set homekit transition control to "" [12/6/2020, 8:22:53 AM] [Hue] Wall: set homekit supported transition configuration to {"configuration":[{"iid":11,"characteristic":1},{"iid":21,"characteristic":2}]} INFO: INFO: Your plugin version is up-to-date NOTICE: Sending Plugin Status to SmartThings | UpdateAvailable: false | newVersion: 2.3.8 [12/6/2020, 8:23:02 AM] [Bond] A request error occurred: undefined [12/6/2020, 8:23:02 AM] [Bond] Error getting device ids: TypeError: Cannot convert undefined or null to object [12/6/2020, 8:23:02 AM] [Bond] A request error occurred: undefined [12/6/2020, 8:23:02 AM] [Bond] Error getting version: TypeError: Cannot read property 'bondid' of undefined [12/6/2020, 8:23:02 AM] [Bond] 7 cached accessories were loaded [12/6/2020, 8:23:02 AM] [Bond] Getting devices for this Bond (BD26875)... [12/6/2020, 8:23:02 AM] [Bond] 3 devices were found on this Bond (BD26875). [12/6/2020, 8:23:02 AM] [Bond] No new devices to add for this Bond (BD26875). [12/6/2020, 8:23:02 AM] [Bond] Getting devices for this Bond (ZZBL47083)... [12/6/2020, 8:23:02 AM] [Bond] 2 devices were found on this Bond (ZZBL47083). [12/6/2020, 8:23:02 AM] [Bond] No new devices to add for this Bond (ZZBL47083). (node:4446) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'bondid' of undefined at BondPlatform.getDevices (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:47:65) at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:39:26 at Array.forEach (<anonymous>) at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:38:28 at processTicksAndRejections (internal/process/task_queues.js:93:5) (Usenode --trace-warnings ...to show where the warning was created) (node:4446) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 9) (node:4446) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. [12/6/2020, 8:23:02 AM] [Bond] Configuring Accessory: Patio Spa Fan [12/6/2020, 8:23:02 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:02 AM] [Bond] Configuring Accessory: Patio Patio Fan [12/6/2020, 8:23:02 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:02 AM] [Bond] Configuring Accessory: Great Room Back Fan [12/6/2020, 8:23:02 AM] [Bond] [Back Fan] actions: OEMTimer,TurnOff,SetSpeed,ToggleLight,Stop,TogglePower,TurnOn,IncreaseSpeed,DecreaseSpeed,TurnLightOn,TurnLightOff [12/6/2020, 8:23:02 AM] [Bond] Configuring Accessory: Great Room Front Fan [12/6/2020, 8:23:02 AM] [Bond] [Front Fan] actions: OEMTimer,ToggleLight,TurnOff,SetSpeed,Stop,TogglePower,TurnOn,IncreaseSpeed,DecreaseSpeed,TurnLightOn,TurnLightOff [12/6/2020, 8:23:02 AM] [Bond] Configuring Accessory: Master Bedroom Bedroom Fan [12/6/2020, 8:23:02 AM] [Bond] [Bedroom Fan] actions: SetSpeed,ToggleDirection,TurnOff,ToggleLight,StartDimmer,Stop,TogglePower,TurnOn,IncreaseSpeed,DecreaseSpeed,SetDirection,TurnLightOn,TurnLightOff [12/6/2020, 8:23:02 AM] [Bond] Configuring Accessory: Guest Bedroom Guest Fan [12/6/2020, 8:23:02 AM] [Bond] [Guest Fan] actions: SetSpeed,ToggleDirection,TurnOff,Stop,TogglePower,TurnOn,IncreaseSpeed,DecreaseSpeed,SetDirection [12/6/2020, 8:23:02 AM] [Bond] Configuring Accessory: Office Office Fan [12/6/2020, 8:23:02 AM] [Bond] [Office Fan] actions: SetSpeed,ToggleDirection,TurnOff,Stop,TogglePower,TurnOn,IncreaseSpeed,DecreaseSpeed,SetDirection [12/6/2020, 8:23:02 AM] Got SIGTERM, shutting down Homebridge... [12/6/2020, 8:23:03 AM] [Bond] Configuring Accessory: Patio Spa Fan [12/6/2020, 8:23:03 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:03 AM] [Bond] Configuring Accessory: Patio Patio Fan [12/6/2020, 8:23:03 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:03 AM] [Bond] Configuring Accessory: Patio Spa Fan [12/6/2020, 8:23:03 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:03 AM] [Bond] Configuring Accessory: Patio Patio Fan [12/6/2020, 8:23:03 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:04 AM] [Bond] Configuring Accessory: Patio Spa Fan [12/6/2020, 8:23:04 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:04 AM] [Bond] Configuring Accessory: Patio Patio Fan [12/6/2020, 8:23:04 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:04 AM] [Bond] Configuring Accessory: Patio Spa Fan [12/6/2020, 8:23:04 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) (node:4446) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [DailyRotateFile]. Use emitter.setMaxListeners() to increase limit [12/6/2020, 8:23:04 AM] [Bond] Configuring Accessory: Patio Patio Fan [12/6/2020, 8:23:04 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) (node:4446) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 finish listeners added to [DailyRotateFile]. Use emitter.setMaxListeners() to increase limit [12/6/2020, 8:23:05 AM] [Bond] Configuring Accessory: Patio Spa Fan [12/6/2020, 8:23:05 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:05 AM] [Bond] Configuring Accessory: Patio Patio Fan [12/6/2020, 8:23:05 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:05 AM] [Bond] Configuring Accessory: Patio Spa Fan [12/6/2020, 8:23:05 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:05 AM] [Bond] Configuring Accessory: Patio Patio Fan [12/6/2020, 8:23:05 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:06 AM] [Bond] Configuring Accessory: Patio Spa Fan [12/6/2020, 8:23:06 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:06 AM] [Bond] Configuring Accessory: Patio Patio Fan [12/6/2020, 8:23:06 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:06 AM] [Bond] Configuring Accessory: Patio Spa Fan [12/6/2020, 8:23:06 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:06 AM] [Bond] Configuring Accessory: Patio Patio Fan [12/6/2020, 8:23:06 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:07 AM] [Bond] Configuring Accessory: Patio Spa Fan [12/6/2020, 8:23:07 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:07 AM] [Bond] Configuring Accessory: Patio Patio Fan [12/6/2020, 8:23:07 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:07 AM] [Bond] Configuring Accessory: Patio Spa Fan [12/6/2020, 8:23:07 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:07 AM] [Bond] Configuring Accessory: Patio Patio Fan [12/6/2020, 8:23:07 AM] TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ERROR: uncaughtException: Cannot read property 'bondid' of undefined TypeError: Cannot read property 'bondid' of undefined at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57 at Array.find (<anonymous>) at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37) at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) [12/6/2020, 8:23:07 AM] [Hue] goodbye [12/6/2020, 8:23:07 AM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null [12/6/2020, 8:23:12 AM] [HB Supervisor] Restarting Homebridge... [12/6/2020, 8:23:12 AM] [HB Supervisor] Starting Homebridge with extra flags: -I [12/6/2020, 8:23:12 AM] [HB Supervisor] Started Homebridge v1.1.6 with PID: 449

aarons22 commented 3 years ago

Hey @kshartman - Is it possible the IP address of your bond changed when the power was cycled? Unless you have a static IP address for your Bond configured in your router, it's likely it will change if the router and/or Bond is rebooted.

kshartman commented 3 years ago

No it has a static DHCP reservation. This particular bond has always been somewhat problematic after reboots, especially if it applies a firmware upgrade. It's like the DHCP broadcast just doesn't go through so it doesn't get an IP address at all. I was able to get it working again with Bond Support. One of the things we did is move the bond farther away from a wireless SONOS that was in the same cabinet. But what I have observed is if I disconnect a bond from the network by any means it seems to crash HB soon after that. I have been reading and it seems like this is a feature of homebridge that HOOBs solves. I will be looking at that.

aarons22 commented 3 years ago

hm, I can't seem to replicate the crash on my end. I disconnected my Bond from the network and it didn't do anything to HB.

kshartman commented 3 years ago

hm, I can't seem to replicate the crash on my end. I disconnected my Bond from the network and it didn't do anything to HB.

Its not doing it to me anymore either. I thought you had fixed it lol. Anyway, it is a new bond I have there. The bond I had was the early chip set (BD). They RMA'ed it for a new bond with new chip set (ZZ). No more problems with DHCP. Maybe that was part of it. At any rate, since I can't make it happen anymore either I will close. Thanks for looking.

kshartman commented 3 years ago

Thanks for looking. Cant reproduce.

jorge-ramirez commented 3 years ago

I get the same thing from time to time and its happening again to me right now. Is there anything I can provide to try to get this issue fixed?

It does this for all of my devices on my bond and then crashes HomeBridge in a loop:

[13/08/2021, 18:23:24] [Bond] Configuring Accessory: Master Bedroom Master Fan
[13/08/2021, 18:23:24] TypeError: Cannot read property 'bondid' of undefined
    at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:57
    at Array.find (<anonymous>)
    at BondPlatform.bondForDevice (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:207:37)
    at BondPlatform.create (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:163:27)
    at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-bond/dist/platform.js:155:26)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)