Upgrade to Pro — share decks privately, control downloads, hide ads and more …

家の明るさ制御 / Brightness Control in My House

家の明るさ制御 / Brightness Control in My House

おうちHack勉強会 (https://ouchi-hack.github.io) #01 登壇資料

2174bd20a68bf55c494a424ad3790f4a?s=128

1024jp

May 21, 2022
Tweet

More Decks by 1024jp

Other Decks in Technology

Transcript

  1. 題: 場所: 日付: Ոͷ໌Δ੍͞ޚ KQ ͓͏ͪ)BDLษڧձ ೥݄೔ 発表者:

  2. ͓͏ͪ)BDL ษڧձ Ոͷ໌Δ੍͞ޚ ©2022 1024jp ࣗݾ঺հ application work macOS hobby

    macOS developer/designer @1024jp meet-up CotEditor Gapplin Qli plain-text editor SVG viewer movie player podcast
  3. ͓͏ͪ)BDL ษڧձ Ոͷ໌Δ੍͞ޚ ©2022 1024jp ͓͏ͪ)BDLϞνϕʔγϣϯ ✔︎ ָ͍ͨ͠ – ૢ࡞෦·Ͱߦ͔ͳͯ͘ྑ͍

    – ૢ࡞Λ͠ͳͯ͘ྑ͍ ✔︎ ๨Εͣʹ΍Γ͍ͨ – ࣗಈ੍ޚʹͯ͠ඞͣ΍Δ – ԕִʢ֎ग़ઌʣ͔ΒͰ΋ૢ࡞Ͱ͖Δ ✔︎ ऩ·ΓΛྑ͍ͨ͘͠ – ԕִͰ੍ޚͰ͖Ε͹ૢ࡞෦ɾ഑ઢΛӅṭͰ͖Δ ✔︎ ͨͷ͍͠ Ϟνϕʔγϣϯ ಋೖࡁΈ – র໌ – Χʔςϯ։ด – ૟আػ (Roomba) – ચ୕ػ – ΤΞίϯ (SwitchBot) – HomePod
  4. ͓͏ͪ)BDL ษڧձ Ոͷ໌Δ੍͞ޚ ©2022 1024jp ࠓ೔ͷٞ୊ – 1024jp͕͓͏ͪͷ໌Δ੍͞ޚͰ΍͍ͬͯΔ͜ͱ – Ոͷ໌Δ͞Λ੍ޚ͢Δ͜ͱͷମܥతͳߟ࡯

  5. ͓͏ͪ)BDL ษڧձ Ոͷ໌Δ੍͞ޚ ©2022 1024jp ͓͏ͪͷ໌Δ੍͞ޚ ࣗવޫ ΧʔςϯɾϒϥΠϯυͷ։ด ݐ۩ʢӍށɾোࢠʣͷ։ด র໌

    ૊ΈࠐΈর໌ʢεΠονʣ 􀆭
  6. ͓͏ͪ)BDL ษڧձ Ոͷ໌Δ੍͞ޚ ©2022 1024jp ໌Δ੍͞ޚ৭ʑ 1024jpఛʢ֓೦ʣ *P5Χʔςϯ खಈΧʔςϯ ਓײর໌

    *P5র໌ εΠονࣜর໌ ຌྫ 􀟣 􀟣 􀟣 )PNF1PE
  7. ©2022 1024jp Ոͷ໌Δ੍͞ޚ ͓͏ͪ)BDL ษڧձ ௐޫσόΠε

  8. ͓͏ͪ)BDL ษڧձ Ոͷ໌Δ੍͞ޚ ©2022 1024jp ௐޫσόΠεɿ*P5ిٿ Philips Hue (white gradation

    lamp) 色の変更のを活用してる人は 
 見たことがない – E26/E17ͳͲҰൠతͳޱ͔ۚ͠ ରԠ͍ͯ͠ͳ͍ – ͨ͘͞Μἧ͑Δͱߴ͍ ډࣨ ಛʹͳ͠ ޲͍ͯΔɿ ޲͍ͯͳ͍ɿ – HomeKitʹͭͳ͕Δ – ௐޫͰ͖Δ 􀊀 􀊂 – ௐޫ͸ࣗ෼ͷϞʔυΛ੾Γସ͑ΔεΠονʹͳΔ – ৭ͷมߋͷΛ׆༻ͯ͠Δਓ͸ݟͨ͜ͱ͕ͳ͍ お風呂も良さそう Philips Hue (bridge) – ओࣨʢҰ෦আ͘ʣ – ৸ࣨ
  9. ͓͏ͪ)BDL ษڧձ Ոͷ໌Δ੍͞ޚ ©2022 1024jp ௐޫσόΠεɿਓײηϯαʔిٿ – ࢭ·ͬͯΔͱ੾ΕΔ – ௐޫͰ͖ͳ͍

    – ࿈ಈ͠ͳ͍ʢηϯαಠཱλΠϓͳΒՄೳʣ ݰؔɾ࿓Լ ډࣨɾτΠϨɾ͓෩࿊ ޲͍ͯΔɿ ޲͍ͯͳ͍ɿ 脱衣所も向いてる 
 気がしてる Panasonic (Ұൠిٿ ͻͱηϯαλΠϓ) – ૢ࡞͠ͳͯ͘ྑ͍ – ωοτϫʔΫʹܨ͛Δඞཁ͕ͳ͍ 􀊀 􀊂 – Ұ࣌తʹͷΈ࢖͏ͱ͜Ζʹ࠷ద – ੩ࢭ͢Δ৔ॴ͸޲͔ͳ͍ʢτΠϨ͸᠘ – དྷ٬ऀʹઆ໌͕ΊΜͲ͏ – ݰؔɾ࿓Լ
  10. ͓͏ͪ)BDL ษڧձ Ոͷ໌Δ੍͞ޚ ©2022 1024jp ௐޫσόΠεɿΧʔςϯ։ด SwitchBot (Χʔςϯ IܕϨʔϧ) –

    ։ด͸͔ͳΓ͏Δ͍͞ – ్த·Ͱ։͚Δͷ͕ۤख – HomeKitʹܨ͛Δͷ͕͔ͳΓΊΜͲ͏ – ։ดΛεέδϡʔϦϯάͰ͖Δ 􀊀 􀊂 – ໨֮Ίͷิॿʹ࢖͍ͨ͘ͳΔ͕։ด͕͏Δ͍͞ͷͰ ৸ࣨʹ͸޲͔ͳ͍ – Homekitͱ࿈ಈ͚ͨ͠Ε͹Homebridge͸ඞਢ ओࣨ ৸ࣨ ޲͍ͯΔɿ ޲͍ͯͳ͍ɿ SwitchBot (bridge) – ओࣨ
  11. ©2022 1024jp Ոͷ໌Δ੍͞ޚ ͓͏ͪ)BDL ษڧձ ੍ޚσόΠε

  12. ͓͏ͪ)BDL ษڧձ Ոͷ໌Δ੍͞ޚ ©2022 1024jp ੍ޚσόΠεɿ*P5εΠον Philips Hue (dimmer switch

    v1) – ௐޫσόΠεଆ͕IoTͰͳ͍ͱ࢖͑ͳ͍ – ઃஔ৔ॴ͕ඞཁ – ͡Θ͡Θಋೖඅ͕͔͔Δ ډࣨɾ͓෩࿊ ࿓ԼɾτΠϨɾೲށ ޲͍ͯΔɿ ޲͍ͯͳ͍ɿ – HomeKitσόΠε·Ͱߦ͔ͳͯ͘ྑ͍ – ௐޫͳͲߴ౓ͳมߋ͕෺ཧͰͰ͖Δ 􀊀 􀊂 – ෇͚ͬͺͳ͠ʹ͠ͳ͍ډࣨʢ৸ࣨɾॻࡈͳͲʣʹ͸ ͋Δͱศར – ৸ࣨ
  13. ͓͏ͪ)BDL ษڧձ Ոͷ໌Δ੍͞ޚ ©2022 1024jp ੍ޚσόΠεɿ*P5εΠον Philips Hue (dimmer switch

    v1) – ௐޫσόΠεଆ͕IoTͰͳ͍ͱ࢖͑ͳ͍ – ઃஔ৔ॴ͕ඞཁ – ͡Θ͡Θಋೖඅ͕͔͔Δ ډࣨɾ͓෩࿊ ࿓ԼɾτΠϨɾೲށ ޲͍ͯΔɿ ޲͍ͯͳ͍ɿ – HomeKitσόΠε·Ͱߦ͔ͳͯ͘ྑ͍ – ௐޫͳͲߴ౓ͳมߋ͕෺ཧͰͰ͖Δ 􀊀 􀊂 – ෇͚ͬͺͳ͠ʹ͠ͳ͍ډࣨʢ৸ࣨɾॻࡈͳͲʣʹ͸ ͋Δͱศར – ৸ࣨ
  14. ͓͏ͪ)BDL ษڧձ Ոͷ໌Δ੍͞ޚ ©2022 1024jp ੍ޚσόΠεɿैདྷεΠον – ݁ہซઃ͞Ε͍ͯΔ׵ؾεΠονΛԡ͢ͷͰ র໌͚ͩࣗಈԽͯ͠΋ϝϦοτ͕ͳ͍ –

    ۭؒΛ࢖͏ͷ͕୹ظͰ͔͠΋نଇੑʹ͚ܽΔ ਆอిث (J•WIDE εΫΤΞ) – εΠον·Ͱߦ͔ͳ͍ͱԡͤͳ͍ – ঢ়ଶ͕࿈ಈ͠ͳ͍ – ՈʹແྉͰ෇͍ͯ͘Δ – ΈΜͳ͕࢖͍ํΛ஌͍ͬͯΔ 􀊀 􀊂 τΠϨɾ͓෩࿊ɾೲށ ډࣨ ޲͍ͯΔɿ ޲͍ͯͳ͍ɿ – ओࣨʢҰ෦ʣ – ϫʔΫεϖʔε – ͓෩࿊ɾ୤ҥॴ – τΠϨ
  15. ͓͏ͪ)BDL ษڧձ Ոͷ໌Δ੍͞ޚ ©2022 1024jp ੍ޚσόΠεɿ*P5εϐʔΧʔ HomePod – ઃஔՕॴͱ਺͕ݶΒΕΔ –

    ཧղͯ͠΋Β͑ͳ͍ͱ৺͕ંΕΔ – ੠Λ͔͚Δͷ͕ͪΐͬͱஏ͔͍ͣ͠ – ͳΜͯ੠Λ͔͚Ε͹ཧղͯ͠΋Β͑Δͷ͔ ͍·͍ͪΑ͘Θ͔Βͳ͍ – σόΠε͕ͳͯ͘΋ૢ࡞Ͱ͖Δ – ΧʔςϯΛத్൒୺ʹ։͚Δ 􀊀 􀊂 􀟣 􀟣 ډࣨ ډࣨҎ֎ ޲͍ͯΔɿ ޲͍ͯͳ͍ɿ – ͱʹ͔͘੠Λ͔͚Δ৺ཧোน͕ߴ͍ – ओࣨ – ϫʔΫεϖʔε
  16. ͓͏ͪ)BDL ษڧձ Ոͷ໌Δ੍͞ޚ ©2022 1024jp ੍ޚσόΠεɿ)PNFBQQ iPhone – खಈ੍ޚ͸͔ͳΓΊΜͲ͍͘͞ –

    HomeKitʹରԠͯ͠ͳ͍Ϡπͱͷ࿈ܞ – ߴ౓ͳࣗಈԽ͕Ͱ͖Δ – Ͳ͜Ͱ΋࢖͑Δ 􀊀 􀊂 – ඞਢʢ͜Ε͕࢖͍͍͔ͨΒͦۤ͜࿑Λͯ͠Δʣ – ࣗಈԽ͸͍͍Μ͚ͩͲૢ࡞͸ΊΜͲ͍͘͞ ډࣨ τΠϨɾ͓෩࿊ɾೲށͳͲ ޲͍ͯΔɿ ޲͍ͯͳ͍ɿ
  17. ͓͏ͪ)BDL ษڧձ Ոͷ໌Δ੍͞ޚ ©2022 1024jp ੍ޚσόΠεɿ)PNFCSJEHF Raspberry Pi (Zero W)

    – HomeKitඇରԠσόΠεΛHomeKitରԠʹ – ຊମ͸Ӆṭ͠΍͍͢ 􀊀 – ଞͷσόΠεͱ࿈ಈ͚ͨ͠Ε͹Homebridge͸΄΅ඞਢ – σόΠεଆ͕ݩʑHomeKitରԠͳΒ͍Βͳ͍ͷʹͳ… – ಋೖ͕໘౗͚ͩͲຊମ͸ӅṭͰ͖Δ͔Β Ұ౓ೖΕͯ͠·͑͹ͦ͜·Ͱअຐ͡Όͳ͍ – ಋೖ͕ΊΜͲ͏ – ࢓૊Έ͕΍΍͘͜͠ͳΔ 􀊂 – ϫʔΫεϖʔε
  18. ©2022 1024jp Ոͷ໌Δ੍͞ޚ ͓͏ͪ)BDL ษڧձ ੍ޚ

  19. ͓͏ͪ)BDL ษڧձ Ոͷ໌Δ੍͞ޚ ©2022 1024jp ͳ੍ͥޚ͢Δͷ͔ ిؾΛʮফ͍ͨ͠ʯ 
 Ϟνϕʔγϣϯ ✔︎

    ᚶ͍͠ɾ໨োΓ ✔︎ ϓϥΠόγʔ ✔︎ লΤω ✔︎ མͪண͔ͳ͍ そもそも ిؾΛʮ఺͚͍ͨʯ 
 Ϟνϕʔγϣϯ ✔︎ ࢹքͷ֬อ ʮϋοΫ͍ͨ͠ʯ 
 Ϟνϕʔγϣϯ ✔︎ ָ͍ͨ͠ ✔︎ ๨Εͣʹ΍Γ͍ͨ ✔︎ ऩ·ΓΛྑ͍ͨ͘͠ ✔︎ ͨͷ͍͠ ʮϋοΫ͠ͳ͍ʯ 
 Ϟνϕʔγϣϯ ✔︎ ΊΜͲ͍͘͞ ✔︎ ٕज़ݶք ✔︎ ۚમతίετ
  20. ͓͏ͪ)BDL ษڧձ Ոͷ໌Δ੍͞ޚ ©2022 1024jp 􀟣 􀟣 χʔζͷҧ͍ – ৭ʑ੍ޚ͍ͨ͠

    – ͍ͳ͍ͱ͖͸ফ͑ͯ΄͍͠ – Ұ෦র໌͕ݻఆ – ໨֮Ί͍ͨ – ੩͔Ͱ͋ͬͯ΄͍͠ – ͓෍ஂ͔Β΍Γ͍ͨ – ׵ؾͱ࿈ಈ͍ͨ͠ – ࢖ͬͯΔ ≠ ಈ͍ͯΔ – ͍͍ͪͪૢ࡞ͨ͘͠ͳ͍ – ࢖ͬͯΔʹಈ͍ͯΔ – ར༻͚࣌ͩ෇͚͍ͨ – ݱঢ়ిٿ͚ͩೖΕସ͑Ͱ͖ͳ͍ ৸ࣨ ϫʔΫεϖʔε ओࣨ ݰؔɾ࿓Լ τΠϨ – ׵ؾͱ࿈ಈ͍ͨ͠ – ࢖ͬͯΔ ≠ ಈ͍ͯΔ ͓෩࿊ – ࢖ͬͯΔʹಈ͍ͯΔ ୤ҥॴ ར༻࿈ಈ ར༻࿈ಈ ར༻࿈ಈ ར༻࿈ಈ ར༻࿈ಈ ঢ়ଶ࿈ಈ ঢ়ଶɾར༻࿈ಈ
  21. ͓͏ͪ)BDL ษڧձ Ոͷ໌Δ੍͞ޚ ©2022 1024jp 􀎞 􀝢 ग़୐ 􀎞 ɹؼ୐

    GPS GPS Off On (100%) Off – Off – ࣗಈԽ 􀆮 ىচ 􀻟 ೔຅ 􀆺 ໷ 􀆾 ब৸ τϦΨʔ ໨֮·͠࿈ಈ 17 : 30 21 : 00 ໨֮·͠࿈ಈ or 1 : 00 ओࣨ র໌ On (100%) Dimm (50%) Off Χʔςϯ Open (80%) Close ৸ࣨ র໌ On (100%) Off ࿓Լ র໌ ΄͔ র໌ 􀝢 Sleep Cycle – ศར – ࠓͱͳͬͯ͸iOSඪ४ͷ໨֮·͠Ͱ΋ ͍͍ؾ͕͢Δ͕Α͘Θ͔Βͳ͍ ਓײ खಈ खಈͰ఺͚ͨΓফͨ͠Γ home app
  22. ͓͏ͪ)BDL ษڧձ Ոͷ໌Δ੍͞ޚ ©2022 1024jp ࠓޙͷల๬ *P5Χʔςϯ खಈΧʔςϯ ࢦϘοτ੍ޚর໌ ਓײর໌

    εΠονࣜর໌ ຌྫ 􀟣 )PNF1PE *P5র໌ 􀟣 􀟣
  23. ͓͏ͪ)BDL ษڧձ Ոͷ໌Δ੍͞ޚ ©2022 1024jp ·ͱΊ – ۭؒͷ༻్ͱ੍໿ʹΑͬͯ࠷దͳ໌Δ੍͞ޚ͕ҧ͏ɹ→ ٕज़બఆ͕ඞཁ –

    OnͱOffͰ͸ࣗಈԽ͍ͨ͠Ϟνϕʔγϣϯ͕ҟͳΔ – Ұൠతͳॅ୐͸IoTϨσΟ͡Όͳ͍ – ಋೖʹίετ͕͔͔Δ͔Β໎͏ – IoT੍ޚσόΠεΛૢ࡞͢Δͷ͸ͦΕ͸ͦΕͰΊΜͲ͏ – Siriʹ൱ఆ͞ΕΔͱ৺͕ંΕΔ – ຊ౰ʹ΍Γ͍ͨͷ͸ɺ ଟ͘ͷ৔߹ʮ͜ͷ෦԰ʹਓ͕͍ͨΒʯ৚݅෼ذͳؾ͕͢Δ
  24. ©2022 1024jp Ոͷ໌Δ੍͞ޚ ͓͏ͪ)BDL ษڧձ ͓ΘΓ