Skip to main content

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.

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 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.

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.

Credits & Thanks

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

pysesameos2-0.0.3.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

pysesameos2-0.0.3-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file pysesameos2-0.0.3.tar.gz.

File metadata

  • Download URL: pysesameos2-0.0.3.tar.gz
  • Upload date:
  • Size: 28.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for pysesameos2-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3103cdf05def9712d49be8de0a81540f554697687426b32c99ba2e8f8952f201
MD5 77f5a8327e22b01a6c928b034a3c4040
BLAKE2b-256 7662688f6c3dce250bcbd969861d4aa0e091a1a3d2f54d03f0303af0b61caae9

See more details on using hashes here.

File details

Details for the file pysesameos2-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pysesameos2-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 23.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for pysesameos2-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f932015a7751b4cd6ba00486900f07a60b5e16a25cc8593052b8d8703a5fdf43
MD5 bad1b74762501d06fbdb92c7034df699
BLAKE2b-256 2d076c44c5439999b3dde1b6acd450935eed3127ec58ac34d334fc042cbeff21

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page