A Tedee Lock Client package
Project description
Python Tedee Async Client Package
This is a Tedee Lock Client package. It is an async implementation of joerg65's original package.
Install:
From pip
pip install pytedee-async
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 pytedee_async 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
pytedee_async-0.2.3.tar.gz
(8.9 kB
view hashes)
Built Distribution
Close
Hashes for pytedee_async-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b9042fc4a22113a2a5daf190d9f7639fd943c3d2a7dae7274e38736ae4aa7c2 |
|
MD5 | 8f4ce3285e8c3141e2d724f04e59428c |
|
BLAKE2b-256 | 85258dd3abecc1f19dab81ab10f52ed71bd52982e68558d01f89995e2b128a29 |