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
snowwhite
February 25, 2025
1
800
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
24
20251108_SecJAWS_IAMSp
yuri_snowwhite
0
36
20250730_AWS_AmazonQ
yuri_snowwhite
1
98
20250601_storage_and_bigdate_JAWS
yuri_snowwhite
1
84
250226_SecurityJAWS
yuri_snowwhite
2
1.1k
20250521 yumemi_grow _ finatext
yuri_snowwhite
2
350
Security.Any #2
yuri_snowwhite
1
170
20241024_an_real_horror_story_for_for_engineer
yuri_snowwhite
0
88
20240712_JAWSUG-FUKUOKA_Cloudgirl
yuri_snowwhite
0
84
Featured
See All Featured
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
The SEO identity crisis: Don't let AI make you average
varn
0
400
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
320
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Mobile First: as difficult as doing things right
swwweet
225
10k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.3k
Un-Boring Meetings
codingconduct
0
220
Building Adaptive Systems
keathley
44
2.9k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
470
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
Deep Space Network (abreviated)
tonyrice
0
86
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
ご静聴、ありがとうございました