[RU] | [EN]
This is a monorepo for node-xmihome — a set of tools for controlling
Xiaomi Mi Home devices using Node.js. The project provides both a core
library for developers and a ready-to-use integration for Node-RED.
This repository contains several packages located in the packages/ directory:
| Package | NPM | Description |
|---|---|---|
xmihome |
The core library for interacting with Xiaomi devices via Cloud, MiIO, and Bluetooth. | |
node-red-contrib-xmihome |
A set of nodes for easy integration of xmihome into Node-RED projects. |
|
xmihome-devices |
Definitions and specifications for specific device models. | |
xmihome-web |
(Private) | A demo web application for controlling devices via Web Bluetooth. |
To work with this monorepo, you will need to install Bun, as it correctly handles the workspace dependencies for this project.
-
Clone the repository:
git clone https://github.com/alex2844/node-xmihome.git cd node-xmihome -
Install dependencies: This command will install dependencies for all packages and create the necessary symlinks between them.
bun install
-
Build packages: If any package requires a build step (e.g.,
node-red-contrib-xmihome), you can build all packages at once using:bun run build
-
Type checking: To check the code with TypeScript, run:
bun run test