kind3r / hass-addons

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

Lock discovered but not showing up #42

Open luishang opened 2 years ago

luishang commented 2 years ago

Hi,

From the log seems that the lock was discovered but it does not apper in the UI. Can you help?

''' 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 unknown lock: {“id”:“2572f0f9aeac”,“manufacturer”:“unknown”,“model”:“unknown”,“hardware”:“unknown”,“firmware”:“unknown”,“address”:“25:72:F0:F9:AE:AC”,“rssi”:-51,“protocolType”:5,“protocolVersion”:3,“scene”:2,“groupId”:0,“orgId”:0,“lockType”:5,“isTouch”:true,“isUnlock”:false,“hasEvents”:false,“isSettingMode”:false,“txPowerLevel”:0,“batteryCapacity”:60,“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”:[]} ‘’’

luishang commented 2 years ago

It even refresh the paired lock: Debug communication ON Debug MQTT

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 unknown lock: {"id":"2572f0f9aeac","manufacturer":"unknown","model":"unknown","hardware":"unknown","firmware":"unknown","address":"25:72:F0:F9:AE:AC","rssi":-35,"protocolType":5,"protocolVersion":3,"scene":2,"groupId":0,"orgId":0,"lockType":5,"isTouch":true,"isUnlock":false,"hasEvents":false,"isSettingMode":false,"txPowerLevel":0,"batteryCapacity":60,"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 Emmiting paramsChanged { batteryCapacity: true, newEvents: false, lockedStatus: false } Emmiting paramsChanged { batteryCapacity: true, newEvents: false, lockedStatus: false }