Apsysikal / bachome

A BACnet plugin for Homebridge.
Apache License 2.0
6 stars 2 forks source link

homebridge-bond prevents homebridge from running #9

Closed kshartman closed 3 years ago

kshartman commented 3 years ago

I haave three bonds, connected by wifi. A workman was here and he cut the power to the porch. When power was restored the bond on the porch failed to associate with wifi. The homebridge-bond plugin gets an error which sends homebridge into a crash - restart loop. A more desirable behavior would be to catch unexpected errors in plugins, report it and disable the plugin.

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 () at /usr/local/lib/node_modules/homebridge-bond/dist/platform.js:38:28 at processTicksAndRejections (internal/process/task_queues.js:93:5) (Use node --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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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 () 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

Apsysikal commented 3 years ago

Hey, for me this seems not directly related to bachome on first sight or is it related to bond? However I know for a fact the bachome plugin falls into an error-loop when something is wrong with a device. Thank you for your answer as this will help me categorise this issue correctly.

kshartman commented 3 years ago

I think its the bond plugin. It throws when the bond is down.

I guess its a matter of philosophy. One approach is to "deactivate" a plugin if it causes an error rather than take home bridge down. This is what I did manually when I discovered the issue. I realize that handling this in hb itself could be a lot of work, since you would have to catch every call to a plugin and deactivate it if an unhandled exception occurs. The more conservative approach is to fix it in the plugin. If I was writing a plugin I would expect transient network errors and simply report it rather than crashing the hb controller. But I don't know if that is possible with the hb controller. I also reported it to the plugin repo. Anyway, you can handle it manually, its just a pain to discover when you tell siri on your watch to turn the hottub on AFTER you have jumped in and discover that HB is not working because of a bond plugin lol.

Apsysikal commented 3 years ago

As you said, this is likely the bond plugin and has nothing to do with the bachome plugin.