Unofficial library to control smart devices running Sesame OS2.
Project description
pysesameos2
Unofficial Python Library to communicate with SESAME 3 series products via Bluetooth connection.
Introduction
This project aims to control smart devices running Sesame OS2 via Bluetooth connection. If you want to control them via the cloud service, please check pysesame3.
To be honest, this is my first time to use Bleak
which provides an asynchronous, cross-platform Bluetooth API. PRs are heavily welcome.
- Free software: MIT license
- Documentation: https://pysesameos2.readthedocs.io
Tested Environments
- macOS 10.15.7, Python 3.9.5
- Raspberry Pi Zero W (Raspbian GNU/Linux 10, Raspberry Pi reference 2021-05-07), Python 3.7.3
Features
Please note that pysesameos2
can only control SESAME 3 Smart Lock at this moment. Although all types of devices running Sesame OS2 are technically supportable, I don't actually have or need those devices. PRs are always welcome to help out!
- Scan all SESAME locks using BLE advertisements.
- Receive state changes (locked, handle position, etc.) that are proactively sent by the device.
- Needless to say, locking and unlocking!
Consideration
- The results of this project are merely from reverse engineering of the official SDK so you might run into some issues. Please do let me know if you find any problems!
pysesameos2
only supports devices that have already been initially configured using the official app. That is,pysesameos2
cannot configure the locking position of your device.pysesameos2
does not have, and will not have, any functionality related to the operation history of locks. According to the document, your lock's operation history is not stored in the lock itself, but on the cloud service. I personally recommend you to bring a Wi-Fi module to get the operation history uploaded and retrive it by the API.
Usage
Please take a look at the example
directory.
Credits & Thanks
- A huge thank you to all who assisted with CANDY HOUSE.
- Many thanks to bleak and pyzerproc.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pysesameos2-0.0.1.tar.gz
.
File metadata
- Download URL: pysesameos2-0.0.1.tar.gz
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cddd7f49fc8dbeaad6bb688e1a3832cceea17710604f59a98dddbbdd585d48f |
|
MD5 | 84574e861fe634100671f7fb3b42deaf |
|
BLAKE2b-256 | 9df2fbfe9690d20a260968ac31a135aabacebdedcc61e6cc0b956c8cccbde44d |
File details
Details for the file pysesameos2-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pysesameos2-0.0.1-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 482c2f072a5d824e732115e523b01b96a5d5520a0e853252f529922ac2e9f168 |
|
MD5 | 9e713cc9df76d75f1f25f39f24e1f7da |
|
BLAKE2b-256 | 79aff54ff0fd0889cf81f7fe8540626de0298cd99b443011a28e8ab6b493e023 |