Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
JAWS-UG IoT_Switchbot Notify To Discord
Search
snowwhite
February 25, 2025
1k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
JAWS-UG IoT_Switchbot Notify To Discord
2024/01/25
JAWS-UG IoT専門支部「IoTとセキュリティ:JC-STARをきっかけに」
の登壇資料
snowwhite
February 25, 2025
More Decks by snowwhite
See All by snowwhite
20260804_NW-JAWS
yuri_snowwhite
1
700
20250625_anthoropic_booth_mini_session
yuri_snowwhite
0
56
20260527_IAM_IdentityCenter_is_a_IIC_management
yuri_snowwhite
0
52
20260521_security_any_AI_is_ray_trusted_loved
yuri_snowwhite
0
110
AWS Global Community Gatherings # 16
yuri_snowwhite
1
60
20251108_SecJAWS_IAMSp
yuri_snowwhite
0
87
20250730_AWS_AmazonQ
yuri_snowwhite
1
130
20250601_storage_and_bigdate_JAWS
yuri_snowwhite
1
95
250226_SecurityJAWS
yuri_snowwhite
2
1.3k
Featured
See All Featured
A Tale of Four Properties
chriscoyier
163
24k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.2k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
300
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.7k
The Curious Case for Waylosing
cassininazir
1
560
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
860
Facilitating Awesome Meetings
lara
57
7.2k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
350
Designing Powerful Visuals for Engaging Learning
tmiket
1
600
The Mindset for Success: Future Career Progression
greggifford
PRO
0
530
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
530
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
ご静聴、ありがとうございました