Docker is a good thing, thinking that Raspbian is a Debian-based system, and that certainly supports Docker.
With Docker, there is an extremely simple way to install Home assistant on the Raspberry Pi.
1. Installing Docker on the Raspberry Pi
Curl-ssl https://get.docker.com | sh
Reference: https://www.raspberrypi.org/blog/docker-comes-to-raspberry-pi/
2. Verify that the Docker installation is correct
[Email protected]:~ $ sudo docker--18.06. 0-ce, build 0ffa825
[Email protected]:~$ sudo docker infocontainers:3Running:2Paused:0Stopped:1Images:2Server Version:18.06.0-cestorage driver:overlay2 backing Filesystem:extfs Supports d_type:trueNative Overlay Diff:trueLogging Driver:json-filecgroup Driver:cgroupfsPlugins:Volume:local Network:bridge host MacvlanNULLoverlay log:awslogs fluentd gcplogs gelf Journald json-file logentries splunk syslogSwarm:inactiveRuntimes:runcDefault runtime:runcinit binary:docker-Init
...
Reference: https://docs.docker.com/get-started/#prepare-your-docker-environment
3. Install Home Assistant on the Raspberry Pi based on Docker
$ docker run-d--name= " home-assistant -v/path/to/your/config:/config-v/etc/localtime:/etc/localtime:ro-- Net=host homeassistant/raspberrypi3-homeassistant:0 . xx.x
Note: 1./path/to/your/config refers to your local HA configuration directory, which is used to store the HA configuration you want to run locally, such as the configuration.yaml configuration file 2 . :/config config here refers to the HA configuration directory in your Docker image, and if/path/to/your/config this directory exists locally, the HA startup will read the local configuration, fits Oh/path/to/your/ Config does not exist locally, read the configuration directory for HA in the Docker image 30. Xx.x refers to the HA version to be specified, such as 0. 72.0, the specific version of the HA website can be queried for https://www.home-assistant.io/
Actually in the native installation case:
Mkdir/home/pi/workplace/config-p
sudo docker run-d--name="home-assistant" -v/home/pi/workplace/config:/config-v/ Etc/localtime:/etc/localtime:ro--net=host homeassistant/raspberrypi3-homeassistant:0.72. 0
Verification after successful installation
sudo ls REPOSITORY TAG IMAGE ID CREATED sizehomeassistant/raspberrypi3-homeassistant 0.72. 0 df8da8840c1d 8 weeks ago 1. 06GB
4. Start Docker on Raspberry Pi
Homeassistant/raspberrypi3-homeassistant, note To specify version 0.72.0, or Docker will prompt that the local does not exist, and then go back to Docker hup to download
[Email protected]:~ $sudoDocker run-v/home/pi/workplace/config:/config homeassistant/raspberrypi3-homeassistant:0.72.0Starting Version3.2.42018- ,- - -: -: -INFO (Mainthread) [Homeassistant.core] bus:handling <event service_registered[l]: domain=homeassistant, service= Turn_off>2018- ,- - -: -: -INFO (Mainthread) [Homeassistant.core] bus:handling <event service_registered[l]: domain=homeassistant, service= Turn_on>2018- ,- - -: -: -INFO (Mainthread) [Homeassistant.core] bus:handling <event service_registered[l]: domain=homeassistant, service= Toggle>2018- ,- - -: -: -INFO (Mainthread) [Homeassistant.core] bus:handling <event service_registered[l]: domain=homeassistant, service= Stop>2018- ,- - -: -: -INFO (Mainthread) [Homeassistant.core] bus:handling <event service_registered[l]: domain=homeassistant, service= Restart>2018- ,- - -: -: -INFO (Mainthread) [Homeassistant.core] bus:handling <event service_registered[l]: domain=homeassistant, service= Check_config>2018- ,- - -: -: -INFO (Mainthread) [Homeassistant.core] bus:handling <event service_registered[l]: domain=homeassistant, service= Reload_core_config>2018- ,- - -: -: -INFO (Mainthread) [Homeassistant.bootstrap] Home Assistant core initialized2018- ,- - -: -: $INFO (Mainthread) [Homeassistant.loader] Loaded frontend from Homeassistant.components.frontend2018- ,- - -: -: $INFO (Mainthread) [Homeassistant.loader] Loaded API from Homeassistant.components.api2018- ,- - -: -: $INFO (Mainthread) [Homeassistant.loader] Loaded introduction from Homeassistant.components.introduction2018- ,- - -: -: $INFO (Mainthread) [Homeassistant.setup] Setting up Introduction2018- ,- - -: -: $INFO (Mainthread) [homeassistant.components.introduction]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Hello, and welcome to Home Assistant!We'll hope that we can do all your dreams come true.Here is some resources to get started:-Configuring Home Assistant:https://home-assistant.io/getting-started/configuration/-Available Components:https://home-assistant.io/components/-Troubleshooting your Configuration:https://home-assistant.io/getting-started/troubleshooting-configuration/-Getting Help:https://home-assistant.io/help/This message was generated by the introduction component. You can disable itinchConfiguration.yaml.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5. Login Haweb View
http://192.168.1.x:8123
Note: This IP is the host IP that hosts the Docker, which is your native IP
6. Modify the configuration file to customize your favorite smart home system
[email protected]: ls /home/pi/workplace/configautomations.yaml configuration.yaml customize.yaml deps groups. Yaml home-assistant_v2.db scripts.yaml secrets.yaml TTS
Install Docker on Raspberry Pi, run home Assistant