From 5de2bd6cdc537b4a7adfa8fec565e072afe321f9 Mon Sep 17 00:00:00 2001 From: Li Zhineng Date: Tue, 22 Jul 2025 10:34:39 +0800 Subject: add README.md --- README.md | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..efb6ba1 --- /dev/null +++ b/README.md @@ -0,0 +1,67 @@ +# Control your AIRMX Pro right from your Apple Home + +The package is a Homebridge plugin for AIRMX Pro, which allows you to +control the AIRMX Pro on Apple Home across your devices, even with Siri. + +## Installation + +The plugin supports Node 18+ with Homebridge 1.8+ or 2.0. You can install +the plugin via NPM: + +```bash +npm i -g homebridge-airmx +``` + +## Usage + +This plugin supports Homebridge UI configuration; you can tweak the settings +from Homebridge UI or edit the `config.json` file manually. Here's a simple +example: + +```json +{ + "platforms": { + { + "name": "AIRMX", + "platform": "AIRMX", + "mqtt": "mqtt://192.168.10.10", + "devices": [ + { + "id": 1, + "key": "" + } + ] + } + } +} +``` + +My local anonymous MQTT server is deployed on my home network, and remember +to update your endpoint. The devices field accepts a list where each item +includes a device ID and the corresponding device key. + +Here's the technical specification for the configuration. + +
+
platform: string
+
The platform name must be set to "AIRMX".
+ +
mqtt: string
+
The broker URL for an MQTT server.
+ +
devices: device[]
+
A list of AIRMX Pro definitions.
+ +
device: object
+
An AIRMX Pro definition.
+ +
device.id: number
+
The device identifier.
+ +
device.key: string
+
The key is used to sign or validate the command messages in the MQTT server.
+
+ +## License + +The package is released under [the MIT license](LICENSE). -- cgit v1.2.3