Knowing Home Assistant–A shallow dive into smart home system
In the near future my department will move to a new office area. I’m thinking of designing a smart office. After searching for a while on Internet and I come up with the open source smart home platform Home Assistant for my solution.
There’re several open source platforms out there like Domoticz, Home Assistant(briefly HA), Calaos, openHAB and so on. HA and openHAB are the most popular projects in my opinion. HA is written in python while openHAB is written in java. As for my technical stack I decided to choose HA. If you’re a java developer you may choose openHAB.
HA’s official site is at https://www.home-assistant.io/. And there’s a Chinese site for HA at https://www.hachina.io/ operated by a company in Shanghai with a plenty of useful information.
HA’s structure is as below:

I did the following steps on my mac to have a taste of HA.
- install pyenv : brew install pyenv.
- isntall python3, python3.5 prefered: pyenv install 3.5.7
- create a 3.5.7 pythen virtualenv: pyenv virtualenv 3.5.7 env-3.5.7-HA
- activate it: pyenv activate env-3.5.7-HA
- pip install homeassistant
- open HA: hass –open-ui
- open your browser to visit: http://127.0.0.1:8123/
- enjoy it~
2019-06-20 12:25:47 INFO (MainThread) [homeassistant.setup] Setting up notify
2019-06-20 12:25:47 INFO (MainThread) [homeassistant.setup] Setup of domain notify took 0.0 seconds.
2019-06-20 12:25:47 INFO (MainThread) [homeassistant.components.notify] Setting up notify.mobile_app
2019-06-20 12:28:59 INFO (MainThread) [homeassistant.setup] Setting up cloud
2019-06-20 12:28:59 INFO (MainThread) [homeassistant.setup] Setting up zeroconf
2019-06-20 12:28:59 INFO (Thread-9) [homeassistant.util.package] Attempting install of gTTS-token==1.1.3
2019-06-20 12:28:59 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 0.4 seconds.
2019-06-20 12:29:00 INFO (MainThread) [homeassistant.setup] Setup of domain zeroconf took 0.8 seconds.
2019-06-20 12:29:08 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 242.2 seconds.
2019-06-20 12:29:08 INFO (Thread-32) [homeassistant.util.package] Attempting install of home-assistant-frontend==20190604.0



