---
title: Control with Tedee lock (PAK)
description: "Based on the previous manual: Gate HTTP - integration with Tedee Lock using PAK the manual about Tedee lock control from myGrenton application level has been prepared. In order to control the Tedee lo"
---

[Skip to content](https://knowledgebase.grenton.com/en/control-with-tedee-lock-pak#main-content)

English

Show submenu for translations

[New ticket](https://knowledgebase.grenton.com/en/kb-tickets/new?hsLang=en) [Customer portal](https://knowledgebase.grenton.com/wsparcie?hsLang=en)

![Logo\_Grenton\_Main\_2020\_RGB\_v1.0-1.png\]](https://knowledgebase.grenton.com/hs-fs/hubfs/Logo_Grenton_Main_2020_RGB_v1.0-1.png?width=200&height=94&name=Logo_Grenton_Main_2020_RGB_v1.0-1.png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [New ticket](https://knowledgebase.grenton.com/en/kb-tickets/new)
- [Customer portal](https://knowledgebase.grenton.com/wsparcie)
- [Trainings](https://www.grenton.com/cooperation/trainings.html)

[Trainings](https://www.grenton.com/cooperation/trainings.html)

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Knowledge Base](https://knowledgebase.grenton.com/en?hsLang=en)
2. [Manuals](https://knowledgebase.grenton.com/en/manuals?hsLang=en)
3. [myGrenton interfaces](https://knowledgebase.grenton.com/en/manuals?hsLang=en#mygrenton-interfaces)

# Control with Tedee lock (PAK)

Based on the previous manual: [Gate HTTP - integration with Tedee Lock using PAK](https://bazawiedzy.grenton.pl/gate-http-integration-with-tedee-lock-using-pak?hsLang=en) the manual about Tedee lock control from myGrenton application level has been prepared.

In order to control the Tedee lock is needed what following:

1\. Create a myGrenton interface by clicking on *Add myGrenton interface:*  
![](https://knowledgebase.grenton.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction35159996606originalpWG62W_rAWA7eR3rVyePViGmj9Sjo1FNEg-1.png)

2\. Enter an interface name and confirm by clicking *OK:*

![](https://knowledgebase.grenton.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction35159996744original3rAemE49pWIQBRyH2KY8G-UF5zbaKKN97w-1.png)

3\. Drag and drop the script responsible for opening the lock ***Tedee\_Action\_Open\_req*** into the interface space, select the *SCENE* widget and select *OK*:  
![](https://knowledgebase.grenton.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction35159997258originalXZsO3tfL6prPtiF35f2IIVnMkSV4cV8gLg-1.png)

4\. Analogically, create widgets dedicated to closing the door and pulling the spring. Each of them allows you choosing different color, background and name:

![](https://knowledgebase.grenton.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction35160002928originalYMn42bOBFlEVswwwWPqXI_m6zqnFLVP0_g-1.png)

**Note:** You can edit a widget by double-clicking it:

![](https://knowledgebase.grenton.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction35159998628originalpwfHCKj1EUdvaYyhKun4Uj3Hlah_PUNKdA-1.png)

5\. Additionally, there is a possibility to retrieving information about the lock’s ID, level of battery and lock’s state. In order to obtain this, drag and drop* Value* widget into the interface space:

![](https://knowledgebase.grenton.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction35160002981originalTQl8gwTKQ89QJkJ-XQiLDOqTvLEbr1kyJg-1.png)

6\. Double-click on the mentioned widget and fulfil its fields with appropriate values:

![](https://knowledgebase.grenton.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction35159999165originalEOkK4vM2ZIryUHo8LIsIVTmWa_wlzgKmOg-1.png)   
![](https://knowledgebase.grenton.com/hs-fs/hubfs/image-png-Dec-15-2023-07-54-12-2674-AM.png?width=688&height=576&name=image-png-Dec-15-2023-07-54-12-2674-AM.png)

7\. In order to display the current lock’s state in a text form, create the following script on CLU:

```
local a = tostring(Gate_HTTP->tedee_lock_state)if(a=="nil") then    Gate_HTTP->tedee_state_txt="Disconnected"elseif(Gate_HTTP->tedee_lock_state==2) then    Gate_HTTP->tedee_state_txt="Unlocked"elseif(Gate_HTTP->tedee_lock_state==3) then    Gate_HTTP->tedee_state_txt="SemiLocked"elseif(Gate_HTTP->tedee_lock_state==4) then    Gate_HTTP->tedee_state_txt="Unlocking"elseif(Gate_HTTP->tedee_lock_state==5) then    Gate_HTTP->tedee_state_txt="Locking"elseif(Gate_HTTP->tedee_lock_state==6) then    Gate_HTTP->tedee_state_txt="Locked"elseif(Gate_HTTP->tedee_lock_state==7) then    Gate_HTTP->tedee_state_txt="Pulled"else    Gate_HTTP->tedee_state_txt="Error"end
```

where the ***tedee\_state\_txt*** variable is the variable created in the user features on Gate\_HTTP.

8\. The script should be triggered cyclically (no more often than per each 10 s) via the *Timer* virtual object (on Gate\_HTTP) with the *Tedee\_LockID\_req* script:  
![](https://knowledgebase.grenton.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction35160004067originalnJGCYvrm1oHxFEy_6dIJGigbAnk7O07m2g-1.png)  
![](https://knowledgebase.grenton.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction35160007360original7pFLRpkqR9M3-UA6gHEqYEq0kuxi40lLpg-1.png)

 Timer’s start assign to * OnInit *event on Gate\_HTTP:   
![](https://knowledgebase.grenton.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction35160004210original1SETmLPVC9hWkT-0zMSLKTDu5pss86_wwA-1.png)

9\. The mentioned ***tedee\_state\_txt*** value enter to the *Value* widget:  
![](https://knowledgebase.grenton.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction35160004251originalERH2DJ23Ap7U_hYOYKx1tpdpbsrdQ7N4vQ-1.png)  
![](https://knowledgebase.grenton.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction35160007570originalnWcaXnlsfFoX_r1d0nZzFvx3Uas3FmaC8A-1.png)

10\. The interface prepared in this way send to your mobile device using *Send the myGrenton interface to your phone *option: ![](https://knowledgebase.grenton.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction35160007679originalxefLnRtmO1TmDMVoLbBVet93XhhhOYJpRg-1.png) ![](https://knowledgebase.grenton.com/hubfs/Knowledge%20Base%20Import/support.grenton.plensupportsolutionsarticles35000197181-control-with-tedee-lock-pak-hit-1.gif)

- [Installation guidelines](https://knowledgebase.grenton.com/en/installation-guidelines?hsLang=en#main-content)

    - [How to Prepare Electrical Installation](https://knowledgebase.grenton.com/en/installation-guidelines?hsLang=en#how-to-prepare-electrical-installation)
- [Reference devices](https://knowledgebase.grenton.com/en/reference-devices?hsLang=en#main-content)

    - [Integrated Device](https://knowledgebase.grenton.com/en/reference-devices?hsLang=en#integrated-device)
- [Most Common Mistakes](https://knowledgebase.grenton.com/en/most-common-mistakes?hsLang=en)
- [Electrical Installation](https://knowledgebase.grenton.com/en/electrical-installation?hsLang=en)
- [Manuals](https://knowledgebase.grenton.com/en/manuals?hsLang=en#main-content)

    - [Gate Modbus](https://knowledgebase.grenton.com/en/manuals?hsLang=en#gate-modbus)
    - [Training](https://knowledgebase.grenton.com/en/manuals?hsLang=en#training)
    - [SW Applications](https://knowledgebase.grenton.com/en/manuals?hsLang=en#sw-applications)
    - [Gate HTTP](https://knowledgebase.grenton.com/en/manuals?hsLang=en#gate-http)
    - [Smart Panel](https://knowledgebase.grenton.com/en/manuals?hsLang=en#smart-panel)
    - [Configuration](https://knowledgebase.grenton.com/en/manuals?hsLang=en#configuration)
    - [myGrenton interfaces](https://knowledgebase.grenton.com/en/manuals?hsLang=en#mygrenton-interfaces)
    - [Virtual Objects](https://knowledgebase.grenton.com/en/manuals?hsLang=en#virtual-objects)
    - [Gate Alarm](https://knowledgebase.grenton.com/en/manuals?hsLang=en#gate-alarm)
- [Intercom](https://knowledgebase.grenton.com/en/intercom?hsLang=en)
- [FAQ](https://knowledgebase.grenton.com/en/faq?hsLang=en#main-content)

    - [FAQ](https://knowledgebase.grenton.com/en/faq?hsLang=en#faq)
    - [About Grenton](https://knowledgebase.grenton.com/en/faq?hsLang=en#about-grenton)
- [Price list and documents](https://knowledgebase.grenton.com/en/price-list-and-documents?hsLang=en)

[![Grenton logo](https://knowledgebase.grenton.com/hs-fs/hubfs/Logo_Grenton_variants_BIG_2020_plus_RGB_v0.2-02.png?width=400&height=100&name=Logo_Grenton_variants_BIG_2020_plus_RGB_v0.2-02.png "Grenton logo")](http://grenton.com)

<https://www.facebook.com/grenton.smart.home> <https://www.instagram.com/grenton_smart_home/> <https://www.youtube.com/channel/UCFNNI-dgO1cm81kCrSr1bzg> <https://www.linkedin.com/company/grenton>

Copyright © 2026, Grenton Sp.z o.o.