kind3r / hass-addons

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

Do i need to unpair with my phone for this to work? #44

Open stevearmitage opened 1 year ago

stevearmitage commented 1 year ago

I have setup the lock with my phone and the app. To use the HomeAssistant integration, do I need to reset the lock and disconnect from the app? It looks like my Bluetooth can see the phone, but not pair/connect

Is there a way I can maintain existing fingerprints?

Thanks!

mikewesner commented 1 year ago

Im just starting to play with this, but I got this far. I had to reset the lock from the back of the lock and use TTLock only. You can't have both paired. You have to reset it and redo the fingerprints.

stevearmitage commented 1 year ago

I get the device showing, but it does not pair

Screenshot 2022-09-01 at 11 19 34

I get the following in my logs

BLE Scan started
Emmiting paramsChanged { batteryCapacity: true, newEvents: false, lockedStatus: false }
BLE Scan stopped
Refreshing paired locks
Monitor started
Monitor stopped
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 Manager._connectLock (/app/src/manager.js:583:21)
    at async Manager.initLock (/app/src/manager.js:163:13)
    at async WebSocket.<anonymous> (/app/api/index.js:52:30)
Connect failed
Lock connect failed
Connect to lock failed 2E:39:B6:C6:EB:C6