-
Notifications
You must be signed in to change notification settings - Fork 68
Description
Hello!
I recently had a hardware failure of the main homebridge instance in my smart home, which required me to restore this instance from a backup taken via homebridge-config-ui-x. Since restoring, I seem to be getting intermittent connectivity issues with the Alexa skill and any separate homebridge instances in my smart home.
I can see the request come into the main homebridge instance, where it shows in the logs as follows:
[1/4/2023, 12:47:44 AM] [Alexa] PowerController TurnOn CC:22:3D:E3:CE:30 undefined Error: ERROR: HB Instance not found
at /usr/local/lib/node_modules/homebridge-alexa/node_modules/hap-node-client/HAPNodeJSClient.js:135:18
at _populateCache (/usr/local/lib/node_modules/homebridge-alexa/node_modules/hap-node-client/HAPNodeJSClient.js:201:5)
at _mdnsLookup (/usr/local/lib/node_modules/homebridge-alexa/node_modules/hap-node-client/HAPNodeJSClient.js:129:5)
at HAPNodeJSClient.HAPcontrolByDeviceID (/usr/local/lib/node_modules/homebridge-alexa/node_modules/hap-node-client/HAPNodeJSClient.js:269:3)
at alexaHome.alexaPowerController (/usr/local/lib/node_modules/homebridge-alexa/lib/alexaActions.js:339:14)
at EventEmitter.emit (node:events:513:28)
at MqttClient.<anonymous> (/usr/local/lib/node_modules/homebridge-alexa/lib/alexaLocal.js:74:28)
at MqttClient.emit (node:events:513:28)
at MqttClient._handlePublish (/usr/local/lib/node_modules/homebridge-alexa/node_modules/mqtt/lib/client.js:1547:12)
at MqttClient._handlePacket (/usr/local/lib/node_modules/homebridge-alexa/node_modules/mqtt/lib/client.js:535:12)
at work (/usr/local/lib/node_modules/homebridge-alexa/node_modules/mqtt/lib/client.js:438:12)
at Writable.writable._write (/usr/local/lib/node_modules/homebridge-alexa/node_modules/mqtt/lib/client.js:452:5)
at doWrite (/usr/local/lib/node_modules/homebridge-alexa/node_modules/readable-stream/lib/_stream_writable.js:409:139)
at writeOrBuffer (/usr/local/lib/node_modules/homebridge-alexa/node_modules/readable-stream/lib/_stream_writable.js:398:5)
at Writable.write (/usr/local/lib/node_modules/homebridge-alexa/node_modules/readable-stream/lib/_stream_writable.js:307:11)
at TLSSocket.ondata (node:internal/streams/readable:766:22)
at TLSSocket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at TLSSocket.Readable.push (node:internal/streams/readable:234:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)
I've noticed a few other issues opened with the ERROR: HB Instance not found that suggest re-running "discover devices," and while this discovery request shows up in the logs as well, the issue still remains with controlling devices on separate instances. I've attempted to restart the main and other instances several times and remove/reconfigure the alexa-homebridge integration, but the issue remains.