This document discusses using Home Assistant to build a smart home system. It introduces Home Assistant as an open-source platform that allows connecting various smart home devices and automating control of them. It describes how to set up Home Assistant on a Raspberry Pi, configure devices and sensors, and create automation rules. The document also covers integrating Home Assistant with other systems like Google Assistant and Amazon Alexa to control the smart home with voice commands.
3. ● Smart home/home automation
○ What makes home automation hard
● Introduction of home-assistant
○ Basic concept of home-assistant
○ Architecture of home-assistant
● How to build your home automation system
○ Environment setup
○ Configuration
○ Possible scenario
● Summary
What I will share today
3
4. ● Hacking hardware ( The next speaker may take care !?)
● Basic configurations and use on Raspberry Pi
● Compare ecosystems for Amazon Alexa/ Google home/ Apple
HomePod/ Mi home …..
● Much source code
What I will not focus ( aka I don’t know)
4
6. Smart Things
6
home control home automation smart home
location and time-based events
communicate with each other
at home
7. 7
Internet of Things
Information
(ex, light is on)
Commands
(ex, turn light on)
Home Automation: Start from a hub
Information
Commands
State
● Light = on
○ Brightness: 120
○ Color: Yellow
● Sensor value
○ Temperature: 32 o
C
● Switch
○ Power: turn_on
Event
● State of switch has changed
○ Off -> on
● Motion detected
● Remote control TV
9. Home Automation Landscape
9
Internet of Things
Information
(ex, light is on)
Commands
(ex, turn light on)
Information
Commands
Information
Commands
Information
Commands
Rules
(Configuration)
10. •More IoT devices with different protocols
•Many own apps
•More data
•More scenarios
•Privacy and trust
•Easy to use
Challenges
10
https://www.home-assistant.io/blog/2014/12/26/home-control-home-automation-and-the-smart-home/
13. ● Platforms
○ Types of devices (ex, lights, sensors)
● Components (> 1000)
○ Interact with an Internet-of-Things domain
■ MQTT, Zwave, Zigbee
■ Lights (Hue, Tradfri)
■ Sensors
○ Respond to events that happen within
Home Assistant
■ Small pieces of home automation logic or
involve services that do common tasks within
your house.
■ ex, device_sun_light_trigger component
Wording in HA
Event Bus:
State Machine:
Service Registry:
Timer:
14. Home Automation Landscape
14
Internet of Things
Information
(ex, light is on)
Commands
(ex, turn light on)
Information
Commands
Information
Commands
Information
Commands
Rules
(Configuration)
24. Installation
On Raspberry Pi 3
1. Raspbian
2. Hassbian
3. Mossbian (Chinese)
4. Hass.io use this
● HA UI
● Ready to use (integrated 3rd part applications)
● Easy to install and update (ResinOS and Docker)
● Easy to extend by Hass.io add-ons (Goolge Assistant...)
Home Assistant 0.70.0
35. ● Smart Home
○ No standard/universal communication way between smart things
(so far)
● Home assistant
○ as a Developer
○ as a User
● Hassio
● Home assistant cloud
Take Home Messages
36. Overview and tutorials
● https://developers.home-assistant.io/ (Developer documentation)
● https://www.home-assistant.io/cookbook/ (Cookbook)
● https://www.home-assistant.io/getting-started/
● https://www.hachina.io/ (Chinese!)
● https://home-assistant.cc (Another Chinese!)
● https://zhuanlan.zhihu.com/c_138110024 知乎:智能家居从零开始( )
● Xiaomi Smart Home Ecosystem list
VIDEOS, TALKS, WORKSHOPS AND ALIKE
● Paulus Schoutsen - Awaken your home: Python and the Internet of Things - PyCon 2016
● Automating your Home with Home Assistant: Python’s Answer to the Internet of Things
Hassio
● https://www.home-assistant.io/hassio/
● https://www.home-assistant.io/blog/2017/07/25/introducing-hassio/
Google Home
● https://www.home-assistant.io/components/google_assistant/ (components/)
● https://www.home-assistant.io/cloud/google_assistant/ (via HA cloud)
● https://www.youtube.com/watch?v=NfyavpAg4as with google assistant
Data Science with HA
● https://github.com/robmarkcole/HASS-data-science
Smart Home
● 到底什麼是智慧音箱?為什麼亞馬遜、谷歌、蘋果都視其為後手機時代的決勝點?智慧家庭實驗室林祐祺 20180409
References