kind3r / hass-addons

Integration of the offline TTLock sdk into Home Assistant
66 stars 26 forks source link

Paired but disconnected inmediately. Sound and general error #37

Open edu130282 opened 2 years ago

edu130282 commented 2 years ago

Hi. First of all thanks for the big effort of doing something like this addon. Trying many times I coud paired my lock with the addon, but then I get disconnected and nothing works. The worst thing is that I cannot unpair it and I use it for my first front door. Could you help me? This is my log file:

ttlock-hass-integration@0.2.1 start node ./index.js MQTT connected Monitor started Server started Discovered paired lock: E3:14:2E:D2:A5:64 Monitor stopped Peripheral connect start Peripheral connect triggered Peripheral state: connected Device emiting connected BLE Device reading basic info BLE Device discover services start BLE Device discover services end BLE Device read characteristics start BLE Device read characteristics end BLE Device read characteristics start BLE Device read characteristics end BLE Device read basic info BLE Device subscribed Connected to known lock, reading general data ========= feature list Lock waiting for connection to be completed <Buffer 62 00 44 d1 e6> ========= feature list Set(11) { 1, 2, 5, 6, 7, 8, 12, 14, 15, 18, 22 } ========= lockSound Failed reading all general data from lock Error: Failed to set audio mode at TTLock.audioManageCommand (/app/node_modules/ttlock-sdk-js/dist/device/TTLockApi.js:234:23) at async TTLock.onConnected (/app/node_modules/ttlock-sdk-js/dist/device/TTLock.js:1252:38) Connected to paired lock E3:14:2E:D2:A5:64 ========= lockSound Successful connect attempt to paired lock E3:14:2E:D2:A5:64 Disconnected from lock E3:14:2E:D2:A5:64 Error getting lock sound status Error: Disconnected while waiting for response at TTBluetoothDevice.sendCommand (/app/node_modules/ttlock-sdk-js/dist/device/TTBluetoothDevice.js:193:39) at async TTLock.audioManageCommand (/app/node_modules/ttlock-sdk-js/dist/device/TTLockApi.js:229:34) at async TTLock.getLockSound (/app/node_modules/ttlock-sdk-js/dist/device/TTLock.js:428:38) at async Function.fromTTLock (/app/api/Lock.js:51:22) at async Function.sendLockStatus (/app/api/WsApi.js:43:21)

Thank you very much