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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
62
20251108_SecJAWS_IAMSp
yuri_snowwhite
0
88
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
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.1k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
460
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
460
Making the Leap to Tech Lead
cromwellryan
135
10k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
730
HDC tutorial
michielstock
2
960
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
ご静聴、ありがとうございました