SlideShare a Scribd company logo
1 of 70
COFFEE & PI
INTRO TO HOME AUTOMATION
BRAD DERSTINE
MEETUP.COM/COFFEE-AND-PI
TWITTER/INSTAGRAM: #COFFEEANDPI
NOW ON SLACK
PHILLYDEV.ORG #RASPBERRYPI
WELCOME TO COFFEE & PI!
• Has anyone never touched or seen a Raspberry Pi?
• Does anyone work with RPi professionally?
• Windows or OS X?
• Is anyone from the suburbs or outside Center City?
• Did anyone bring their first Pi and need help getting
started?
RULES FOR THE MEETUP
• This is a beginner friendly meetup. All skill levels are
welcome. We were all beginners at one time.
• There are no stupid questions, only stupid people.
If you have a silly question, someone else might too. Ask
anyway.
• I do not know everything. About anything. If I don’t know, I will
say so. If you do know, please share! We are all here to learn!
• Even the greatest works of art started with someone learning the
basics and practicing their craft.
BRAD DERSTINE
• 16+ years working in IT
• Started out doing 1st level tech support
• Currently DevOps Engineer for one of the oldest and
largest non-profits in the US
• Why Raspberry Pi?
DEMO!
STORY
WHAT A MESS…
ZIGBEE VS Z-WAVE
ZIGBEE
• ZigBee is an IEEE 802.15.4-based specification for a
suite of high-level communication protocols used to
create personal area networks with small, low-power
digital radios, such as for home automation, medical
device data collection, and other low-power low-
bandwidth needs, designed for small scale projects
which need wireless connection. - Wikipedia
• ZigBee Alliance - http://www.zigbee.org
From the box of
Philips Hue Bridge
Z-WAVE
• Z-wave != ZigBee
• Does use the same spec, but different chips, software,
and SDK
• Uses mesh networking
• 30 meters between devices, up to 4 hops
• Over 1700 devices certified
• Z-wave Alliance - http://z-wavealliance.org
SO WHICH SHOULD YOU USE?
• This will probably be dependent on the hardware
and software you want to use, and what your use
case is.
• DO YOUR RESEARCH!
• Platform - Bridges - Devices
• Choose a platform, know the bridges you need,
invest in the supporting devices!
PLATFORMS
HOMEKIT
APPLE HOME AUTOMATION
HOMEKIT REMOTE SUPPORT
• Using HomeKit remotely requires
an Apple TV (4th gen
recommended, 3rd supported
with iOS 8.4.1-based, Apple TV
Software 7.2 ) or iPad (iOS 10+)
• Does not require opening firewall
ports, supported through the
Apple ecosystem.
• https://www.howtogeek.com/234
180/how-to-enable-remote-
access-to-your-homekit-smart-
home-via-apple-tv/
BRILLO
GOOGLE/ANDROID HOME AUTOMATION
SMARTTHINGS
SAMSUNG HOME AUTOMATION
HOME ASSISTANT
RASPBERRY PI HOME AUTOMATION
HTTP://HOME-ASSISTANT.IO
OPENHAB
RASPBERRY PI HOME AUTOMATION
HTTPS://WWW.OPENHAB.ORG
USEFUL PLATFORM NOTES
• Know your platform! Do your research!
• HomeKit only for iOS users!
• Brillo only for Android users!
• SmartThings, Home Assistant, and OpenHAB
support both iOS and Android apps!
BRIDGES & HUBS
THIS IS WHERE THE FUN BEGINS…
PHILIPS HUE BRIDGE
ONLY BRIDGES FOR PHILIPS HUE
PRODUCTS
SMARTTHINGS HUB
SUPPORTS ZIGBEE AND Z-WAVE DEVICES
HTTPS://WWW.SMARTTHINGS.COM
ZEOTEC BY AEON LABS
Z-WAVE BRIDGE USB STICK/HUB
HOMESEER HOME TROLLER S6
EXPENSIVE! COMPATIBLE WITH Z-WAVE,
X10
XFINITY HOME CONTROL
SUPPORTS ZIGBEE, COMPATIBLE WITH NEST LEARNING THERMOSTAT,
AUGUST SMART LOCK, CHAMBERLAIN MYQ GARAGE-DOOR
CONTROLLER, AND THE LUTRON CASETA WIRELESS LIGHTING
CONTROLLER
HOMEBRIDGE
• Homebridge is a lightweight NodeJS server you can
run that emulates iOS HomeKit API
• Can be configured to “bridge” communication from
HomeKit to 3rd party devices that don’t support
HomeKit yet via config files
• Should be done by manufacturers, but this exists for
the hackers and the impatient
USEFUL BRIDGE NOTES
• The SmartThings Hub is still probably the best route for starting
out! (most flexible!)
• Samsung bought SmartThings
• Google’s Nest bought smart home startup Revolv, making
SmartHome Hub an abandoned project.
• Comcast XFINITY Home Control supports ZigBee, only whitelisting
certain devices for now
• Integrating with non-supported platforms/devices or hacking = use
a bridge emulator
DEVICES
DO YOUR RESEARCH!
ALEXA / GOOGLE HOME
VOICE COMMAND
PHILIPS HUE
LIGHTS
OUTLETS
INDOOR AND OUTDOOR OUTLETS
SENSORS
DOOR/WINDOW SENSORS, MOTION
SENSORS, WATER SENSORS, SMOKE/FIRE
SENSORS
CAMERAS AND DOORBELLS
FOR SECURITY OR MONITORING
DOOR LOCKS
ENTRY HANDLES AND DEADBOLTS
THERMOSTATS
SPEAKERS
MANY OTHERS
SPRINKLER CONTROLS, SIRENS, WATER
VALVES, GARAGE DOOR OPENERS
HOME ASSISTANT
ONE PLATFORM TO RULE THEM ALL
SORT OF…
SO WHY HOME ASSISTANT?
• Unifying platform for cross vendor support
• Supports bridges, hubs, and emulators
• Control all your devices from a single, mobile-friendly,
interface
• Without storing any of your data in the cloud
• Still allow for remote monitoring and admin
• Python 3, REST-api, lots of documentation and videos
INSTALLING HOME ASSISTANT
• https://home-assistant.io/docs/hassbian/installation/
• Download Hassbian 1.1
image_2017-02-03-HASSbian.zip
• Download and Install Etcher
https://etcher.io
• Use Etcher to write Hassbian to micro SD card
BOOT RASPBERRY PI WITH
HASSBIAN
• Insert the micro SD card into the Raspberry Pi
• Plug in the network cable and boot the Pi
• Server starts up in headless mode (Use SSH)
• Use keyboard/mouse/monitor for console or use
SSH to run scripts
AFTER HASSBIAN BOOTS
• Home Assistant runs on startup, listens on
port 8123
• http://<ip address of pi>:8123
STATES
SHOW THE STATE OF ENTITIES
REGISTERED AND DISCOVERED BY HOME
ASSISTANT
MAP
DEVICES CAN BE REGISTERED WITH LOCATION
INFORMATION AND DISPLAYED AND MANAGED FROM THE
MAP.
LOGBOOK
LISTS CHANGES THAT HOME ASSISTANT
MONITORS
HISTORY
PRIOR EVENTS REPRESENTED ON
TIMELINES
CONFIGURATION
ORGANIZE DEVICES BY GROUPS
CONFIGURATION -
RESTART/STOP
WEB BASED WAY TO RESTART AND STOP
THE RASPBERRY PI AFTER CONFIG
CHANGES
DEV TOOLS - SERVICES
DIRECTLY CALL SERVICES
DEV TOOLS - STATES
DIRECTLY CALL STATES
DEV TOOLS - EVENTS
QUERY FOR EVENTS
DEV TOOLS - TEMPLATES
DEV TOOLS - ABOUT
USEFUL INFORMATION ABOUT HOME
ASSISTANT
INSTALL HASSBIAN SCRIPTS
• SSH Default username: pi
• SSH Default password: raspberry
• > cd hassbian-scripts
• Install Samba
• > sudo ./install_samba.sh
USE SAMBA TO EDIT CONFIG
YAML
SMB://<IP ADDRESS>/HOMEASSISTANT
USE TEXT EDITOR TO UPDATE
CONFIGURATION.YAML
HOME ASSISTANT
COMPONENTS
HTTPS://HOME-
ASSISTANT.IO/COMPONENTS/
REMOTE MANAGEMENT
• Update configuration.yaml and add a password
http:
api_password: YOUR_PASSWORD
• Setup firewall port forwarding for TCP port 8123
• Install the phone app for Home Assistant
• Use IP address or add a DNS entry
• Defaults are http:// and no password. Update before exposing!
• Recommend reading http component options and adding SSL
https://home-assistant.io/components/http/
ALSO CHECKOUT OPENHAB
• https://openhab.org
• Java-based
• Vendor and tech agnostic open source automation
• Compatible with Raspberry Pi, use openHABian
• http://docs.openhab.org/installation/openhabian.html
BEFORE WE CLOSE
• Whatever you build, please share it with the world!
Use #CoffeeAndPi on Twitter and Instagram
• I am asking you to share your excitement and knowledge
with those around you!
• I am challenging you to inspire others and use technology
to change the world!
• You are never too old to learn, or too young to teach!
• If you are interested in hosting or starting a
Coffee & Pi meetup, let me know!
THANK YOU! QUESTIONS?
COFFEEANDPI.IO
MEETUP.COM/COFFEE-AND-PI
TWITTER/IG: #COFFEEANDPI
NOW ON SLACK
PHILLYDEV.ORG #RASPBERRYPI

