Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
JAWS-UG IoT_Switchbot Notify To Discord
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
snowwhite
February 25, 2025
1
790
JAWS-UG IoT_Switchbot Notify To Discord
2024/01/25
JAWS-UG IoT専門支部「IoTとセキュリティ:JC-STARをきっかけに」
の登壇資料
snowwhite
February 25, 2025
Tweet
Share
More Decks by snowwhite
See All by snowwhite
AWS Global Community Gatherings # 16
yuri_snowwhite
1
21
20251108_SecJAWS_IAMSp
yuri_snowwhite
0
32
20250730_AWS_AmazonQ
yuri_snowwhite
1
95
20250601_storage_and_bigdate_JAWS
yuri_snowwhite
1
78
250226_SecurityJAWS
yuri_snowwhite
2
1.1k
20250521 yumemi_grow _ finatext
yuri_snowwhite
2
340
Security.Any #2
yuri_snowwhite
1
160
20241024_an_real_horror_story_for_for_engineer
yuri_snowwhite
0
86
20240712_JAWSUG-FUKUOKA_Cloudgirl
yuri_snowwhite
0
81
Featured
See All Featured
Testing 201, or: Great Expectations
jmmastey
46
8.1k
How to Talk to Developers About Accessibility
jct
2
140
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
200
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
170
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
200
Making the Leap to Tech Lead
cromwellryan
135
9.7k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.2k
Claude Code のすすめ
schroneko
67
210k
Are puppies a ranking factor?
jonoalderson
1
2.7k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
55
Transcript
Switchbot の通知を Discordに まとめてみた 2025/02/25 株式会社ゆめみ 白"雪姫" by Yuki Sunaoka
• 自己紹介 ◦ 所属 ▪ 株式会社ゆめみ ◦ 名前 ▪ 白"雪姫"
a.k.a Yuki Sunaoka ◦ Certificate for AWS ▪ AIF/SAA/SAP/ANS/SCS ◦ 好きなサービス ▪ AWS Inspector ◦ 運営 ▪ JAWS-UG クラウド女子会 ◦ X/Qiita ▪ yuri_snowwhite 少し前まで、 Xもこのアイコンで した 普段はSecurity系の物に登壇 してます
我が家も導入。 導入したもの • Switchbot • Switchbot Pro • Switchbot hub
• Switchbot switch おまけ • amazon echo mini お家IoTの代表、Switchbot
!!!導入したんだけど ちょっと問題が発生 • 通知がものすごく多い • スマホの電池消費が多い • オートメーションも足したらすご い増えた ここに通知着た
だけバッチが増 える
じゃあ通知消せば? • 通知を無しにするとどうなる? ◦ 鍵の通知が来ないので状況でア プリを開く必要がある ▪ 毎回状態を取りに行くので 確認の時間コストが悪い ◦
一部はステータスが取れない機 器がいるので電源のオンオフが わからない という問題が発生
ちょっと調べてみました。
SwitchbotのAPI公開されてるじゃん! なんとSwitchbotのAPIが公開されているじゃないですか。 https://github.com/OpenWonderLabs/SwitchBotAPI これは、やりくりして通知先変更して、チャットで出せればもしかして、通知減らせる? と思いました。
やることリスト 1. 実際に多い通知は何? a. 鍵の開閉と定期的な温度通知 2. どうしたら通知を他に飛ばせる? a. AWSのLambdaとSQSを使って Webhook化すれば飛ばせそ
う? 3. WebHookにできれば、Discordだろう がSlackだろうが飛ばせる
実際やってみました!! 設計は以下な感じ
結果 とりあえず、Discordには飛ばせ た。 ですが、案の定、通知が多いま ま!!! これじゃ意味ないよ!! すこしブラッシュアップしました
ブラッシュアップ結果 StepFunctionsでステータス差異を確認するように変更
必要な情報だけにできました!! そのため、バッテリーの持ちも工 場!ストレスがなくなりました。
• 最後に ◦ ソースコード公開していま す ▪ https://github.com/ HimekoYuri/switch bot_notify •
もっとこうすると楽等ありました らGitにコメントください! • 設定方法の詳細公開していま す ◦ https://kohaku-kagero h.hatenablog.com/entr y/20241209/1733746235
ご静聴、ありがとうございました