jbergler / hass-ttlock

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

Unable to see any locks after integration is setup and login is sucsessful #152

Closed e1w00db1ue5 closed 1 week ago

e1w00db1ue5 commented 3 weeks ago

Describe the bug

I cannot see my lock, once the integration has been setup and I have logged in, all i get is ;

TTLock
No devices or entities

This has worked before, but then stopped, not sure what happend and why. I removed and re-added the integration and now I cannot see my any locks.

To Reproduce

I can reporduce this by deleting the integration, and re-adding it

Expected behavior

I'd expect to see my lock :)

Required information

2024-11-05 23:42:48.101 DEBUG (MainThread) [custom_components.ttlock.api] [c1ca] Sending request to https://euapi.ttlock.com/v3/lock/list with args={'pageNo': 1, 'pageSize': 1000}
2024-11-05 23:42:48.237 DEBUG (MainThread) [custom_components.ttlock.api] [c1ca] Received response: status=200: body={'list': [{'date': 1721934675000, 'specialValue': 1967977975, 'lockAlias': 'GC Front Door', 'noKeyPwd': '5953468', 'electricQuantityUpdateDate': 1730160352000, 'lockMac': 'E4:89:4E:A1:58:35', 'passageMode': 2, 'timezoneRawOffset': 0, 'lockId': 16498712, 'featureValue': '800C2F44754CF5F7', 'electricQuantity': 100, 'bindDate': 1721934675000, 'lockData': 'cTUyHv0MkX3e8sUcanfsaSFbSgSclfQoXLWfxKnc48uwtXXCYoa7Ebd/NX3IrPRNQoaLQTG0zdwLknwr7zFXg0mSV3l5tnnc0MlaRcsSeDDJAALJs14+QNbWJJWjdNmnomxU6ZkmltXCLLAe4x0HVzGPy0RhctexRgfVGtTDaOqDC5RAsVBszJlJHka1bLaIxevkKfJOPnnIfHJ8Kfg+L37L6ATYNEonb/BxSEHd7n7bH6G4GOqYOWjR1hcZFA84cX3GsUa9lKk0zHRp9LQDDx+X8DmbK3qTtQcwAlDocAcoya+U16c0xThqvf0efDIl2IcPl1gQeZgVXxSkkiryJMdmJDg65kb5msKxdbTsF/RgnDfoA+/jHIe0XV1CtM9NydRsk2sM0gH0kR1AXxQLjZda263BGyfH8J21zkz2qMMm73lF9V8NG2FUjb+iNwGuw5sp+RIgs9g/dF3zJnIdPrTVixj9K0ZjMaXuNxy8DHlLZzfScM+Uy0g+li5JiIjgZhfvujCATVkNZUb1Q9g2Tm8fKkULpAzBtCDDYMi9DWk4m+B8RsozV40hfnxuMyauuZF5U3w4sjrq5UK8jpqzPH7DDV+gDkk8Na9Xw8/EAvLNvbGemSuIg+Zj/wd3UBfA05XAKAEBAcghNNA9pncOpGd7P6MWB4mWNMSvlSLwClUQVlKQCZBxE/kIl0s3FuYXt0PrcKMN0vwfNKjO/bHhLoBSN8jn7JbLleYMLlTtRGXKJZmh5H7/UaAI2cFlcU361jMIdNLcdqamTUGthMeRX0vlIc+RcliPE1agNikVbG7kiU6hWDU=', 'hasGateway': 0, 'keyboardPwdVersion': 4, 'wirelessKeypadFeatureValue': '0', 'lockVersion': {'showAdminKbpwdFlag': True, 'groupId': 10, 'protocolVersion': 3, 'protocolType': 5, 'orgId': 34, 'logoUrl': '', 'scene': 2}, 'lockName': 'S31_3558a1'}], 'pageNo': 1, 'pageSize': 1000, 'pages': 1, 'total': 1}
2024-11-05 23:42:48.238 INFO (MainThread) [custom_components.ttlock] Webhook registered at https://hooks.nabu.casa/gAAAAABnKqynnuKu35Tyi3VGB5tyqklQjCGQT9Zc_cWr02GIrr6nXojHaqp7x4Fzx4f396VjqJHLtJcmQvSErHoMXHAd4o7Dh4u1H51bSR3NdOu4kjvFRQwpJPHNM_w31eIoBrpmkZBC_IBcWS_pYDH9aWdCrKzUoR6Tgptff2sLIpvc_2pTZoE=
jbergler commented 2 weeks ago

Hi @e1w00db1ue5 - can you confirm what kind of lock you're using? Is it connected to a gateway or does it have built in wifi?

e1w00db1ue5 commented 2 weeks ago

Hi @e1w00db1ue5 - can you confirm what kind of lock you're using? Is it connected to a gateway or does it have built in wifi?

Of course, sorry I should have included that in my post.

It's a Simpler Lock, this one to be precise. Simpled SF-SPS Weatherproof Slim Series Smart Lock - Designed for The UK Weather, Bright https://amzn.eu/d/dEMl2SG

I do have the WiFi gateway for it, and it has been in HA using this integration before.

jbergler commented 2 weeks ago

thanks - could you also download the debug info for the integration (should be a json file) and share that please?

e1w00db1ue5 commented 2 weeks ago

config_entry-ttlock-01JBZB4TT0DKK8M1Z95DQV0M4T(1).json home-assistant_ttlock_2024-11-11T19-53-34.494Z.log Hi,

Diagnostic log and config attached.

Jonathan

jbergler commented 1 week ago

The ttlock cloud reports 'hasGateway': 0 for that lock, which means the integration filters it out, unless the featureValue has the wifi bit set.

If you disable bluetooth+wifi on your phone, can you control your lock through the app? ie - does the remote access work.

e1w00db1ue5 commented 1 week ago

Hi, no I cannot and it appears my gateway is offline! So I've fixed that and now your integration is working perfectly.

Sorry, this was nothign to do with you, but thank you for looking at it for me.

jbergler commented 1 week ago

All good, happy that we figured it out.