jbergler / hass-ttlock

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

Does your lock work? Let me know and I can update the readme. #1

Open jbergler opened 1 year ago

jbergler commented 1 year ago

If you try the extension out I'd love to gather a bit of data around the different locks people are using. Please comment with the 'model' from the home assistant device, and the actual brand/model of the lock you're using.

eg. E-Lok 9 Series reports itself as "SN9206_PV53" with firmware "6.0.6.210622"

Jayva2002 commented 1 year ago

Thanks for this.
This lock works: https://www.amazon.com/gp/aw/d/B09B557YZK Cielsa Dawn Fingerprint Digital Doorknob model: SN279_PV53 Firmware: 5.3.3.210601 Couple of bugs: integration reports error “KeyError: 'modelNum'” on load.
and during setup the username and password fields do not show any labels - you have to guess what the integration is wanting.
I can’t thank you enough for this!

cordvision commented 1 year ago

Lock sold as: Brand: YRHAND Model: DQ In TTLock App: Lock Number: RXDQ_39883c In Home Assistant integration under device info: SN417-T2_PV53

I'm using the G2 Gateway

I can unlock it through home assistant (works almost instantly with only a 1-2 second delay). However, I do not get a status (which would be very useful because I could automatically turn on the lights as soon as somebody unlocks the door). Not sure if I don't see the status/history because I couldn't completely follow the installation instructions: I got stuck on the last two step. (Once the integration is working, go to System > Logs and find the ttlock webhook url Go back to the url from the first step and set the 'Callback URL' for your application). I couldn't find the webhook url in any of the logs (might have been looking in the wrong place).

jbergler commented 1 year ago

Thanks @cordvision, hopefully this is resolved in #14, but let me know in that ticket if you still have issues.

Key1909 commented 1 year ago

Thanks for this, integration. This lock works: https://aliexpress.ru/item/4000975407287.html?spm=a2g2w.orderdetail.0.0.37ae4aa6xModCc&sku_id=12000032034343065 model: SN9286_PV53 Firmware: 6.5.07.220721 The lock opens, shows the battery level, updates the status of the position. After using it during the day, I noticed that the state does not change from open to closed.

stevearmitage commented 1 year ago

Installs very easily with the information i have from the other integrations

Brand : TOTOWISER Title: Fingerprint Door Lock,Keyless Entry Door Lock with Handle,Smart Door Lock,Biometric Smart Door Knob for Home Apartments Office Hotel Bedroom,Black Page: https://www.amazon.com.au/gp/product/B08TQKW3JC/ref=ppx_yo_dt_b_asin_title_o04_s00?ie=UTF8&psc=1

Model: SN275-5S-250MS-6V_PV53 Firmware: 6.4.11.220206

I only get the unlock button. Would like current state and battery percentage if possible. It takes about 5-10 seconds to action the unlock request, which is ok.

cordvision commented 1 year ago

Were you able to get the webhook to work and to you see unlock events in your history?

stevearmitage commented 1 year ago

I got the link and went back to the TTLOCK app manager and added the link (note the value is cropped)

Screenshot 2023-04-21 at 09 07 32

This morning i have got some updates. It looks like it's not picking up the auto-relock

Screenshot 2023-04-21 at 09 13 10
stevearmitage commented 1 year ago

I've played a little more and It's getting some of the status updates, some take over a minute to come through. Is there anything i can do to improve this?

Screenshot 2023-04-21 at 09 24 21
ibreez commented 1 year ago

works flawlessly with a OEM TTlock .. you awesome @jbergler 👍

stevearmitage commented 1 year ago

In 0.4.3 I get Screenshot_20230423_143711_Home Assistant

There are no error logs

markjsmith commented 1 year ago

If you try the extension out I'd love to gather a bit of data around the different locks people are using. Please comment with the 'model' from the home assistant device, and the actual brand/model of the lock you're using.

eg. E-Lok 9 Series reports itself as "SN9206_PV53" with firmware "6.0.6.210622"

Works with my Simpled SF series slim lock and the lock was very easy to fit to my multi lock point door. Really pleased!

tammeryousef1006 commented 1 year ago

honestly you deserve much more than a coffee , many thanks from the heart bro

tammeryousef1006 commented 1 year ago

SN303-3801_PV53 , firmware 6.0.3.210408 works great

jfencl commented 1 year ago

Worked perfectly for me! Kucacci Fingerprint Smart Door Lock H15B-B

luisgarcia87 commented 1 year ago

Brand: RAYKUBE Link: Aliexpress RAYKUBE SN9284-T0_PV53 by TT Lock Firmware: 6.4.11.220206 Hardware: 1.2

