How to build a homekit smart home platform for Mac

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 running homebridge

Mac environment installation ha

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.

Pharmaceuticals

Pharmaceuticals,2-Methyl- Propanoic Acid Monohydrate Price,2-Methyl- Propanoic Acid Monohydrate Free Sample,Pure 2-Methyl- Propanoic Acid Monohydrate

Zhejiang Wild Wind Pharmaceutical Co., Ltd. , https://www.wild-windchem.com

Posted on