[Personal use] HomeAssistant installation HACS tutorial in cloud server docker environment

1. Enter HomeAssistant in docker

1. Find the CONTAINER ID of HomeAssistant

After connecting to the cloud server (host), enter root in the terminal and enter:

docker ps

Found the container ID of docker

Insert image description here

2.config HomeAssistant

Enter the following command (replace CONTAINER_ID with your own)

docker exec -it CONTAINER_ID /bin/bash

Insert image description here

In this step, some people may display something different from me after ls. Then you can enter the config directory:

cd config

Of course, if something similar to my above is already displayed, the above command will not be executed.

3. Enter the custom_components directory

cd custom_components

2. Download HACS from github or other channels

1. Download HACS

https://github.com/hacs/integration/releases/

Insert image description here

2. Create a new folder hacs in the custom_components directory

mkdir hacs

3. Enter the custom_components/hacs directory, open Xtfp, and pass in the hacs.zip you just downloaded.

cd hacs

Insert image description here

4. Unzip hacs.zip

unzip hacs.zip

5. Restart HomeAssistant

quit:

exit

Restart (replace CONTAINER_ID with your own):

docker restart CONTAINER_ID

Insert image description here

5. Enter HomeAssistant on the web page, hacs has been installed successfully

I use pictures to represent the steps:

Supongo que te gusta

Origin blog.csdn.net/qq_43768851/article/details/132343591
Recomendado
Clasificación