More Related Content

Similar to Coffee & Pi - Intro to Home Automation

Coffee & Pi - intro to Pi Workshop
Coffee & Pi - intro to Pi WorkshopCoffee & Pi - intro to Pi Workshop
Coffee & Pi - intro to Pi WorkshopBrad ☼ Derstine
 
Coffee & Pi - Intro to Pi Workshop
Coffee & Pi - Intro to Pi WorkshopCoffee & Pi - Intro to Pi Workshop
Coffee & Pi - Intro to Pi WorkshopBrad ☼ Derstine
 
Elements of Connected Products
Elements of Connected ProductsElements of Connected Products
Elements of Connected ProductsJordan Husney
 
Developercamp 08032018 home-automation_with_rasberry_pi_zwave_enocean_zigbee_...
Developercamp 08032018 home-automation_with_rasberry_pi_zwave_enocean_zigbee_...Developercamp 08032018 home-automation_with_rasberry_pi_zwave_enocean_zigbee_...
Developercamp 08032018 home-automation_with_rasberry_pi_zwave_enocean_zigbee_...Frank Thilo Röhl
 
Habitat Overview
Habitat OverviewHabitat Overview
Habitat OverviewMandi Walls
 
Ottspott by Apidaze @API Days Paris 2015
Ottspott by Apidaze @API Days Paris 2015Ottspott by Apidaze @API Days Paris 2015
Ottspott by Apidaze @API Days Paris 2015Luis Borges Quina
 
