Skip to main content

pysesameos2

Unofficial Python Library to communicate with SESAME products via Bluetooth.

PyPI PyPI - Python Version GitHub Workflow Status (branch) Documentation Status codecov PyPI - License

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.

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 pysesameos2 are 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!
  • 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.

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

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)

Source distribution for pysesameos2 0.0.6
File Size Uploaded
pysesameos2-0.0.6.tar.gz 29.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pysesameos2 0.0.6
File Interpreter ABI Platform
pysesameos2-0.0.6-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page