Works good! Unlock - Lock command takes less than 5 seconds to respond. Reports battery status correctly 2 sensors (Last Operator and Last Trigger) shows up as Unknown on HA Door does not report state, nor does it reflects if the door's been unlocked/locked via the app or finger, card, code etc)

Screen Shot 2023-04-27 at 5 25 18 PM
mabrochu-helpox commented 1 year ago

Brand: hornbill Model: N/A In TTLock App: Lock Number: M203T_06e39b In Home Assistant integration under device info: SN138-D-T2-1S-GT312-T20-YD_PV53

image

I'm using the G2 Gateway

Works in home-assistant. The delay is 7-8 seconds but once awake it's faster 2-3 seconds Last Operator and Last Trigger not working

Jaap-i-o commented 1 year ago

Works with my https://smartklink.nl lock type Smart One with hub, based on TT lock and the lock installed with mechanical auto closing multipoint lock. 2023_05_02_16_48_31_Overzicht_Home_Assistant

gharl77 commented 1 year ago

Hi! I don't know, if it's the right page to ask you this question, but i'm unable to logged in when I want to add my lock.

I'm getting this error: "invalid client_id", but it's the same username/password if I go on TTLock Cloud website: https://lock.ttlock.com/. What I'm doing wrong? Can you help me please? Thanks.

Dozer302 commented 1 year ago

EDIT: In the app I had not enabled "REMOTE UNLOCK" - lock now locking and unlocking remotely.

Manufacturer: Simpled.uk Model: HF Gateway via AliExpress - works fine in the app for all controls.

Lock details: SN9206-01_PV53 by TT Lock Firmware: 6.0.7.210706 Hardware: 1.6

Reports the following entities: image

jbergler commented 1 year ago

Thanks everyone for the reports.

@mabrochu-helpox and @luisgarcia87 Can you double check that you've setup the webhook correctly, and if you're still not seeing the "Last Operator" and "Last Trigger" sensors updating please open an issue with some logs.

@gharl77 You need to create an OAuth App per the instructions. If you've followed those steps, please create a new issue and provide some screenshots of what you're entering into the setup forms

luisgarcia87 commented 1 year ago

Thanks everyone for the reports.

@mabrochu-helpox and @luisgarcia87 Can you double check that you've setup the webhook correctly, and if you're still not seeing the "Last Operator" and "Last Trigger" sensors updating please open an issue with some logs.

@gharl77 You need to create an OAuth App per the instructions. If you've followed those steps, please create a new issue and provide some screenshots of what you're entering into the setup forms

@jbergler thank you for the info. I did not do the last steps on the installation instructions and that was the problem. Now my lock do report the last operator and last trigger. Thank you!!

mabrochu-helpox commented 1 year ago

@luisgarcia87 Hi, i replace my webhook url from the url in the home-assisatnt notification and it work now, unlock button it still a bit slow but now i can see the last operator and last trigger

tammeryousef1006 commented 1 year ago

Yes its working now but sad to say that passage mode not working. It show passage mode off even while it's on . I tried to make lock and unlock to update the status but remain the same to off . Everything else working perfectly 🥰

On Tue, 23 May 2023, 4:19 pm mabrochu, @.***> wrote:

@luisgarcia87 https://github.com/luisgarcia87 Hi, i replace my webhook url from the url in the home-assisatnt notification and it work now, unlock button it still a bit slow but now i can see the last operator and last trigger

— Reply to this email directly, view it on GitHub https://github.com/jbergler/hass-ttlock/issues/1#issuecomment-1559331538, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO3B3TAGJDHMJIOZ7JLO6CDXHS2MLANCNFSM6AAAAAAWP33QI4 . You are receiving this because you commented.Message ID: @.***>

Jimbobeb66 commented 1 year ago

another working lock - reports as SN9274-NO-TCL_PV53, Firmware: 6.4.14.220812, image image

Elder-HVAC-Man commented 1 year ago

SN149-BL01_PV53 by TT Lock Firmware: 4.4.0.190524 Hardware: 1.6

Purchased on Amazon as Sifely S Smart Lock

Works great, thanks.

jpravetz commented 1 year ago

Works with the A210 and NX1 SN242-SYNO-NO32K_PV53 SN139-RFID-ALARM-T1-NO32_PV53 from Tediton

openg12 commented 1 year ago

SN503-T80_PV53 by TT Lock Firmware: 6.5.08.230409 Hardware: 1.6 it's working...thanks

FireShot Capture 005

ggiannotti commented 1 year ago

image

it's working! :)

chimph commented 1 year ago