Fun with Linux Telephony
Fun with Linux TelephonyFun with Linux Telephony
Fun with Linux TelephonyDonald Burr
 
Fhem as IOT rasberry pi platform
Fhem as IOT rasberry pi platformFhem as IOT rasberry pi platform
Fhem as IOT rasberry pi platformFrank Thilo Röhl
 
Uncommon MiTM in uncommon conditions
Uncommon MiTM in uncommon conditionsUncommon MiTM in uncommon conditions
Uncommon MiTM in uncommon conditionsHeadLightSecurity
 
Techzim Surge: Important Considerations for Hosting Web or Mobile Apps
Techzim Surge: Important Considerations for Hosting Web or Mobile AppsTechzim Surge: Important Considerations for Hosting Web or Mobile Apps
Techzim Surge: Important Considerations for Hosting Web or Mobile AppsAnthony Somerset
 
Smart Wireless Surveillance Monitoring using RASPBERRY PI
Smart Wireless Surveillance Monitoring using RASPBERRY PISmart Wireless Surveillance Monitoring using RASPBERRY PI
Smart Wireless Surveillance Monitoring using RASPBERRY PIKrishna Kumar
 
The Kitchen Cloud How To: Automating Joyent SmartMachines with Chef
The Kitchen Cloud How To: Automating Joyent SmartMachines with ChefThe Kitchen Cloud How To: Automating Joyent SmartMachines with Chef
The Kitchen Cloud How To: Automating Joyent SmartMachines with ChefChef Software, Inc.
 
What we talk about when we talk about DevOps
What we talk about when we talk about DevOpsWhat we talk about when we talk about DevOps
What we talk about when we talk about DevOpsRicard Clau
 
Home automation in kerala ,home automation in calicut , home automation
Home automation in kerala ,home automation in calicut , home automation  Home automation in kerala ,home automation in calicut , home automation
Home automation in kerala ,home automation in calicut , home automation Arun Kumar
 
SIGFOX Makers Tour - Barcelona
SIGFOX Makers Tour - BarcelonaSIGFOX Makers Tour - Barcelona
SIGFOX Makers Tour - BarcelonaNicolas Lesconnec
 
