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
2.config HomeAssistant
Enter the following command (replace CONTAINER_ID with your own)
docker exec -it CONTAINER_ID /bin/bash
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/
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
4. Unzip hacs.zip
unzip hacs.zip
5. Restart HomeAssistant
quit:
exit
Restart (replace CONTAINER_ID with your own):
docker restart CONTAINER_ID