Hassio Docker



使用Docker来安装Home-Assistant前提:目的明确,了解Home-Assistant是什么东西你的机子已经安装了 Docker该教程只是作者的操作记录,希望能帮到你。. All right, everything is ready, so you can now install Docker with: apt-get install docker-ce docker-ce-cli containerd.io Then, to verify that Docker was installed correctly, you can run the command: docker run hello-world The last thing that you want to do before installing Hass.io is to make sure that Docker starts when the server boots. As with every Docker container, you will need a script to run when the container is started. A user might run many add-ons, so it is encouraged to try to stick to Bash scripts if you're doing simple things.

I can’t get flashing over USB to work.¶

ESPHome depends on the operating system the tool is running on to recognizethe ESP. This can sometimes fail. Common causes are that you did not installthe drivers (see note below) or you are trying to upload from a Docker containerand did not mount the ESP device into your container using --device=/dev/ttyUSB0.

Starting with ESPHome 1.9.0, the ESPHome suite providesesphome-flasher, a tool to flash ESPs over USB.

First, you need to get the firmware file to flash. For Hass.io add-on based installs you canuse the COMPILE button (click the overflow icon with the three dots) and then pressDownloadBinary. For command line based installs you can access the file under<CONFIG_DIR>/<NODE_NAME>/.pioenvs/<NODE_NAME>/firmware.bin.

Then, install esphome-flasher by going to the releases pageand downloading one of the pre-compiled binaries. Open up the application and select the serial portyou want to flash to (on windows you can use the “device manager” to check if it’s the right one).

Hassio

Select the firmware binary and finally press “Flash ESP”.

Note

Hassio Docker Ubuntu

If the serial port is not showing up, you might not have the required drivers installed.ESPs usually ship with one of these two UART chips:

SynologyHassio DockerHassio docker zwave

Hassio Docker Image

Note

Hassio Docker Raspberry Pi

If you’re just seeing Connecting....____.... on the screen and the flashing fails, that mightbe a sign that the ESP is defect or cannot be programmed. Please double check the UART wiresare connected correctly if flashing using a USB to UART bridge. For some devices you need tokeep pressing the BOOT button until flashing has begun (ie. Geekcreit DOIT ESP32 DEVKIT V1).