Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ To be honest, this is my first time to use [`Bleak`](https://github.com/hbldh/bl
Please note that `pysesameos2` can only control [SESAME 3 Smart Lock](https://jp.candyhouse.co/products/sesame3) 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.
* Receive state changes (locked, handle position, etc.) that are actively reported from 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!
- The results of `pysesameos2` are merely from reverse engineering of [the official SDK](https://doc.candyhouse.co/). 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](https://doc.candyhouse.co/ja/flow_charts#sesame-%E5%B1%A5%E6%AD%B4%E6%A9%9F%E8%83%BD), 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](https://doc.candyhouse.co/ja/SesameAPI#sesame%E3%81%AE%E5%B1%A5%E6%AD%B4%E3%82%92%E5%8F%96%E5%BE%97).

Expand All @@ -43,5 +43,5 @@ Please take a look at the [`example`](https://github.com/mochipon/pysesameos2/tr

## Credits & Thanks

* A huge thank you to all who assisted with [CANDY HOUSE](https://jp.candyhouse.co/).
* A huge thank you to all at [CANDY HOUSE](https://jp.candyhouse.co/).
* Many thanks to [bleak](https://github.com/hbldh/bleak) and [pyzerproc](https://github.com/emlove/pyzerproc).
16 changes: 10 additions & 6 deletions example/mqtt2sesame/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
_English follows Japanese._

# MQTT - SESAME Bridge
# MQTT - SESAME 3 Bridge

このスクリプトは MQTT サーバと SESAME3 スマートロックの間をブリッジ接続します。[Home Assistant](https://www.home-assistant.io/) の [MQTT Lock](https://www.home-assistant.io/integrations/lock.mqtt/) を使うことで、鍵の状態をリアルタイムに把握したり、操作したりすることができます。
このスクリプトは MQTT サーバと SESAME3 スマートロックの間をブリッジ接続します。

[Home Assistant](https://www.home-assistant.io/) では [MQTT Lock](https://www.home-assistant.io/integrations/lock.mqtt/) を使うことで、鍵の状態をリアルタイムに把握したり、操作したりすることができます。

## ⚠️ 注意とおねがい

Expand Down Expand Up @@ -43,7 +45,8 @@ $ pip install -r requirements.txt

## スクリプトの利用方法

1. `discover.py` を実行して、Bluetooth における UUID と SESAME デバイスの UUID (アプリに表示される UUID) の対応を取得します。
1. `discover.py` を実行します
- Bluetooth における UUID と SESAME デバイスの UUID (公式アプリに表示される UUID) の対応を取得します

```console
$ . venv/bin/activate
Expand All @@ -54,10 +57,11 @@ SESAME Device Identifier: 9F8867D5-4FEF-48CA-BF74-1620FF9006F1
==========
```

2. 取得した情報を元にして `config.yml` を作成します
Bluetooth における UUID とそれに対応するデバイスの `secret_key`, `public_key` を紐付けます
2. 取得した情報を元にして `config.yml` を作成します
- Bluetooth における UUID とそれに対応するデバイスの `secret_key`, `public_key` を紐付けます

3. `mqtt2sesame.py` を実行します
- `--verbose` オプションをつけると更に詳細なログが表示されます

## Home Assistant の設定例

Expand All @@ -74,7 +78,7 @@ lock:

- - -

# MQTT - SESAME Bridge
# MQTT - SESAME 3 Bridge

This program aims to retrieve and control the status of SESAME devices via MQTT. Compatible with [Home Assistant](https://www.home-assistant.io/)'s [MQTT Lock](https://www.home-assistant.io/integrations/lock.mqtt/) platform.

Expand Down