A Python library for interfacing with the Yale Doorman Home API.
- Read whether lock is unlocked, locked, or door open
- Locking / Unlocking
- Enabling / Disabling auto lock
- Reading Volume level, Language, Auto lock disabled/enabled
- Yale Doorman home user account.
You can install Pyyaledoorman via pip from PyPI:
$ pip install pyyaledoorman
Please see Usage for details.
import pyyaledoorman
import aiohttp
import asyncio
import pyyaledoorman
async def main():
async with aiohttp.ClientSession() as session:
client = pyyaledoorman.Client(
"username",
"password",
session=session,
)
assert await client.login() == True
await client.update_devices()
for device in client.devices:
print(device.name)
await device.disable_autolock()
await device.unlock(pincode="123456")
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Contributions are very welcome. To learn more, see the Contributor Guide.
Distributed under the terms of the MIT license, Pyyaledoorman is free and open source software.
If you encounter any problems, please file an issue along with a detailed description.
This project was generated from @cjolowicz's Hypermodern Python Cookiecutter template.