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
.
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.
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
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.
- 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 .
Example:
"platforms": [
{
"platform": "MiRemote",
"ip": "***.***.***.***",
"token": "********************************",
"hideLearn": false,
"deviceCfgs": [
{
"type": "Switch",
"data": {
}
},
{
"type": "Projector",
"data": {
}
},
{
"type": "Light",
"data": {
}
},
{
"type": "AirConditioner",
"data": {
}
},
{
"type": "Custom",
"data": {
}
},
{
"type": "MomentarySwitch",
"data": {
}
},
{
"type": "LGAirConditioner",
"name": "Thermostat",
"info": {
"Manufacturer": "LG Electronics Inc.",
"Model": "S-W096AAW",
"SerialNumber": "AKB73675605"
},
"hidePlasma": false,
"hideJetPower": false,
"hideLight": true
}
]
}
]
python-miio
: Python library & console tool for controlling Xiaomi smart appliances