Hi. Will this work to add timed passcodes? Or its only for status and to lock/unlock? Thanks

pjgraber03 commented 1 year ago

This integration works for me.... Title: Smart Bluetooth Lock, NexTrend Smart Deadbolt Door Lock Keyless, Touchscreen Keypad, Auto Lock, Send Ekeys, Free APP Monitoring, Easy to Install for Home, Hotel, Apartment, Black https://a.co/d/aCTaxfh

Reports itself as: SN138-AOEL_PV53 Hardware: 1.2 Firmware: 4.3.3.190429

Using gateway: G2 Firmware: 1.2.21.0524

The newest updates to the integration make things so much easier. I work in IT so it was self explanatory for me to get it setup. Wouldn't mind helping if it's ever needed. Thanks for all your hard work.

Update: the log works. I'm seeing the last operator and last trigger

Screenshot_20230618_223023_Home Assistant

ErickJR13 commented 1 year ago

Thanks for this integration! Works quick, and it helped me get the lock to HomeKit (now if I could do Apple Home Key somehow that'd be the dream!)

Here's my setup:

If interested, it reports as the following:

SN9274-R-JXQ-T16-DIDI_PV53 by TT Lock Firmware: 6.4.14.220728 Hardware: 1.2

ha-marcus commented 1 year ago

Thanks, so far works great. Also faster than my docker image that I have been useing.

Lock: Hornbill Smart Lock Keyless Entry with Handle https://www.amazon.com/gp/product/B093VP8ZNF/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1

Gateway: Hornbill G2 Gateway Wi-Fi Bridge https://www.amazon.com/gp/product/B093GJJJ1J/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1

LOCK

tdwdotnet commented 1 year ago

Works with (with frequent "Lock unvailable" )

https://www.aliexpress.com/item/1005004295770091.html and https://www.aliexpress.com/item/1005004295770091.html

and a WIFI gateway

SN378-01_PV53 by TT Lock Firmware: 6.0.7.210706 Hardware: 1.3

SN9274-BG-M-DT50-BT10-AD140_PV53 by TT Lock Firmware: 6.3.26.220509 Hardware: 1.2

Both show Status, Battery, Last Operator, Last Trigger, passage mode

logbook shows frequent front door was locked 14:19:19 - 1 hour ago front door Last Trigger changed to Auto Lock 14:19:19 - 1 hour ago front door Last Operator changed to TimCardSpark 14:19:19 - 1 hour ago front door became unavailable 14:04:19 - 2 hours ago front door Last Trigger became unavailable 14:04:19 - 2 hours ago front door Last Operator became unavailable 14:04:19 - 2 hours ago

jbergler commented 1 year ago

@tdwdotnet Interesting, could you turn on debug logging for a bit and then open a new issue with the logs attached so I can take a look?

goldbe4804 commented 1 year ago

my lock works Laxre Fingerprint Smart Lock & a g2 gateway https://www.amazon.com/gp/product/B08J3STFH2/ref=ppx_yo_dt_b_asin_title_o09_s01?ie=UTF8&psc=1

TTLOCK

evilalmus commented 1 year ago

Geek Smart 502 Smart Deadbolt is working fine. https://www.amazon.com/gp/product/B0BNKZ82X4/ image

tdwdotnet commented 1 year ago

@tdwdotnet Interesting, could you turn on debug logging for a bit and then open a new issue with the logs attached so I can take a look?

What's the best way to get the debug log to you?

there is a general error about connectivity to the ttlock server, but the 2 locks go offline at different times so I'm not convinced it's that. I have added a ping sensor to see if that fails whenever the locks go unavailable

wjwnz commented 1 year ago

Hey Jonas, LTNS....

have just setup my lock at home, Sylvan Digital Smart Dead Lock from Mitre10:

SN9223-NFC-PAR_DIFF_PV53 by TT Lock Firmware: 6.4.11.220216

https://www.mitre10.co.nz/shop/sylvan-electronic-smart-deadbolt-silver/p/399700 https://www.mitre10.co.nz/shop/sylvan-wi-fi-gateway-for-smart-locks/p/399705

Islubio commented 1 year ago

Device info SN532_PV53 by TT Lock Firmware: 6.4.24.230804 Hardware: 1.1

Device info SN453-KX2_PV53 by TT Lock Firmware: 6.4.14.220903 Hardware: 1.2

have 2 locks added to HA and details above. They are Luxus DG5 Gate lock and Luxus Atlas Door lock

however last operator / trigger is unknown for both locks (have already input the url)

ronluna commented 1 year ago

SN149-BL01_PV53 by TT Lock Firmware: 4.4.0.190524 Hardware: 1.6

Purchased on Amazon as Sifely S Smart Lock

Works great, thanks.

I have the same lock but it auto locks itself after a couple of seconds. I've been trying to enable to auto-lock feature but I haven't been to get it working correctly. Currently the lock can only be unlocked once but since it remains unlock in HA because it does not get the status update that it auto-locked HA gets auto of sync and the only available command to send it to lock it .

luisgarcia87 commented 1 year ago

To quote @jbergler

"Can you double check that you've setup the webhook correctly, and if you're still not seeing the "Last Operator" and "Last Trigger" sensors updating please open an issue with some logs."

This happend to me too and I did not set up the webhook correctly.

Step 5 and 6: Once the integration is working you should receive a system notification with the webhook url This will go away when the webhook receives data Go back to the url from the first step and set the 'Callback URL' for your application

ronluna commented 1 year ago

To quote @jbergler

"Can you double check that you've setup the webhook correctly, and if you're still not seeing the "Last Operator" and "Last Trigger" sensors updating please open an issue with some logs."

This happend to me too and I did not set up the webhook correctly.

Step 5 and 6: Once the integration is working you should receive a system notification with the webhook url This will go away when the webhook receives data Go back to the url from the first step and set the 'Callback URL' for your application

Webhook has been setup correctly. "Last Operator" and "Last Trigger" sensors are updating just fine... the coordinator.py has
auto_lock_seconds: int = -1 on line 41 that I have change from -1 to 5 seconds thinking that it would enable the auto-lock... so the lock status would automatically change to locked after 5 seconds but that was not case...

Kevin4999 commented 1 year ago

I got my Hornbill lock from Amazon to show up in Home Assistant. Lock: https://www.amazon.com/gp/product/B08Z7LRPPF/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1

I can lock and unlock through Home Assistant. Sometimes on the first attempt, I get call service failed. It works on the second try. However, the state of the lock only updates when locking/unlocking through Home Assistant. The state of the lock does not update itself when operating the lock manually or on the TTLock app even after 12 hours of testing thus far.

The other sensors are as follows: Battery: Works fine Last Operator: Not updating. Always saying "Unknown" Last Trigger: Not Updating. Always saying "Unknown" Passage Mode: Off (Did not attempt to change this)

jeff611014 commented 1 year ago

Lock : Dermum S Smart Lock App : Sifely Gateway : Official Gateway (G2 ?)

Works great, thanks you very much !

caj380 commented 1 year ago

This lock works perfectly: https://www.amazon.com/dp/B08HLH2ZHP SMONET Fingerprint Electronic Deadbolt Door Lock with Keypad-Bluetooth model: SN274-GT312-M-T32-02_PV53 Firmware: 5.3.1.210326

I am using this gateway: https://www.amazon.com/dp/B093GJJJ1J Hornbill G2 Gateway

Thank you so much for this wonderful integration! 😃

jxbrown commented 1 year ago

The integration works great, thanks!

However, the state of the lock only updates when locking/unlocking through Home Assistant or the TTLock APP. The state of the lock does not update itself i HA when operating the lock manually or on the TTLock app.

Is this normal behavior or is there a fix available?

lordlala commented 1 year ago

My Sifely lock works:

Amazon: https://www.amazon.com/gp/product/B098KMW17J/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1

SN9149-BL01-ZFD-01_PV53 by TT Lock Firmware: 6.4.20.221216 Hardware: 2.2.1

noizo commented 1 year ago

Thanks for great job. Works great on SN9246-M-469_PV53 by TT Lock Firmware: 6.5.07.220531 Hardware: 1.3

Unfortunately door sensor status is not indicated properly after automatic door lock. In HA lock is shown as unlocked when i close a door and lock is locked automatically.

Kevin4999 commented 1 year ago

The integration works great, thanks!

However, the state of the lock only updates when locking/unlocking through Home Assistant or the TTLock APP. The state of the lock does not update itself i HA when operating the lock manually or on the TTLock app.

Is this normal behavior or is there a fix available?

The integration works great, thanks!

However, the state of the lock only updates when locking/unlocking through Home Assistant or the TTLock APP. The state of the lock does not update itself i HA when operating the lock manually or on the TTLock app.

Is this normal behavior or is there a fix available?

I have the same issue with mine. Posted above about it.

tknz commented 1 year ago

Works great E-lok 905 (NZ) "model": "SN9206-01_PV53", "battery_level": 88, "hardware_version": "1.6.1", "firmware_version": "6.4.11.220520",

Thank you for your work. Will buy you a coffee.