You need to open the terminal on your Mac. Note: Node.js must be installed or the following steps will not work. The website should not be downloaded by the wall.
Node.js There are Windows versions, macOS versions, and Source Code available for download. The latest version of Xcode can be downloaded from MAS. Since I only use macOS, I will follow the tutorial on macOS. Linux, Mac, and Windows can all build HomeBridge. The method 1 is to use a computer that does not shut down. But please note that a smart gateway is a must. I don't introduce them here, I can buy them according to my own needs. Of course, in addition to this, there are other different types of smart homes in Xiaomi Mall, such as smoke alarms, temperature and humidity sensors and so on.