The domestic smart home industry is developing rapidly, and overseas companies are rushing to the Chinese market in advance. Third-party smart home control application platforms have become popular. Recently, Apple and R&F Group have built a smart home model in Beijing, which has attracted a lot of attention. The smart home model room launched by this time is mainly controlled by the homekit platform for smart appliances . For friends who are rice noodles and fruit powder. In terms of it, I would like to know how to implement the homekit platform of Xiaomi siri voice. For this reason, Xiaobian specially collected some homekit platform methods for how to implement Xiaomi siri voice through Mac. The following is a detailed introduction for everyone.
First need to install the ha and hb platform
What is ha and hb? The Homeassistant (ha) platform is an open source community. The reason why Xiaomi can get involved in homekit is because it joins the platform to break down hardware barriers and has superior compatibility. The Homebridge (hb) platform is mainly used to implement common hardware products to join the honekit platform and implement the siri function.
Step 1: First install ha in the Mac environment
1, first install python (Baidu python official website download current stable version 3.6)
2, open the terminal input
Sudo pip3 install homeassistant
3, pop-up prompt box click not now
4, hass --open-ui
5, set to display hidden files, find configuration. Yaml file for data configuration.
Step 2: Install hb in Mac environment
1. Install XCODE. Be sure to search and download in appstore. The file size is large.
2, install nodejs (https://nodejs.org/en/download/)
3, install homebridge
Sudo npm -g install homebridge
4, install the homebridge-homeassistant plugin
Sudo npm install -g homebridge-homeassistant
5 Run homebridge once
Homebridge
Then enter Ctrl+C on the keyboard to stop the homebridge run, and the command prompt will appear again.
6 Create and edit a Homebridge profile
Cd /Users/your username/. Homebridge
Sudo nano config. Json
################ The right mouse button pastes the following content######################
{
"bridge": {
"name": "Homebridge",
"username": "6D:19:E0:E7:83:62",
"port": 51826,
"pin": "123-45-678"
},
"platforms": [
{
"platform": "HomeAssistant",
"name": "HomeAssistant",
"host": "http://192.168.123.28:8123",
"password": "raspberry",
"supported_types": ["fan", "garage_door", "input_boolean", "light", "lock", "media_player", "rollershutter", "scene", "switch"]
}
]
}
After pasting, press Ctrl+X on the keyboard, enter Y, save and exit
"username": "CC:22:3D:E3:CE:30", ###This MAC address can be modified to the MAC address of your own computer###MAC must be capitalized
"host": "http://192.168.1.200:8123", where 192.168.1.200 is the LAN IP address of your computer####
7 Run homebridge, enter homebridge in the terminal, keep running, open Apple mobile home app, add homebridge, enter pin code 12345678, add successfully.
Guangzhou Yunge Tianhong Electronic Technology Co., Ltd , http://www.e-cigaretteyfactory.com