A package to interact with Tedee locks using asyncio
Project description
Python asyncio Tedee Client Package
This is a Tedee Lock Client package. It is an async implementation of joerg65's original package.
Install:
From pip
pip install aiotedee
Locally
pipenv install -e .
# or
python3 setup.py install
Try it out
- Generate personal key. Instructions: https://tedee-tedee-api-doc.readthedocs-hosted.com/en/latest/howtos/authenticate.html#personal-access-key
Minimal scopes required for enable integration are:
- Devices.Read
- Lock.Operate
- with
example.py
: Create a fileconfig.json
next toexample.py
:
{
"personalToken": "<your token>"
}
cd into the directory of those to files and run
python example.py
- Initiate an instance of
TedeeClient
from aiotedee import TedeeClient
pk = "<your PersonalKey>"
# through init
client = TedeeClient(pk) # is initialized with no locks
client.get_locks() # get the locks
# through classmethod
# will initialize directly with all locks you have
client = await TedeeClient.create(pk)
- the locks are avialable in a dictionary
client.locks_dict
with the key of the dict being the serial number of each lock, or in a listclient.locks
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiotedee-0.2.20.tar.gz
(9.6 kB
view details)
Built Distribution
aiotedee-0.2.20-py3-none-any.whl
(10.4 kB
view details)
File details
Details for the file aiotedee-0.2.20.tar.gz
.
File metadata
- Download URL: aiotedee-0.2.20.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bceb79074ac7a65aca103e3a3690038ab093a12b5ccfd0039b8e4132bfaa4f67 |
|
MD5 | a9186fc93e8971ada2d618cfa1692b02 |
|
BLAKE2b-256 | 7fb320b7eb68a34b28b57b86543525d7f5b852253dae5013036a9e5c95ce82a1 |
File details
Details for the file aiotedee-0.2.20-py3-none-any.whl
.
File metadata
- Download URL: aiotedee-0.2.20-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da29f9357557f7e00834641d40442a841500e8f703f1614c4ecfcc753739cbf6 |
|
MD5 | 7708f5b68255cc3fd0253c3e078145f8 |
|
BLAKE2b-256 | f9ddb198118cf299fe56a198b87f826480424f6b36e792e5b9f69503cd46f348 |