Xiaomi IR Remote platform
A homebridge-plugin
for Mi Universal Remote devices
: chuangmi.ir.v2
chuangmi.remote.h102a03
chuangmi.remote.v2
chuangmi.remote.h102c01
foaked from
homebridge-mi-ir-remote
andhomebridge-mi-ir-electrolux
.
Installation
Install homebridge
.
sudo npm install -g --unsafe-perm homebridge
Install miio
and the plugin packages.
sudo npm install -g miio homebridge-mi-remote
Get the token of your Mi Universal Remote device. Follow the instruction.
miio --discover
Add the configuration into the config.json
file.
Supported types
MiLearn
Learn raw codes from each command by IR remote controllers. To obtain the code stored in the log file (e.g., '/var/log/homebridge.log'
), run the bash script as below:
tail <'/var/log/homebridge.log'> | grep -oe 'Learned Code:.*' | cut -d ' ' -f3 | tail -1
Bundled accessories
See the instruction for details.
- Switch
- Light
- Projector
- AirConditioner
- Custom : Run multiple commands in a single switch.
- MomentarySwitch : Automatically turned off after 0.3 seconds.
Additional supported devices
- LGAirConditioner : IR remote control for LG Home Air Conditioners (Heater/Cooler). Compatible with AKB73835317 AKB73675605. Also functional on LA090HSV4 LA120HSV4 LA180HSV4 LAN090HSV4 LAN120HSV4 LAN180HSV4 LS090HSV4 LS120HSV4 LS180HSV4 LSN090HSV4 LSN120HSV4 LSN180HSV4 LSU090HSV4 LSU120HSV4 LSU180HSV4 .
Configuration
Example:
"platforms":
Related websites
python-miio
: Python library & console tool for controlling Xiaomi smart appliances