中文 English

How to Install HACS in Home Assistant

Published: 2021-02-19
hacs homeassistant SSH

If Using a Virtual Machine Environment (Home Assistant OS)

  1. Go to the Supervisor panel
  2. Install an SSH add-on (enable advanced mode in your user profile first)
  3. Configure the selected SSH add-on
  4. Start the SSH add-on
  5. Connect to the SSH add-on
  6. Run the HACS installation script
wget -q -O - https://hacs.xyz/install | bash -

Initial Configuration

Go to Configuration in your Home Assistant interface, then click Integrations.

Clear Browser Cache

Warning: You actually need to do this, don’t skip it.

Click the “+” Button in the Lower Right Corner

Search or Scroll Down to Find “HACS”, Then Select It

Information You will see this message when Home Assistant is installing the requirements for the integration.

If it takes more than 10 minutes, there may be a problem with the Home Assistant installation.

Accept Terms of Use

None of these items are optional, you need to accept all of them to set up HACS.

Device Registration

On the first screen, you are shown a device code. Copy it to your clipboard and then click https://github.com/login/device to continue setup.

Do not click Submit yet!

If you are not already logged into GitHub in your browser, you need to register or log in now to continue setup. If you are already logged in, you can skip this part.

After the page loads, paste or type the device code shown to you in the previous step.

Click “Authorize hacs” here.

After seeing the confirmation screen, you can close the tab and return to Home Assistant.

Now you can click “Submit” to complete the HACS configuration.

If it fails, you will be returned to the “Add Configuration” step

Changing Configuration

If you need to change the configuration, you first need to remove the integration from the integrations list, and then you need to add it back again.

Reference Articles

https://hacs.xyz/docs/installation/installation https://hacs.xyz/docs/configuration/basic https://www.163.com/dy/article/G07BFS0L0550UP9P.html https://www.home-assistant.io/integrations/xiaomi_miio/#retrieving-the-access-token https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor