In this article we'll show you how you can open your KleverKey lock by simply pressing a WiFi button.
Requirements
- WiFi Button (we used a MyStom WiFi Button)
- IFTTT Account (or similar)
- KleverKey Lock
Connect the WiFi Button with KleverKey
- First, you'll have to setup your WiFi button according to the user manual of the button manufacturer (most likely, you'll have to install their app and configure the button for your WiFi network).
- Next, you'll have to create an account at IFTTT (or similar). In this article, we'll show you how to setup the button for KleverKey with IFTTT.
- Sign into your KleverKey account and make sure that the KleverKey lock and gateway are already set up (Link). Also the user that you want to use to activate the lock with the WiFi button needs a valid permission with the remote activation option set. Test, if the signed-in user is able to open the lock by doing a remote activation.
- Navigate to API Keys and create a new API key for the IFTTT service. Copy the API key to the clipboard.
- Start creating a new Applet in the IFTTT portal. Under "IF" search for MyStrom and define the action
- Under "THEN" choose Webhook and enter the following values
- Which event type? --> Press
- Which Button? --> Choose your button
- URL --> https://api.kleverkey.com/api/v1/users/me/permissions/<LOCK-ID>/activate?apikey=<API-KEY>
- Replace <LOCK-ID> with the correct lock ID (you'll find the lock ID at the end of the URL when you navigate to Hardware -> Locks in the KleverKey portal and select a lock (https://portal.kleverkey.com/organization/locks/<LOCK-ID>).
- Replace <API-KEY> with the API key that you have generated before and that should still be stored in your clipboard.
- Method --> PUT
- Content Type --> application/json
- Body --> { "lockActivationMode" :1 }
That's it! Your WiFi button is now connected to KleverKey. Make sure, the applet is shown as connected in the IFTTT portal.
Test your WiFi button by pressing on it. After a short delay, your KleverKey lock should open.
Where to use?
You can open your apartment door when someone is ringing the door bell downstairs or your office door while you are sitting at the reception desk.
Comments
0 comments
Please sign in to leave a comment.