SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Ähnlich wie 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
 

Ähnlich wie 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!
 

Kürzlich hochgeladen

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 

Kürzlich hochgeladen (20)

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

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