Pi, Python, and Paintball??? Innovating with Affordable Tech!
Pi, Python, and Paintball??? Innovating with Affordable Tech!Pi, Python, and Paintball??? Innovating with Affordable Tech!
Pi, Python, and Paintball??? Innovating with Affordable Tech!Barry Tarlton
 

Similar to Coffee & Pi - Intro to Home Automation (20)

Coffee & Pi - intro to Pi Workshop
Coffee & Pi - intro to Pi WorkshopCoffee & Pi - intro to Pi Workshop
Coffee & Pi - intro to Pi Workshop
 
Coffee & Pi - Intro to Pi Workshop
Coffee & Pi - Intro to Pi WorkshopCoffee & Pi - Intro to Pi Workshop
Coffee & Pi - Intro to Pi Workshop
 
IT infrastructure security 101
IT infrastructure security 101IT infrastructure security 101
IT infrastructure security 101
 
Elements of Connected Products
Elements of Connected ProductsElements of Connected Products
Elements of Connected Products
 
Developercamp 08032018 home-automation_with_rasberry_pi_zwave_enocean_zigbee_...
Developercamp 08032018 home-automation_with_rasberry_pi_zwave_enocean_zigbee_...Developercamp 08032018 home-automation_with_rasberry_pi_zwave_enocean_zigbee_...
Developercamp 08032018 home-automation_with_rasberry_pi_zwave_enocean_zigbee_...
 
Habitat Overview
Habitat OverviewHabitat Overview
Habitat Overview
 
Fish Cam.pptx
Fish Cam.pptxFish Cam.pptx
Fish Cam.pptx
 
Ottspott by Apidaze @API Days Paris 2015
Ottspott by Apidaze @API Days Paris 2015Ottspott by Apidaze @API Days Paris 2015
Ottspott by Apidaze @API Days Paris 2015
 
Fun with Linux Telephony
Fun with Linux TelephonyFun with Linux Telephony
Fun with Linux Telephony
 
Fhem as IOT rasberry pi platform
Fhem as IOT rasberry pi platformFhem as IOT rasberry pi platform
Fhem as IOT rasberry pi platform
 
Uncommon MiTM in uncommon conditions
Uncommon MiTM in uncommon conditionsUncommon MiTM in uncommon conditions
Uncommon MiTM in uncommon conditions
 
Techzim Surge: Important Considerations for Hosting Web or Mobile Apps
Techzim Surge: Important Considerations for Hosting Web or Mobile AppsTechzim Surge: Important Considerations for Hosting Web or Mobile Apps
Techzim Surge: Important Considerations for Hosting Web or Mobile Apps
 
Smart Wireless Surveillance Monitoring using RASPBERRY PI
Smart Wireless Surveillance Monitoring using RASPBERRY PISmart Wireless Surveillance Monitoring using RASPBERRY PI
Smart Wireless Surveillance Monitoring using RASPBERRY PI
 
The Kitchen Cloud How To: Automating Joyent SmartMachines with Chef
The Kitchen Cloud How To: Automating Joyent SmartMachines with ChefThe Kitchen Cloud How To: Automating Joyent SmartMachines with Chef
The Kitchen Cloud How To: Automating Joyent SmartMachines with Chef
 
What we talk about when we talk about DevOps
What we talk about when we talk about DevOpsWhat we talk about when we talk about DevOps
What we talk about when we talk about DevOps
 
SIGFOX Makers Tour - Madrid
SIGFOX Makers Tour - MadridSIGFOX Makers Tour - Madrid
SIGFOX Makers Tour - Madrid
 
Home automation in kerala ,home automation in calicut , home automation
Home automation in kerala ,home automation in calicut , home automation  Home automation in kerala ,home automation in calicut , home automation
Home automation in kerala ,home automation in calicut , home automation
 
SIGFOX Makers Tour - Barcelona
SIGFOX Makers Tour - BarcelonaSIGFOX Makers Tour - Barcelona
SIGFOX Makers Tour - Barcelona
 
Asterisk Complete Training
Asterisk Complete TrainingAsterisk Complete Training
Asterisk Complete Training
 
Pi, Python, and Paintball??? Innovating with Affordable Tech!
Pi, Python, and Paintball??? Innovating with Affordable Tech!Pi, Python, and Paintball??? Innovating with Affordable Tech!
Pi, Python, and Paintball??? Innovating with Affordable Tech!
 

Recently uploaded

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 

Recently uploaded (20)

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 

