How to add HACS plug-in to HomeAssistant to realize public network control of smart homes such as Mijia and HomeKit

HomeAssistant adds HACS plug-in and realizes public network control of Mijia, HomeKit and other smart homes


image-20231102114731319

The above introduced how to implement Synology Docker to deploy HomeAssistant and control the home center outdoors through intranet penetration. This article will introduce how to install the HACS plug-in store and connect Mijia and Guojia devices to Home Assistant.

Basic conditions

1. Download HACS source code

​ Download hacs source code:Releases · hacs/integration (github.com)

image-20231102113616757

Upload to Synology

image-20231102113649746

Place all files in/docker/homeassistant/config/custom_components/hacsdirectory

image-20231102113717440

​ Currentlycustom_componentsDownhacsFull text items with additional text

image-20231102115334965

Restart containers in Docker

image-20231102115401278

2. Add HACS integration

Lower left corner, click Configure

image-20231102135443785

Equipment and Services

image-20231102135506546

Add integration

image-20231102135518062

searchhacs

image-20231102135533144

Check all options

image-20231102135550435

It prompts that you need to click on the link in the middle to jump to GitHub for verification. Copy the verification code below.

image-20231102135614891

Paste, submit

image-20231102135635399

Verification completed

image-20231102135700094

Refresh it and the HACS option will appear on the left. Enter to install various plug-ins and device links.

image-20231102115507458

To access the fixed address mapped in the previous article, you can use the HACS plug-in store simultaneously:

How to fix the public network address to access HomeAssistant, please see for details:Use Synology Docker to build HomeAssistant and achieve remote public network access - cpolar Jiidian Cloud

image-20231102115817206

3. Bind Mijia devices

Search xiaomi and click download

image-20231102140500184

Prompt that the container needs to be restarted

image-20231102140530517

The operation is the same as installing HACS. After adding it, log in to your Mijia account and you can use it.

image-20231102142432745

​ Automatically identify all Mijia devices bound to the account. The one I bound is a Xiaomi router. After clicking Submit, you can control the Mijia devices.

image-20231102155126448

​ At this point, we have realized using a fixed public network address to control Xiaomi devices at home remotely.

image-20231102160915311

If it is an Apple HomeKit device, select设备与服务, click on the lower right corner添加集成, searchhomekit, selectApple, and then follow the guidance.

image-20231102161356173

Through these two articles, we have implemented the deployment of HomeAssistant using Synology Docker and can access and control smart homes such as Mijia outdoors.

Guess you like

Origin blog.csdn.net/m0_73879806/article/details/134828884