このプロジェクトは、SwitchBot API v1.1 を介してスマートロックや温湿度計の状態取得や操作を行い、その結果をDiscordに通知するPython Botです。
➡️ ブログ記事: 【Mac miniではじめるPython IoT開発】Discord BotでSwitchBot Lockを遠隔操作する
- スマートロックの遠隔操作:
鍵開けて!: スマートロックを解錠します。鍵閉めて!: スマートロックを施錠します。鍵閉まってる?: 現在の状態(施錠/解錠/電池残量)を確認します。
- 温湿度計のデータ取得:
温湿度は?: SwitchBot温湿度計から現在の温度、湿度、電池残量を取得します。
このBotを動作させるには、いくつかの事前準備(APIキーの取得、Discord Botのセットアップなど)が必要です。
詳しい手順は、上記のブログ記事でステップバイステップで解説しています。まずはこちらをご覧ください。
このプロジェクトは MIT License のもとで公開されています。ライセンスの全文については、LICENSE ファイルをご覧ください。
また、このプロジェクトはサードパーティ製のライブラリを利用しています。これらのライブラリのライセンス情報については、NOTICE.md ファイルに記載しています。
ブログ記事: 【Mac miniではじめるPython IoT開発】Discord BotでSwitchBot Lockを遠隔操作する
もしこの記事を読んで分からないことがあれば、ブログのコメント欄で質問してみてください。Tech Samuraiが気づけば、回答するかもしれませんよ!
This is a Python bot that operates a SwitchBot Lock and sends notifications to Discord.
To run this bot, you'll need to complete several setup steps first (e.g., getting API keys, setting up a Discord Bot).
A detailed, step-by-step guide is available on my blog. Please read this article first.
➡️ 【Mac miniではじめるPython IoT開発】Discord BotでSwitchBot Lockを遠隔操作する (The article is in Japanese, but contains all the necessary code and setup flow.)
This project is licensed under the MIT License. For more details, see the LICENSE file in the project root.
If you have any questions after reading the article, feel free to ask them in the blog's comment section. If Tech Samurai notices, you might just get an answer!