Coffee & Pi - Intro to Home Automation

  • 1. COFFEE & PI INTRO TO HOME AUTOMATION BRAD DERSTINE MEETUP.COM/COFFEE-AND-PI TWITTER/INSTAGRAM: #COFFEEANDPI NOW ON SLACK PHILLYDEV.ORG #RASPBERRYPI
  • 2. WELCOME TO COFFEE & PI! • Has anyone never touched or seen a Raspberry Pi? • Does anyone work with RPi professionally? • Windows or OS X? • Is anyone from the suburbs or outside Center City? • Did anyone bring their first Pi and need help getting started?
  • 3. RULES FOR THE MEETUP • This is a beginner friendly meetup. All skill levels are welcome. We were all beginners at one time. • There are no stupid questions, only stupid people. If you have a silly question, someone else might too. Ask anyway. • I do not know everything. About anything. If I don’t know, I will say so. If you do know, please share! We are all here to learn! • Even the greatest works of art started with someone learning the basics and practicing their craft.
  • 4. BRAD DERSTINE • 16+ years working in IT • Started out doing 1st level tech support • Currently DevOps Engineer for one of the oldest and largest non-profits in the US • Why Raspberry Pi?
  • 7.
  • 9. ZIGBEE • ZigBee is an IEEE 802.15.4-based specification for a suite of high-level communication protocols used to create personal area networks with small, low-power digital radios, such as for home automation, medical device data collection, and other low-power low- bandwidth needs, designed for small scale projects which need wireless connection. - Wikipedia • ZigBee Alliance - http://www.zigbee.org
  • 10. From the box of Philips Hue Bridge
  • 11. Z-WAVE • Z-wave != ZigBee • Does use the same spec, but different chips, software, and SDK • Uses mesh networking • 30 meters between devices, up to 4 hops • Over 1700 devices certified • Z-wave Alliance - http://z-wavealliance.org
  • 12. SO WHICH SHOULD YOU USE? • This will probably be dependent on the hardware and software you want to use, and what your use case is. • DO YOUR RESEARCH! • Platform - Bridges - Devices • Choose a platform, know the bridges you need, invest in the supporting devices!
  • 15. HOMEKIT REMOTE SUPPORT • Using HomeKit remotely requires an Apple TV (4th gen recommended, 3rd supported with iOS 8.4.1-based, Apple TV Software 7.2 ) or iPad (iOS 10+) • Does not require opening firewall ports, supported through the Apple ecosystem. • https://www.howtogeek.com/234 180/how-to-enable-remote- access-to-your-homekit-smart- home-via-apple-tv/
  • 16.
  • 19. HOME ASSISTANT RASPBERRY PI HOME AUTOMATION HTTP://HOME-ASSISTANT.IO
  • 20. OPENHAB RASPBERRY PI HOME AUTOMATION HTTPS://WWW.OPENHAB.ORG
  • 21. USEFUL PLATFORM NOTES • Know your platform! Do your research! • HomeKit only for iOS users! • Brillo only for Android users! • SmartThings, Home Assistant, and OpenHAB support both iOS and Android apps!
  • 22. BRIDGES & HUBS THIS IS WHERE THE FUN BEGINS…
  • 23. PHILIPS HUE BRIDGE ONLY BRIDGES FOR PHILIPS HUE PRODUCTS
  • 24. SMARTTHINGS HUB SUPPORTS ZIGBEE AND Z-WAVE DEVICES HTTPS://WWW.SMARTTHINGS.COM
  • 25. ZEOTEC BY AEON LABS Z-WAVE BRIDGE USB STICK/HUB
  • 26. HOMESEER HOME TROLLER S6 EXPENSIVE! COMPATIBLE WITH Z-WAVE, X10
  • 27. XFINITY HOME CONTROL SUPPORTS ZIGBEE, COMPATIBLE WITH NEST LEARNING THERMOSTAT, AUGUST SMART LOCK, CHAMBERLAIN MYQ GARAGE-DOOR CONTROLLER, AND THE LUTRON CASETA WIRELESS LIGHTING CONTROLLER
  • 28. HOMEBRIDGE • Homebridge is a lightweight NodeJS server you can run that emulates iOS HomeKit API • Can be configured to “bridge” communication from HomeKit to 3rd party devices that don’t support HomeKit yet via config files • Should be done by manufacturers, but this exists for the hackers and the impatient
  • 29. USEFUL BRIDGE NOTES • The SmartThings Hub is still probably the best route for starting out! (most flexible!) • Samsung bought SmartThings • Google’s Nest bought smart home startup Revolv, making SmartHome Hub an abandoned project. • Comcast XFINITY Home Control supports ZigBee, only whitelisting certain devices for now • Integrating with non-supported platforms/devices or hacking = use a bridge emulator
  • 31. ALEXA / GOOGLE HOME VOICE COMMAND
  • 34. SENSORS DOOR/WINDOW SENSORS, MOTION SENSORS, WATER SENSORS, SMOKE/FIRE SENSORS
  • 35. CAMERAS AND DOORBELLS FOR SECURITY OR MONITORING
  • 36. DOOR LOCKS ENTRY HANDLES AND DEADBOLTS
  • 39. MANY OTHERS SPRINKLER CONTROLS, SIRENS, WATER VALVES, GARAGE DOOR OPENERS
  • 40. HOME ASSISTANT ONE PLATFORM TO RULE THEM ALL SORT OF…
  • 41. SO WHY HOME ASSISTANT? • Unifying platform for cross vendor support • Supports bridges, hubs, and emulators • Control all your devices from a single, mobile-friendly, interface • Without storing any of your data in the cloud • Still allow for remote monitoring and admin • Python 3, REST-api, lots of documentation and videos
  • 42. INSTALLING HOME ASSISTANT • https://home-assistant.io/docs/hassbian/installation/ • Download Hassbian 1.1 image_2017-02-03-HASSbian.zip • Download and Install Etcher https://etcher.io • Use Etcher to write Hassbian to micro SD card
  • 43.
  • 44. BOOT RASPBERRY PI WITH HASSBIAN • Insert the micro SD card into the Raspberry Pi • Plug in the network cable and boot the Pi • Server starts up in headless mode (Use SSH) • Use keyboard/mouse/monitor for console or use SSH to run scripts
  • 45. AFTER HASSBIAN BOOTS • Home Assistant runs on startup, listens on port 8123 • http://<ip address of pi>:8123
  • 46.
  • 47.
  • 48. STATES SHOW THE STATE OF ENTITIES REGISTERED AND DISCOVERED BY HOME ASSISTANT
  • 49. MAP DEVICES CAN BE REGISTERED WITH LOCATION INFORMATION AND DISPLAYED AND MANAGED FROM THE MAP.
  • 50. LOGBOOK LISTS CHANGES THAT HOME ASSISTANT MONITORS
  • 53. CONFIGURATION - RESTART/STOP WEB BASED WAY TO RESTART AND STOP THE RASPBERRY PI AFTER CONFIG CHANGES
  • 54. DEV TOOLS - SERVICES DIRECTLY CALL SERVICES
  • 55. DEV TOOLS - STATES DIRECTLY CALL STATES
  • 56. DEV TOOLS - EVENTS QUERY FOR EVENTS
  • 57. DEV TOOLS - TEMPLATES
  • 58. DEV TOOLS - ABOUT USEFUL INFORMATION ABOUT HOME ASSISTANT
  • 59. INSTALL HASSBIAN SCRIPTS • SSH Default username: pi • SSH Default password: raspberry • > cd hassbian-scripts • Install Samba • > sudo ./install_samba.sh
  • 60.
  • 61.
  • 62. USE SAMBA TO EDIT CONFIG YAML SMB://<IP ADDRESS>/HOMEASSISTANT
  • 63. USE TEXT EDITOR TO UPDATE CONFIGURATION.YAML
  • 65.
  • 66. REMOTE MANAGEMENT • Update configuration.yaml and add a password http: api_password: YOUR_PASSWORD • Setup firewall port forwarding for TCP port 8123 • Install the phone app for Home Assistant • Use IP address or add a DNS entry • Defaults are http:// and no password. Update before exposing! • Recommend reading http component options and adding SSL https://home-assistant.io/components/http/
  • 67. ALSO CHECKOUT OPENHAB • https://openhab.org • Java-based • Vendor and tech agnostic open source automation • Compatible with Raspberry Pi, use openHABian • http://docs.openhab.org/installation/openhabian.html
  • 68.
  • 69. BEFORE WE CLOSE • Whatever you build, please share it with the world! Use #CoffeeAndPi on Twitter and Instagram • I am asking you to share your excitement and knowledge with those around you! • I am challenging you to inspire others and use technology to change the world! • You are never too old to learn, or too young to teach! • If you are interested in hosting or starting a Coffee & Pi meetup, let me know!
  • 70. THANK YOU! QUESTIONS? COFFEEANDPI.IO MEETUP.COM/COFFEE-AND-PI TWITTER/IG: #COFFEEANDPI NOW ON SLACK PHILLYDEV.ORG #RASPBERRYPI