System preparations and environment building
 In the project, we decided to use a raspberry pi as the home-assistant server. In the raspberry pi, I have pre-installed the latest version official operation system Raspbian.  Detailed installing procedures are as followed. 1. Install the dependence and update the system with the following command.      $ sudo apt-get install python3 python3-venv python3-pip      $ sudo apt-get update      $ sudo apt-get upgrade –y 2. Create homeassistant account and set the password      $ sudo useradd -rm homeassistant -G dialout,gpio      $ sudo passwd homeassistant 3. Create the homeassistant working index      $ cd /srv      $ sudo mkdir homeassistant      $ sudo chown homeassistant:homeassistant homeassistant      $ sudo -u homeassistant -H –S 4. Create the environment for Python 3      $ cd /srv/homeassistant      $ python...