kind3r / hass-addons

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

Cant pair lock #15

Closed 80mileseast closed 3 years ago

80mileseast commented 3 years ago

lock

Cant seem to get the lock to show any options. Am I missing something?

LOG:

ttlock-hass-integration@0.2.1 start /app 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":"fa4f7fdd6db7","manufacturer":"unknown","model":"unknown","hardware":"unknown","firmware":"unknown","address":"FA:4F:7F:DD:6D:B7","rssi":-79,"protocolType":5,"protocolVersion":3,"scene":2,"groupId":0,"orgId":0,"lockType":5,"isTouch":true,"isUnlock":true,"hasEvents":false,"isSettingMode":true,"txPowerLevel":0,"batteryCapacity":30,"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 FA:4F:7F:DD:6D:B7 Peripheral connect triggered 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 FA:4F:7F:DD:6D:B7 Peripheral connect triggered 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 basic info BLE Device subscribed Lock connect failed Connect to lock failed FA:4F:7F:DD:6D:B7 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 basic info BLE Device subscribed Lock connect failed Connect to lock failed FA:4F:7F:DD:6D:B7 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 FA:4F:7F:DD:6D:B7 Peripheral connect triggered

80mileseast commented 3 years ago

Dont know why or how but I got it to pair. Thanks for the awesome addon!

jasonwragg commented 2 years ago

Where does the data folder need to exist?