kind3r / hass-addons

Integration of the offline TTLock sdk into Home Assistant
59 stars 21 forks source link

Losing Connection after sometime with ESP32 gateway #48

Open DuPunk opened 1 year ago

DuPunk commented 1 year ago

I have the integration setup with the ESP32 gateway and have most the functionality i need. My problem in that the addon will periodically stop communicating with the lock and i have to restart the addon to to regain communication. bellow is the log when it stops communication.

Peripheral connect start Peripheral connect triggered Peripheral connect error: Error: connection canceled! at Peripheral.cancelConnect (/app/node_modules/@abandonware/noble/lib/peripheral.js:61:26) __at NobleDevice.connect (/app/node_modules/ttlock-sdk-js/dist/scanner/noble/NobleDevice.js:91:37) at async TTBluetoothDevice.connect (/app/node_modules/ttlock-sdk-js/dist/device/TTBluetoothDevice.js:47:17) __at async TTLock.connect (/app/node_modules/ttlock-sdk-js/dist/device/TTLock.js:53:27) __at async Timeout.reconnectToLock [as _onTimeout] (/app/src/manager.js:837:22) Connect failed Lock connect failed Unsuccessful connect attempt to paired lock xx:xx:xx:10:0C:54