pysesameos2
Unofficial Python Library to communicate with SESAME products via Bluetooth.
Introduction
This project aims to control smart devices running Sesame OS2 via Bluetooth. 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
Supported devices
Features
- Scan all SESAME locks using BLE advertisements.
- Receive state changes (locked, handle position, etc.) that are actively reported from the device.
- Needless to say, locking and unlocking!
Consideration
- The results of
pysesameos2are merely from reverse engineering of the official SDK. We have implemented just a small part of it, so you might run into some issues. Please do let me know if you find any problems! pysesameos2only supports devices that have already been initially configured using the official app. That is,pysesameos2cannot configure the locking position of your device.pysesameos2does 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.
Related Projects
Libraries
| Name | Lang | Communication Method |
|---|---|---|
| pysesame | Python | Sesame API v1/v2 |
| pysesame2 | Python | Sesame API v3 |
| pysesame3 | Python | Web API, CognitoAuth (The official android SDK reverse-engineered) |
| pysesameos2 | Python | Bluetooth |
Integrations
| Name | Description | Communication Method |
|---|---|---|
| doorman | Control SESAME3 from Homebridge by MQTT | Web API |
| Doorlock | iOS widget for Sesame 3 smart lock | Web API |
| gopy-sesame3 | NFC (Felica) integration | Web API |
| homebridge-open-sesame | Homebridge plugin for SESAME3 | Cognito integration |
| homebridge-sesame-os2 | Homebridge Plugin for SESAME OS2 (SESAME3) | Web API |
| sesame3-webhook | Send SESAME3 status to specified url. (HTTP Post) | CognitoAuth (based on pysesame3) |
Credits & Thanks
- A huge thank you to all at CANDY HOUSE and their crowdfunding contributors!
- Thanks to @Chabiichi-san for the offer to get my SESAME bot!
- Many thanks to bleak and pyzerproc.
Metadata
Release files for pysesameos2 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pysesameos2-0.0.6.tar.gz | 29.9 kB | Without provenance | Details for pysesameos2-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pysesameos2-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for pysesameos2-0.0.6-py3-none-any.whl |
Total release size: 54.1 kB
Release files / pysesameos2-0.0.6.tar.gz
| Download URL | pysesameos2-0.0.6.tar.gz |
|---|---|
| Size | 29.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
353999bec96f9ba8f7812969f8a5a25142761c3bfa9be5a66d9bd82a7642fba1
|
|
BLAKE2b-256 checksum How to use checksums |
4fef6e8492b007430c431029bdf9e14ab8bf318834ca084bb609a1a901e71478
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / pysesameos2-0.0.6-py3-none-any.whl
| Download URL | pysesameos2-0.0.6-py3-none-any.whl |
|---|---|
| Size | 24.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
052a46ade49468acd243a54e7e88a4b16d7d3f2f1e6b184ddf2e470c8f65fea8
|
|
BLAKE2b-256 checksum How to use checksums |
51f0d30ca0790ac427a5d7dd38789d72c196f0ae5db5e8d484ad589b83f0fbcf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for pysesameos2 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.