This component will set up the following platforms.
Platform | Description |
---|---|
sensor |
Show info from ttlock API. |
lock |
Control ttlock lock devices. |
- Using the tool of choice open the directory (folder) for your HA configuration (where you find
configuration.yaml
). - If you do not have a
custom_components
directory (folder) there, you need to create it. - In the
custom_components
directory (folder) create a new folder calledblueprint
. - Download all the files from the
custom_components/ttlock/
directory (folder) in this repository. - Place the files you downloaded in the new directory (folder) you created.
- Restart Home Assistant
- Add
ttlock:
to your HA configuration.
Using your HA configuration directory (folder) as a starting point you should now also have this:
custom_components/ttlock/.translations/en.json
custom_components/ttlock/.translations/nb.json
custom_components/ttlock/.translations/sensor.nb.json
custom_components/ttlock/__init__.py
custom_components/ttlock/binary_sensor.py
custom_components/ttlock/config_flow.py
custom_components/ttlock/const.py
custom_components/ttlock/manifest.json
custom_components/ttlock/sensor.py
custom_components/ttlock/switch.py
ttlock:
client_id: ""
client_secret: ""
access_token: ""
refresh_token: ""
Key | Type | Required | Description |
---|---|---|---|
client_id |
string |
True |
The app_id which is assigned by system when you create an application. |
client_secret |
string |
True |
The app_secret which is assigned by system when you create an application. |
access_token |
string |
True |
Access token. |
refresh_token |
string |
True |
Refresh token. |
If you want to contribute to this please read the Contribution guidelines