TTLock Connector | TTLock Smart Lock Integration, Guest Passcodes and Unlock Records
by Modvanta https://modvantaapps.tech
Odoo
$ 11.97

Give each guest a door code that works only for their stay, send it by email, and see in Odoo who opened which door.
TTLock | Smart lock | Door PIN code | Guest passcode | Self check-in | Unlock records | Odoo 19
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
Connect your TTLock open platform application and add your locks by their TTLock lock ID. Odoo loads each lock's model, firmware and battery level. From a lock you create a passcode for a guest: one-time, permanent or for a period such as a stay from Friday 15:00 to Monday 11:00. TTLock generates the code, Odoo keeps it with the guest and emails it with a ready template. When plans change, delete the code from the lock through the gateway. Every hour Odoo imports the unlock records, so you see which code or key opened which door and when, and a lock with weak batteries gets an activity before it goes flat.
| Locks: added by TTLock lock ID, with model, firmware, battery and an optional room or rental product | |
| Guest passcodes: one-time, permanent or period codes generated by TTLock, rounded to whole hours as TTLock asks | |
| Send to guest: an email template with the code, the lock and the valid dates | |
| Delete from lock: removes a code through the gateway; period codes turn to expired after their end | |
| Unlock records: passcode, card, key, app and gateway events imported every hour, linked to the guest | |
| Remote unlock: opens a door through the gateway, managers only, after a confirmation | |
| Battery warning: an activity on the lock when the battery falls under your level | |
| Front desk access: users create and send codes; only managers see the connection or unlock remotely | |
| Account safety: only the md5 hash of the TTLock password is kept, as the TTLock API asks; multi-company |
Who it is for
HOLIDAY RENTALS Self check-in with a code that starts and ends with the booking. | SMALL HOTELS AND HOSTELS Room and front door codes from the front desk, no keys to hand out. | OFFICES AND STORAGE Codes for cleaners, contractors and tenants, and a record of every opening. |
What it adds to Odoo 19
| Need | Odoo 19 core | With this module |
| TTLock passcodes from Odoo | Not included | Generated by TTLock, kept with the guest |
| Email the code to the guest | Not included | Ready template with dates |
| Who opened the door | Not included | Unlock records every hour |
| Battery levels | Not included | Activity under your level |
See it in Odoo
Locks
Every lock with its room, model, battery and number of passcodes.

A lock
Lock details from TTLock, its passcodes and the New Passcode, Import and Unlock Now buttons.

A guest passcode
A period code for a stay, with the guest, the valid dates and Send to Guest.

All passcodes
Active, expired and deleted codes across the locks.

Unlock records
Passcode, gateway, key and sensor events with the guest who used the code.

The connection
TTLock application, app account, record import and the battery warning level.

How it works
1 | Create a TTLock application On the TTLock open platform create an application to get a client ID and secret. |
2 | Connect Smart Locks, Connections: enter the client ID, secret and the TTLock app account that owns the locks, then Test Connection. |
3 | Add the locks Enter each lock ID from the TTLock app and press Load Details. |
4 | Create codes New Passcode on a lock, choose the guest and dates, Create in Lock, then Send to Guest. |
Settings
| Application: API server, client ID, client secret, TTLock app username and password (managers only) | |
| Options: import unlock records every hour, low battery level | |
| Locks: TTLock lock ID, room or rental product, location |
Questions
Do I need a gateway?
Codes are generated by TTLock and work without one. Deleting a code from the lock and remote unlock go through a TTLock gateway (or a WiFi lock).
Why is the time rounded?
TTLock counts code validity in whole hours, so the start is rounded down and the end up to the hour.
A guest says the code does not work
TTLock asks that a period or permanent code is used once within 24 hours of its start. The email template says so too.
Is it tied to a hotel module?
No. It works alone; you can link a lock to any product, such as a room or a rental unit.
Where does the password go?
Odoo keeps only the md5 hash the TTLock API asks for, readable by managers only.
Compatibility
Odoo 19 Community and Enterprise. Built from TTLock's public open platform documentation and tested with recorded answers; no TTLock server was called while building it.
Questions before you buy?
Write to modvantaapps@gmail.com. We answer on working days, usually within one day.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 764 |
| Technical Name |
mdv_ttlock_connector |
| License | OPL-1 |
| Website | https://modvantaapps.tech |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module