kind3r / hass-addons

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

Pairing Issue #43

Open Daryn-L opened 2 years ago

Daryn-L commented 2 years ago

Just wondered if there are any ideas for getting it to pair?

RPI 4b

Log:

`> ttlock-hass-integration@0.2.1 start

node ./index.js [Error: ENOENT: no such file or directory, access '/data/lockData.json'] { errno: -2, code: 'ENOENT', syscall: 'access', path: '/data/lockData.json' } [Error: ENOENT: no such file or directory, access '/data/aliasData.json'] { errno: -2, code: 'ENOENT', syscall: 'access', path: '/data/aliasData.json' } MQTT connected Monitor started Server started Discovered new lock: {"id":"74d3207f21cf","manufacturer":"unknown","model":"unknown","hardware":"unknown","firmware":"unknown","address":"74:D3:20:7F:21:CF","rssi":-66,"protocolType":5,"protocolVersion":3,"scene":2,"groupId":0,"orgId":0,"lockType":5,"isTouch":true,"isUnlock":false,"hasEvents":false,"isSettingMode":true,"txPowerLevel":0,"batteryCapacity":100,"date":0,"isWristband":false,"isRoomLock":true,"isSafeLock":false,"isBicycleLock":false,"isLockcar":false,"isGlassLock":false,"isPadLock":false,"isCyLinder":false,"isRemoteControlDevice":false,"isDfuMode":false,"isNoLockService":false,"remoteUnlockSwitch":0,"disconnectStatus":0,"parkStatus":0,"lockSound":-1,"autoLockTime":-1,"privateData":{},"operationLog":[]} 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. (/app/api/index.js:52:30) Connect failed Lock connect failed Connect to lock failed 74:D3:20:7F:21:CF`

badmuz commented 2 years ago

I got same issue here

racksync commented 2 years ago

same here

justinlawrence commented 2 years ago

I had it working, but did not get any information or events when doors were opened and closed, so finally gave up and went back to the TTLock app. I think I would have persisted if I had been able to issue temporary codes, like I could to with the native TTLock app. I will have a look again if any big progress is made.

On Sat, 1 Oct 2022 at 15:39, racksync.com @.***> wrote:

same here

— Reply to this email directly, view it on GitHub https://github.com/kind3r/hass-addons/issues/43#issuecomment-1264384402, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALTMH2BUFKMGGIBRLQN6IDWBBELBANCNFSM56KJ66MA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

mousawm commented 1 year ago

Same problem here.

` > ttlock-hass-integration@0.2.1 start

node ./index.js [Error: ENOENT: no such file or directory, access '/data/lockData.json'] { errno: -2, code: 'ENOENT', syscall: 'access', path: '/data/lockData.json' } [Error: ENOENT: no such file or directory, access '/data/aliasData.json'] { errno: -2, code: 'ENOENT', syscall: 'access', path: '/data/aliasData.json' } MQTT connected Monitor started Server started Monitor stopped BLE Scan started BLE Scan stopped Refreshing paired locks Monitor started Discovered new lock: {"id":"17803e848d20","manufacturer":"unknown","model":"unknown","hardware":"unknown","firmware":"unknown","address":"17:80:3E:84:8D:20","rssi":-80,"protocolType":5,"protocolVersion":3,"scene":2,"groupId":0,"orgId":0,"lockType":5,"isTouch":true,"isUnlock":false,"hasEvents":false,"isSettingMode":true,"txPowerLevel":0,"batteryCapacity":17,"date":0,"isWristband":false,"isRoomLock":true,"isSafeLock":false,"isBicycleLock":false,"isLockcar":false,"isGlassLock":false,"isPadLock":false,"isCyLinder":false,"isRemoteControlDevice":false,"isDfuMode":false,"isNoLockService":false,"remoteUnlockSwitch":0,"disconnectStatus":0,"parkStatus":0,"lockSound":-1,"autoLockTime":-1,"privateData":{},"operationLog":[]} Monitor stopped BLE Scan started 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. (/app/api/index.js:52:30) Connect failed Lock connect failed Connect to lock failed 17:80:3E:84:8D:20 `