home-assistant.io/source/_components/lockitron.markdown
Franck Nijhof 1833c32a2c Cleans up front matter (#9835)
* Sets front matter defaults

* Removes default front matter from section templates/pages

* Removes default front matter from addon pages

* Removes default front matter from integration pages

* Removes default front matter from posts

* Removes default front matter from docs pages

* Removes default front matter from other pages

* Fixes blog category pages
2019-07-11 14:35:08 -07:00

40 lines
1.2 KiB
Markdown

---
title: "Lockitron Lock"
description: "Instructions on how to integrate Lockitron locks into Home Assistant."
logo: lockitron.png
ha_category:
- Lock
ha_iot_class: Cloud Polling
ha_release: 0.42
redirect_from:
- /components/lock.lockitron/
---
The `lockitron` platform allows you to control your [Lockitron](https://lockitron.com/) lock from within Home Assistant.
## Setup
In order to get the correct `access_token` and `id`, log on to their [developer page](https://api.lockitron.com/), create a new app, and get the access_token they give you. Then, call the retrieve all locks function on the page and get the id of your lock (make sure you get your lock's id and not the virtual lock they create for you).
## Configuration
To enable the lock, add the following lines to your `configuration.yaml` file:
```yaml
lock:
- platform: lockitron
access_token: YOUR_ACCESS_TOKEN
id: YOUR_ID
```
{% configuration %}
access_token:
description: The security token provided by Lockitron to lock and unlock your lock.
required: true
type: string
id:
description: The lock id given by Lockitron (should be a GUID).
required: true
type: string
{% endconfiguration %}