Before, I shared how to install The Home-Assistant on Android phones, but it does not include Supervisor and HACS. Today, I will share how to install HACS and Xiaomi Miot plug-ins.

As far as I know, Supervisor is the official APPLICATION store of HA, while HACS is the third-party store maintained by the community. There are many claims that the Supervisor is not very useful. Having no sword in hand and not having a sword are two different things. Recently, I also want to install the HA of the Supervisor version, and I will share another article when I have the result.

The current tutorial is a bit of a judgment call, so it is not recommended to start directly, and it is not too late to start after reading it

To prepare

CD to HA installation directory, create folder “custom_Components” and “WWW”

  1. cd /root/hass“/root/hass” is the HA installation directory. If you did not follow my previous article to install HA, please find and replace the directory yourself
  2. mkdir custom_components
  3. mkdir www

Download plan 1: for PC side consumption (need to change

  1. Download the HACS plug-in to the local HA installation directory.

    Baidu disk download extraction code: CQA7

    Official version V 1.20.0 (By 2022.03.08)

    If you need to install a higher version, just make sure you have the latest version of HA installed, and you can download the latest version of the HACS.zip file from the official HACS release list

  2. Go back to your app and start SSH

    vi /etc/ssh/sshd_config

Click the letter I key to enter the editing mode and change the configuration item to the result below

PermitRootLogin yes PubkeyAuthentication no authorizedkeysfile. SSH /authorized_keys with # PasswordAuthentication yes in frontCopy the code

Press ESC on the upper left of the keyboard and enter :wq to save the changes

  1. App cuts to QEMU and port mapping hostFWd_add TCP ::2222-:22

  2. PC connected to our app through SSH: SSH Alpine @ IP address of mobile phone, password Alipine

  3. Upload the downloaded hacs.zip file to the /root/ass/custom_Components directory and run the unzip hacs.zip command to decompress the file

    ⚠ ️ suggest upload/home/alpine, then move the files to the Mac custom_components directory can use FinalShell or command line tutorial system terminal use below for upload blog.csdn.net/xcg132566/a… www.jianshu.com/p/1385bfb45…

Download Plan 2: mobile app operation

  1. cd /root/hass/custom_components

  2. Direct download, this is the address I put on baidu disk, do not need to change the hosts on Github

    wget -c https://bjbgp01.baidupcs.com/file/ebba3133fm1cc66fc8042ae4c7ca7d89?bkt=en-3f603aaf96443402b775b8dd0448e76e040d2cedf9907e 4816995d458f7cfc4c5d14e2ef1a72c4bdd972aaebf39e1665ad1475bf50a4b419a2107594edd930bb&fid=3861227597-250528-90344345425330& time=1646748235&sign=FDTAXUbGERLQlBHSKfWqiu-DCb740ccc5511e5e8fedcff06b081203-XZ6397w%2F0IT9fFDTlINZXNcOBzs%3D&to=75&size =807341&sta_dx=807341&sta_cs=1&sta_ft=zip&sta_ct=0&sta_mt=0&fm2=MH%2CYangquan%2CAnywhere%2C%2Cbeijing%2Cany&ctime=164674 5402&mtime=1646745402&resv0=-1&resv1=0&resv2=rlim&resv3=5&resv4=807341&vuk=3861227597&iv=0&htype=&randtype=&tkbind_id=0& newver=1&newfm=1&secfm=1&flow_ver=3&pkey=en-ea364f0ce0fe0b1fab658abbfb63a9ca1f2cc78aa0b4bf97d89e7a643bae716c5b91fad943d6 7fda99fa394e73b4dd53a69118d234f4d86c305a5e1275657320&sl=76480590&expires=8h&rt=sh&r=356206031&vbdid=196082207&fin=hacs.z Ip&rtype = 1 & dp - logid = 399127979663770068 & dp - callid = 0.1 & HPS = 1 & TSL = 80 & CSL = 80 & FSL = 1 & csign & so = = nBIHmmUWixHJeFcu728SQsScAdk % 3 d 0&ut=6&uter=4&serv=0&uc=1682514361&ti=643d984421895662d9ec27bdc1e3b6d3ec7cc331823c6d3f305a5e1275657320&hflag=30&from_typ e=1&adg=c_e7f303d4af723cfedc1e4f3a08e3d49f&reqlabel=250528_f_b249eedf30770cff65d23e2a5a565955_-1_601aad814449eb46f00c561 7583f0b5b&by=themis&resvsflag=1-0-0-1-1-1Copy the code
  3. Run the unzip hacs.zip command to decompress the package

The installation

Restart HA, go to the console to add integration, search for HACS, and add