The goal of this module is to receive events from Xiaomi Home Devices
- Xiaomi GateWay
- Xiaomi Switch Button
- Xiaomi Door & Sensor
- Xiaomi Aqara Humidity & Temperature
- Xiaomi Aqara Motion Sensor
- Install the MiHome app from Google Play or AppStore
- Set your region to Mainland China when app init or under Settings -> Locale
- Setup, connect your Gateway & all your Xiaomi devices
- Update gateway to the latest firmware
- Enable developer mode by following this tutoriel => https://github.com/fooxy/homeassistant-aqara/wiki/Enable-dev-mode
Connect to your Raspberry Pi.
Clone this repository :
git clone https://github.com/Hamtar0/gladys-xiaomi-aqara
Go the directory :
cd gladys-xiaomi-aqara
Install the dependencies :
If you have yarn (pre-installed on Gladys Raspbian image), just do :
yarn install
If not, you can do :
npm install
You now need to modify the config.js
file :
nano config.js
Edit each line with your configuration.
Then, execute :
pm2 start /home/pi/gladys-xiaomi-aqara/app.js --name gladys-xiaomi-aqara
So that gladys-xiaomi-aqara run in background :)
To debug, you can see logs by calling :
pm2 logs gladys-xiaomi-aqara
Add support for :
- cube
- plug
- original sensor temperature
- leak sensor
- smoke sensor
Add interactions with gateway (light, color, sound)