jbergler / hass-ttlock

Home Assistant integration for TTLock locks
69 stars 13 forks source link

validation error for Lock autoLockTime field required (type=value_error.missing) #43

Closed ortwin20000 closed 1 year ago

ortwin20000 commented 1 year ago

I tried this integration with 0.4.8 and get an error after setting it up: Setup erneut versuchen: 1 validation error for Lock autoLockTime field required (type=value_error.missing)

I use a gateway G2 with 2 locks. In the log i didn't found a callback url. i think it's because the validation of the locks failed. The model number of both locks is C001C with NFC and Bluetooth.

Debug-Log:

2023-04-27 21:00:31.729 DEBUG (MainThread) [custom_components.ttlock.api] [e2a7] Sending request to https://euapi.ttlock.com/v3/lock/list with args={'pageNo': 1, 'pageSize': 1000}
2023-04-27 21:00:32.296 DEBUG (MainThread) [custom_components.ttlock.api] [e2a7] Received response: status=200: body={'list': [{'date': 1608383197000, 'specialValue': 72144371, 'lockAlias': 'Aufenthaltsraum', 'noKeyPwd': 'xxxx', 'electricQuantityUpdateDate': 1681567535000, 'lockMac': 'E2:15:9F:6B:DD:AC', 'passageMode': 2, 'timezoneRawOffset': 7200000, 'lockId': 2182419, 'featureValue': '44CD5F3', 'electricQuantity': 45, 'bindDate': 1608383197000, 'lockData': 'xxxx', 'hasGateway': 1, 'keyboardPwdVersion': 4, 'wirelessKeypadFeatureValue': '0', 'lockVersion': {'showAdminKbpwdFlag': True, 'groupId': 10, 'protocolVersion': 3, 'protocolType': 5, 'orgId': 28, 'logoUrl': '', 'scene': 9}, 'lockName': 'BM1002_abdd6b'}, {'date': 1616158473000, 'specialValue': 72144371, 'lockAlias': 'Schloß 1', 'noKeyPwd': 'xxxx', 'electricQuantityUpdateDate': 1682605622000, 'lockMac': 'F4:D1:B3:7B:8F:FC', 'passageMode': 2, 'timezoneRawOffset': 7200000, 'lockId': 1493985, 'featureValue': '44CD5F3', 'electricQuantity': 25, 'bindDate': 1577275034000, 'lockData': 'xxxx', 'hasGateway': 1, 'keyboardPwdVersion': 4, 'wirelessKeypadFeatureValue': '0', 'lockVersion': {'showAdminKbpwdFlag': True, 'groupId': 10, 'protocolVersion': 3, 'protocolType': 5, 'orgId': 28, 'logoUrl': '', 'scene': 9}, 'lockName': 'BM1002_fb8f7b'}], 'pageNo': 1, 'pageSize': 1000, 'pages': 1, 'total': 2}
2023-04-27 21:00:32.299 DEBUG (MainThread) [custom_components.ttlock.api] [0dd5] Sending request to https://euapi.ttlock.com/v3/lock/detail with args={'lockId': 2182419}`
2023-04-27 21:00:32.303 DEBUG (MainThread) [custom_components.ttlock.api] [ade6] Sending request to https://euapi.ttlock.com/v3/lock/detail with args={'lockId': 1493985}
2023-04-27 21:00:32.350 DEBUG (MainThread) [custom_components.ttlock.api] [0dd5] Received response: status=200: body={'date': 1608383197000, 'lockAlias': 'Aufenthaltsraum', 'lockSound': 1, 'modelNum': 'SN194-1S-S9_PV53', 'lockMac': 'E2:15:9F:6B:DD:AC', 'privacyLock': 2, 'deletePwd': '', 'featureValue': '44CD5F3', 'adminPwd': 'xxxx', 'soundVolume': 5, 'hasGateway': 1, 'wirelessKeypadFeatureValue': '0', 'lockKey': 'xxxx', 'isFrozen': 2, 'lockName': 'BM1002_abdd6b', 'resetButton': 2, 'firmwareRevision': '4.4.2.190705', 'tamperAlert': 2, 'specialValue': 72144371, 'displayPasscode': 2, 'noKeyPwd': 'xxxx', 'passageMode': 2, 'passageModeAutoUnlock': 2, 'timezoneRawOffset': 7200000, 'lockId': 2182419, 'electricQuantity': 45, 'lockFlagPos': 0, 'lockUpdateDate': 1681567535000, 'keyboardPwdVersion': 4, 'aesKeyStr': 'xxxx', 'hardwareRevision': '1.3', 'openDirection': 0, 'lockVersion': {'groupId': 10, 'protocolVersion': 3, 'protocolType': 5, 'orgId': 28, 'scene': 9}, 'sensitivity': -1}
2023-04-27 21:00:32.352 DEBUG (MainThread) [custom_components.ttlock.coordinator] Finished fetching ttlock data in 0.053 seconds (success: False)
2023-04-27 21:00:32.447 DEBUG (MainThread) [custom_components.ttlock.api] [ade6] Received response: status=200: body={'date': 1616158473000, 'lockAlias': 'Schloß 1', 'lockSound': 0, 'modelNum': 'SN194-1S-S9_PV53', 'lockMac': 'F4:D1:B3:7B:8F:FC', 'privacyLock': 0, 'deletePwd': '', 'featureValue': '44CD5F3', 'adminPwd': 'xxxx', 'soundVolume': 5, 'hasGateway': 1, 'wirelessKeypadFeatureValue': '0', 'lockKey': 'xxxx', 'isFrozen': 2, 'lockName': 'BM1002_fb8f7b', 'resetButton': 0, 'firmwareRevision': '4.4.2.190705', 'tamperAlert': 0, 'specialValue': 72144371, 'displayPasscode': 0, 'noKeyPwd': 'xxxx', 'passageMode': 2, 'passageModeAutoUnlock': 2, 'timezoneRawOffset': 7200000, 'lockId': 1493985, 'electricQuantity': 25, 'lockFlagPos': 0, 'lockUpdateDate': 1682605622000, 'keyboardPwdVersion': 4, 'aesKeyStr': 'xxxx', 'hardwareRevision': '1.3', 'openDirection': 0, 'lockVersion': {'groupId': 10, 'protocolVersion': 3, 'protocolType': 5, 'orgId': 28, 'scene': 9}, 'sensitivity': -1}
2023-04-27 21:00:32.448 DEBUG (MainThread) [custom_components.ttlock.coordinator] Finished fetching ttlock data in 0.145 seconds (success: False)