1. Install Aidlux
Download the installation package via the official website to install https://community.aidlux.com/aidluxdownload
2. Access Aidlux via a LAN Device and Enter the Terminal
Enter http://192.168.X.XXX:8000 in the browser address bar. Password: aidlux
The IP address can be viewed via Cloud_ip on Aidlux
The copy and paste hotkeys for Windows systems are Ctrl+C and Ctrl+V
The copy and paste hotkeys for Linux systems are Ctrl+Shift+C and Ctrl+Shift+V
3. Deployment
Install Dependencies
Change pip Source
Upgrade pip
Get Python 3.11 Installation File and Unpack
Compile - About Half an Hour
Alt Install Python 3.11 - About One Hour
Symlink
Verify
Upgrade pip for Python 3.11
Create Virtual Environment
Install
First Startup
Routine Startup
Notes
Start homeassistant; do not close the terminal.
Wait for about 30 seconds, then enter http://192.168.X.XXX:8123 in the browser to access HA.
4. Install HACS
Download Script
Restart Home Assistant
Add HACS
Open Home Assistant, click "Settings", click "Integrations", click "Add Integration" in the bottom right corner, enter "HACS" in the search box and click it. Wait for about 1 minute for HACS setup to complete. If it takes longer than 10 minutes, it is recommended to retry.
Accept Agreement
You need to select all, then submit.
Device Registration
You need to have a Github account first; if not, register one and log in on the browser. Copy the code in the gray block, open the link in the popup, paste the code, and authorize.
5. Use the Home App to Control Mijia Devices
After configuring HACS, refresh the homepage. The HACS option will appear on the left. Enter it to install various plugins and device links.
Download Plugin
Search for xiaomi within HACS, select Xiaomi Miot Auto, click download, and click download again in the popup dialog.
Restart Container
Click Restart Required in Configuration Options.
Configuration
Same operation as installing HACS, select "Account Integration", log in to your Xiaomi account to get device information, follow the configuration guide to complete the remaining steps, and select the devices you want to access in HomeAssistant.
Connect to Home App
Click Add Integration, search for Apple, click add HomeKit Bridge Integration, and follow the guide to complete the addition.
Note that if you have temperature and humidity sensors, remember to check "Sensor"; this option is unchecked by default.
After successfully adding the HomeKit Bridge integration, click the notification button in the bottom left corner of the interface to view the HomeKit pairing QR code.
Open the "Home" app, click the "+" sign in the top left corner, and select "Add Accessory".
Scan the QR code obtained in the previous step and click "Add to Home".
During the joining process, it may prompt "Uncertified Accessory"; click "Add Anyway".
Then complete the remaining steps to add devices one by one. Once done, you can use Siri to control your smart devices.