Open samuellazea opened 1 day ago
Hello - these "last x" sensors don't come from data provided in the list
or detail
endpoints.
The integration derives them from webhook data as things happen, but webhooks are only sent by the device in response to a physical event (ie unlocking through the app or home assistant won't trigger it)
Can you confirm that the webhooks are coming through when you unlock the lock physically?
Using this integration I have 1 door lock and 1 lock box. They both report Last Operator and Last Trigger as unavailable
I did add some debugging in the code to check what could be and I have received this responses:
{ "status": 200, "response": { "list": [ { "lockId": 18483914, "lockName": "H31_93f530", "lockAlias": "Usa Silver Mountain", "lockMac": "1C:DC:4B:30:F5:93", "passageMode": 2, "timezoneRawOffset": 7200000, "electricQuantity": 100, "electricQuantityUpdateDate": 1732293721000, "bindDate": 1730188550000, "specialValue": 1967977975, "featureValue": "800C2F44754CF5F7", "hasGateway": 1, "keyboardPwdVersion": 4, "wirelessKeypadFeatureValue": "0", "lockData": "CB==", "lockVersion": { "showAdminKbpwdFlag": true, "groupId": 10, "protocolVersion": 3, "protocolType": 5, "orgId": 34, "logoUrl": "", "scene": 2 } }, { "lockId": 15450395, "lockName": "K3BLE_f3d639", "lockAlias": "Lock Box", "lockMac": "82:1C:39:D6:F3", "passageMode": 2, "timezoneRawOffset": 7200000, "electricQuantity": 100, "electricQuantityUpdateDate": 1730765225000, "bindDate": 1730380334000, "specialValue": 625800695, "featureValue": "800C2744254CF5F7", "hasGateway": 1, "keyboardPwdVersion": 4, "wirelessKeypadFeatureValue": "0", "lockData": "Ga==", "lockVersion": { "showAdminKbpwdFlag": true, "groupId": 1, "protocolVersion": 3, "protocolType": 5, "orgId": 1, "logoUrl": "", "scene": 2 } } ], "pageNo": 1, "pageSize": 1000, "pages": 1, "total": 2 }, "debug_logs": [ { "log_id": "78e2", "message": "Received response: status=200: body=<API response data>", "timestamp": "2024-11-22T20:02:28.584Z" }, { "log_id": "78e2", "message": "Raw response data: {'list': [...]}", "timestamp": "2024-11-22T20:02:28.584Z" }, { "log_id": "78e2", "message": "Received lock list: {'list': [...]}", "timestamp": "2024-11-22T20:02:28.585Z" } ] }
one of the devices is Device info SN9246_PV53 by TT Lock Firmware: 6.4.43.240607 Hardware: 1.3
Does this mean I can't retrieve this data?
Is there anything that I have wrongly configured or I do wrong and that I could fix it? Thank you so much in advance. Much appreciated